Registered Member
|
On Ubuntu 12.10 (KDE 4.9.5) I went to K->Settings->System Settings and chose "Startup and Shutdown"
Under Autostart I added a perl script that is shuts down my virtualboxes as well as write what it does to a log file. I selected Shutdown from the Run On dropdown. The script runs fine from a konsole window (all my virtualboxes shutdown and I have complete details in the log file). However when I shutdown KDE, this script doesn't seem to run. The virtualboxes are aborted instead of shutting down the way the script does and nothing gets written to the log file. What can I do to make KDE run this script when it shuts down? Thanks in advance. |
Registered Member
|
I don't exactly know how the scripts are processed on shutdown, but did you set the +x flag?
|
Manager
|
maybe the script name needs to have ".sh" at the end - just a guess
|
Registered Member
|
The script is executable. I even tried rewriting it as a bash script (ugh that wasn't fun) and having the file end in .sh.
Still doesn't run on shutdown. |
Manager
|
is there a symbolic link to the script in ~/.kde/shutdown ?
paste the script here maybe someone will see something |
Registered Member
|
I just now discovered the script (now a bash script) will run when I log out but doesn't run when I choose shutdown.
|
Administrator
|
It seems there is a limitation to the shutdown directory invocation.
Is your ~/.kde* directory included in the output of the following command?
KDE Sysadmin
[img]content/bcooksley_sig.png[/img] |
Registered users: Bing [Bot], daret, Google [Bot], Sogou [Bot]