Wait for desktop to start

This commit is contained in:
Connor Nelson
2025-03-20 10:42:00 -07:00
parent 57f2e662d1
commit a4227a7758
+9 -3
View File
@@ -13,7 +13,13 @@ xfce_run() {
setsid su "$USER" -c "env - $(xfce_env) $*" setsid su "$USER" -c "env - $(xfce_env) $*"
} }
# Consider using `--geometry` to set the window size and position # Launch a background process that waits for xfce4-session and then runs the command.
# Consider using `--fullscreen` to launch the application in fullscreen mode (
while ! pgrep -u "$USER" xfce4-session > /dev/null; do
sleep 1
done
xfce_run exo-open --launch TerminalEmulator # Consider using `--geometry` to set the window size and position
# Consider using `--fullscreen` to launch the application in fullscreen mode
xfce_run exo-open --launch TerminalEmulator
) &