File tree Expand file tree Collapse file tree 1 file changed +13
-10
lines changed Expand file tree Collapse file tree 1 file changed +13
-10
lines changed Original file line number Diff line number Diff line change @@ -4,22 +4,25 @@ PATH="/run/dojo/bin:$PATH"
4
4
USER=" hacker"
5
5
6
6
xfce_env () {
7
- local session_pid
8
- session_pid=$( pgrep -u " $USER " xfce4-session | head -n1)
9
- xargs -0 -a /proc/" $session_pid " /environ
7
+ local session_pid
8
+ session_pid=$( pgrep -u " $USER " xfce4-session | head -n1)
9
+ xargs -0 -a /proc/" $session_pid " /environ
10
10
}
11
11
12
12
xfce_run () {
13
- setsid su " $USER " -c " env - $( xfce_env) $* "
13
+ id
14
+ which su
15
+ echo " $USER "
16
+ setsid runuser " $USER " -c " env - $( xfce_env) $* "
14
17
}
15
18
16
19
# Launch a background process that waits for xfce4-session and then runs the command.
17
20
(
18
- while ! pgrep -u " $USER " xfce4-session > /dev/null; do
19
- sleep 1
20
- done
21
+ while ! pgrep -u " $USER " xfce4-session > /dev/null; do
22
+ sleep 1
23
+ done
21
24
22
- # Consider using `--geometry` to set the window size and position
23
- # Consider using `--fullscreen` to launch the application in fullscreen mode
24
- xfce_run exo-open --launch TerminalEmulator
25
+ # Consider using `--geometry` to set the window size and position
26
+ # Consider using `--fullscreen` to launch the application in fullscreen mode
27
+ xfce_run exo-open --launch TerminalEmulator
25
28
) &
You can’t perform that action at this time.
0 commit comments