Skip to content

Commit 6ae5a3a

Browse files
authored
SetupWizard: allow autostart if /etc/xdg/autostart exists
1 parent c3b6da7 commit 6ae5a3a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

install-photobooth.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3512,7 +3512,7 @@ function configure_shortcuts() {
35123512
MENU_OPTIONS+=(
35133513
"2" "Disable Browser Autostart"
35143514
)
3515-
elif ! is_wayland_env && [ "$WEBBROWSER" != "unknown" ] && [ "$PHOTOBOOTH_FOUND" = true ]; then
3515+
elif [ -d "/etc/xdg/autostart" ] && [ "$WEBBROWSER" != "unknown" ] && [ "$PHOTOBOOTH_FOUND" = true ]; then
35163516
MENU_OPTIONS+=(
35173517
"2" "Enable Autostart in Kiosk Mode ($WEBBROWSER)"
35183518
)
@@ -3544,7 +3544,7 @@ function configure_shortcuts() {
35443544
else
35453545
confirm "Autostart Disabled" "Failed to disable browser autostart in kiosk mode!"
35463546
fi
3547-
elif ! is_wayland_env; then
3547+
elif [ -d "/etc/xdg/autostart" ]; then
35483548
if browser_autostart; then
35493549
confirm "Autostart Enabled" "Browser autostart in kiosk mode has been enabled."
35503550
else

0 commit comments

Comments
 (0)