Update for better external tools

This commit is contained in:
Keith Bowes 2024-08-23 15:32:59 -04:00
parent 3e000a9087
commit 73eb94d18a
2 changed files with 19 additions and 6 deletions

View file

@ -30,17 +30,25 @@ if test -n "$DISPLAY" && test -d /etc/X11/xinit/xinitrc.d;
then then
for f in /etc/X11/xinit/xinitrc.d/*.sh; for f in /etc/X11/xinit/xinitrc.d/*.sh;
do do
test -f "$f" && . "$f" test -r "$f" && . "$f"
done done
fi fi
# Get the preferred terminal from GNOME (if you use mostly GTK apps) # Emerging standard, used by i.a. modern GTK versions instead of the obsolete
TERMINAL=$(gsettings get org.gnome.desktop.default-applications.terminal exec | tr -d \') # org.gnome.default-applications.terminal.exec gsetting (which is now ignored)
# https://github.com/Vladimir-csp/xdg-terminal-exec (or create a symlink to
# your preferred terminal emulator)
TERMINAL=xdg-terminal-exec
# Get the preferred terminal from KDE (if you use mostly Qt apps) # Get the preferred terminal from KDE (if you use mostly Qt apps)
#TERMINAL=$(kreadconfig5 --file kdeglobals --group General --key TerminalApplication --default "konsole") #TERMINAL=$(kreadconfig5 --file kdeglobals --group General --key TerminalApplication --default "konsole")
# Or just set it hard: # Or just set it hard:
#TERMINAL=kitty #TERMINAL=kitty
export TERMINAL export TERMINAL
# Use autostart scripts for these environments if command -v xdg-autostart >/dev/null 2>&1;
export WB_AUTOSTART_ENVIRONMENT=GNOME:KDE then
export XDG_CURRENT_DESTKOP=OPENBOX
else
# Use autostart scripts for these environments
export WB_AUTOSTART_ENVIRONMENT=GNOME:KDE:OPENBOX
fi

View file

@ -60,7 +60,12 @@ then
fi fi
# And the XDG autostart script # And the XDG autostart script
if test -x $WB_USER_CONF_DIR/xdg-autostart; if command -v xdg-autostart >/dev/null 2>&1;
then
# Probably what you want instead of my simple shell script.
# https://gitlab.com/somini/xdg-autostart/
WB_XDG_AUTOSTART="xdg-autostart"
elif test -x $WB_USER_CONF_DIR/xdg-autostart;
then then
WB_XDG_AUTOSTART=$WB_USER_CONF_DIR/xdg-autostart; WB_XDG_AUTOSTART=$WB_USER_CONF_DIR/xdg-autostart;
elif test -x $WB_SYS_CONF_DIR/xdg-autostart; elif test -x $WB_SYS_CONF_DIR/xdg-autostart;