Use $SHELL, fix after patch: Start terminal with a login shell if run from dmenu

Signed-off-by: Maarten van Gompel <proycon@anaproy.nl>
master
Maarten van Gompel 4 years ago
parent 8fc92c55d5
commit ce188e2f26
  1. 2
      scripts/core/sxmo_appmenu.sh
  2. 1
      scripts/core/sxmo_xinit.sh

@ -70,7 +70,7 @@ programchoicesinit() {
$(command -v ranger >/dev/null && echo 'Ranger ^ 0 ^ st -e ranger')
$(command -v sacc >/dev/null && echo 'Sacc ^ 0 ^ st -e sacc i-logout.cz/1/bongusta')
$(command -v sic >/dev/null && echo 'Sic ^ 0 ^ st -e sic')
$(command -v st >/dev/null && echo 'St ^ 0 ^ st -e /bin/sh -l')
$(command -v st >/dev/null && echo 'St ^ 0 ^ st -e $SHELL -l')
$(command -v surf >/dev/null && echo 'Surf ^ 0 ^ surf')
$(command -v syncthing >/dev/null && echo 'Syncthing ^ 0 ^ syncthing')
$(command -v telegram-desktop >/dev/null && echo 'Telegram ^ 0 ^ telegram-desktop')

@ -8,6 +8,7 @@ envvars() {
command -v "$TERMCMD" || export TERMCMD=st
command -v "$BROWSER" || export BROWSER=surf
command -v "$EDITOR" || export EDITOR=vis
command -v "$SHELL" || export SHELL=/bin/sh
command -v "$KEYBOARD" || defaultkeyboard
[ -z "$MPV_HOME" ] && export MPV_HOME=/usr/share/sxmo/mpv
[ -z "$MOZ_USE_XINPUT2" ] && export MOZ_USE_XINPUT2=1

Loading…
Cancel
Save