This forum has been archived. All content is frozen. Please use KDE Discuss instead.

shutdown script not being run

Tags: None
(comma "," separated)
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
6668
Karma
25

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 Leap 42.1 x64, Plasma 5.x

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
6668
Karma
25

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 Leap 42.1 x64, Plasma 5.x

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
19765
Karma
87
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'


KDE Sysadmin
[img]content/bcooksley_sig.png[/img]


Bookmarks



Who is online

Registered users: Bing [Bot], daret, Google [Bot], Sogou [Bot]