[opensuse-factory] Plasma 5.3 - Autostarting scripts when logging in/out
Hi everyone, I have switched to Plasma 5.3 and have cleaned out my .kde-directory. Now almost everything is as it should be, except I have some scripts configured to be started on login/logout, and do not get them to run. Any hints? I set them in the new Settings-dialog, not in the old one that just changes kde4-Settings. But to no avail. Johannes
On Monday 18 May 2015 14:48:54 Johannes Kastl wrote:
Hi everyone,
I have switched to Plasma 5.3 and have cleaned out my .kde-directory. Now almost everything is as it should be, except I have some scripts configured to be started on login/logout, and do not get them to run.
Any hints? Same problem here I filed a bug 347840, can you add your comments?
I set them in the new Settings-dialog, not in the old one that just changes kde4-Settings. But to no avail. I tried with both programs, the old one from ignorance that it was deprecated by Plasma 5. The new one was no use either, it configures ok but doesn't execute the script on logout.
Johannes
-- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-factory+owner@opensuse.org
Johannes Kastl wrote:
Now almost everything is as it should be, except I have some scripts configured to be started on login/logout, and do not get them to run.
There are 2 kinds of scripts: those which just set env vars, and those who do actual processing. In the first case, drop them into ~/.config/plasma-workspace/env (it will work - I fixed that feature myself ;). In the second case, direct support for scripts is lacking, but no worries, you can workaround it. The workaround consists in creating a .desktop file which will then call your script with full path. Drop the .desktop file on ~/.config/autostart and you're good to go. See also https://en.opensuse.org/SDB:KDE_Plasma_5#Starting_programs_on_login -- Luca Beltrame - KDE Forums team KDE Science supporter GPG key ID: 6E1A4E79 -- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-factory+owner@opensuse.org
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On 18.05.15 Luca Beltrame wrote:
The workaround consists in creating a .desktop file which will then call your script with full path. Drop the .desktop file on ~/.config/autostart and you're good to go.
This seems to work.
See also https://en.opensuse.org/SDB:KDE_Plasma_5#Starting_programs_on_login
I
only see shutdown scripts mentioned in the env section of said page. How to get 'normal' scripts (i.e. non-env) to be executed during logout? Create a .desktop file and set it to being executed during logout? BTW: I know manpower is scarce, and this is not on the top of the list. But a pop-up saying 'this feature is currently not available, sorry for the inconvenience' might have been a good idea. Or not having a button to add scripts at all. Then I would not have tried that countless times to no avail. ;-( Johannes -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 Comment: Using GnuPG with SeaMonkey - http://www.enigmail.net/ iEYEARECAAYFAlVcy2YACgkQzi3gQ/xETbKkgQCghX2ICiL80VndH7DaDiqrQF96 +CMAoIFpyJwNSAXSRV+w+IdWOzqgz1jp =jMY4 -----END PGP SIGNATURE----- -- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-factory+owner@opensuse.org
Johannes Kastl wrote:
How to get 'normal' scripts (i.e. non-env) to be executed during logout? Create a .desktop file and set it to being executed during
No, the "env" scripts for shutdown should run normally. See the last lines of startkde: # Run scripts found in <config locations>/plasma-workspace/shutdown for prefix in `echo "$scriptpath"`; do for file in `ls "$prefix"/shutdown 2> /dev/null | egrep -v '(~|\.bak)$'`; do test -x "$prefix$file" && "$prefix$file" done done -- Luca Beltrame - KDE Forums team KDE Science supporter GPG key ID: 6E1A4E79 -- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-factory+owner@opensuse.org
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On 20.05.15 Luca Beltrame wrote:
Johannes Kastl wrote:
How to get 'normal' scripts (i.e. non-env) to be executed during logout? Create a .desktop file and set it to being executed during
No, the "env" scripts for shutdown should run normally. See the last lines of startkde:
Actually, I was talking about non-env scripts running at logout. Sorry for the confusion. Johannes -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 Comment: Using GnuPG with SeaMonkey - http://www.enigmail.net/ iEYEARECAAYFAlVdXmAACgkQzi3gQ/xETbJMcgCdEJ1nwuIaXu84CuY+MEZXablV LjYAn32nFStnfG9pQsXIBOFpQmfRJA2M =pqr4 -----END PGP SIGNATURE----- -- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-factory+owner@opensuse.org
participants (3)
-
ianseeks
-
Johannes Kastl
-
Luca Beltrame