Reply to topic

shutdown script not being run

jistanidiot
Registered Member
Posts
11
Karma
0
OS

shutdown script not being run

Fri May 03, 2013 12:36 pm
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.
User avatar jovin
Registered Member
Posts
33
Karma
0
OS

Re: shutdown script not being run

Sat May 04, 2013 3:11 pm
I don't exactly know how the scripts are processed on shutdown, but did you set the +x flag?
User avatar google01103
Manager
Posts
4958
Karma
17
OS

Re: shutdown script not being run

Sat May 04, 2013 4:50 pm
maybe the script name needs to have ".sh" at the end - just a guess


OpenSuse 13.1 x64, KDE 4.12.x

Problem solved? Please click on Image below the post with the best answer to mark your topic as solved.
jistanidiot
Registered Member
Posts
11
Karma
0
OS

Re: shutdown script not being run

Mon May 20, 2013 6:16 pm
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.
User avatar google01103
Manager
Posts
4958
Karma
17
OS

Re: shutdown script not being run

Mon May 20, 2013 6:36 pm
is there a symbolic link to the script in ~/.kde/shutdown ?

paste the script here maybe someone will see something


OpenSuse 13.1 x64, KDE 4.12.x

Problem solved? Please click on Image below the post with the best answer to mark your topic as solved.
jistanidiot
Registered Member
Posts
11
Karma
0
OS

Re: shutdown script not being run

Wed May 22, 2013 10:19 pm
I just now discovered the script (now a bash script) will run when I log out but doesn't run when I choose shutdown.
User avatar bcooksley
Administrator
Posts
18586
Karma
83
OS

Re: shutdown script not being run

Thu May 23, 2013 11:40 am
It seems there is a limitation to the shutdown directory invocation.
Is your ~/.kde* directory included in the output of the following command?
Code: Select all
kde4-config --path lib | tr : '\n'


System Settings and Device Actions KCM maintainer
Image

 
Reply to topic

Bookmarks



Who is online

Registered users: alake, Baidu [Spider], bcooksley, Bing [Bot], claydoh, Exabot [Bot], garthecho, Google [Bot], koriun, Majestic-12 [Bot], north, rodsherwin, shmerl, Steve Guilford, verbalshadow, Vim, Yahoo [Bot], šumski