File tree Expand file tree Collapse file tree 4 files changed +25
-0
lines changed Expand file tree Collapse file tree 4 files changed +25
-0
lines changed Original file line number Diff line number Diff line change
1
+ This module demonstrates some more interesting ideas.
Original file line number Diff line number Diff line change
1
+ #! /bin/sh
2
+
3
+ PATH=" /run/dojo/bin:$PATH "
4
+ USER=" hacker"
5
+
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
10
+ }
11
+
12
+ xfce_run () {
13
+ setsid su " $USER " -c " env - $( xfce_env) $* "
14
+ }
15
+
16
+ # Consider using `--geometry` to set the window size and position
17
+ # Consider using `--fullscreen` to launch the application in fullscreen mode
18
+
19
+ xfce_run exo-open --launch TerminalEmulator
Original file line number Diff line number Diff line change
1
+ name : Demo
2
+ challenges :
3
+ - id : desktop-auto-launch
4
+ name : Desktop Auto Launch
Original file line number Diff line number Diff line change @@ -7,3 +7,4 @@ image: pwncollege/challenge-simple
7
7
modules :
8
8
- id : hello
9
9
- id : world
10
+ - id : demo
You can’t perform that action at this time.
0 commit comments