Registered Member
|
Hi! I am running Kubuntu 20.04. I am trying to run a script on every KDE logout.
My script contains this:
I pipe the output into a file purely in order to verify that the script gets run. I've set execution permissions on the script file so it can run:
I can run the script manually from the command line and it generates the file ~/date.txt. I've set up the script in System Settings -> Starup and Shutdown -> Autostart to run on logout. A symlink to the script appears in ~/.config/plasma-workspace/shutdown/. But when I log out, the file ~/date.txt does not get generated. By searching I found two other recent threads (1, 2) with the same problem - logout script not running - but no solution. Is this a known bug in KDE? Thanks in advance! |
Registered Member
|
Hi!
You should provide the full path to the file. Try this one
|
Registered Member
|
Woo! You're right. Thanks a lot, man. I did try adding full path to the executable, but I didn't realize I also needed full path on the text file, so it looked as though it wasn't working. But now it looks like it works. Thanks! |
Registered users: bartoloni, Bing [Bot], Evergrowing, Google [Bot], ourcraft