Changeset View
Changeset View
Standalone View
Standalone View
startkde/startkde.cmake
1 | #!/bin/sh | 1 | #!/bin/sh | ||
---|---|---|---|---|---|
2 | # | 2 | # | ||
3 | # DEFAULT KDE STARTUP SCRIPT ( @PROJECT_VERSION@ ) | 3 | # DEFAULT Plasma STARTUP SCRIPT ( @PROJECT_VERSION@ ) | ||
4 | # | 4 | # | ||
5 | 5 | | |||
6 | # When the X server dies we get a HUP signal from xinit. We must ignore it | 6 | # When the X server dies we get a HUP signal from xinit. We must ignore it | ||
7 | # because we still need to do some cleanup. | 7 | # because we still need to do some cleanup. | ||
8 | trap 'echo GOT SIGHUP' HUP | 8 | trap 'echo GOT SIGHUP' HUP | ||
9 | 9 | | |||
10 | # Check if a KDE session already is running and whether it's possible to connect to X | 10 | # Check if a Plasma session already is running and whether it's possible to connect to X | ||
11 | kcheckrunning | 11 | kcheckrunning | ||
12 | kcheckrunning_result=$? | 12 | kcheckrunning_result=$? | ||
13 | if test $kcheckrunning_result -eq 0 ; then | 13 | if test $kcheckrunning_result -eq 0 ; then | ||
14 | echo "KDE seems to be already running on this display." | 14 | echo "Plasma seems to be already running on this display." | ||
15 | xmessage -geometry 500x100 "KDE seems to be already running on this display." > /dev/null 2>/dev/null | 15 | xmessage -geometry 500x100 "Plasma seems to be already running on this display." > /dev/null 2>/dev/null | ||
16 | exit 1 | 16 | exit 1 | ||
17 | elif test $kcheckrunning_result -eq 2 ; then | 17 | elif test $kcheckrunning_result -eq 2 ; then | ||
18 | echo "\$DISPLAY is not set or cannot connect to the X server." | 18 | echo "\$DISPLAY is not set or cannot connect to the X server." | ||
19 | exit 1 | 19 | exit 1 | ||
20 | fi | 20 | fi | ||
21 | 21 | | |||
22 | # Boot sequence: | 22 | # Boot sequence: | ||
23 | # | 23 | # | ||
▲ Show 20 Lines • Show All 335 Lines • Show Last 20 Lines |