{"id":3501,"date":"2013-07-13T13:22:05","date_gmt":"2013-07-13T10:22:05","guid":{"rendered":"http:\/\/mummila.net\/nuudelisoppa\/?p=3501"},"modified":"2013-07-13T13:22:05","modified_gmt":"2013-07-13T10:22:05","slug":"how-to-prevent-xscreensaver-from-starting-in-lubuntu-or-more-precisely-how-to-kill-it-right-away","status":"publish","type":"post","link":"https:\/\/mummila.net\/nuudelisoppa\/2013\/07\/13\/how-to-prevent-xscreensaver-from-starting-in-lubuntu-or-more-precisely-how-to-kill-it-right-away\/","title":{"rendered":"How to prevent xscreensaver from starting in Lubuntu (or more precisely, how to kill it right away)"},"content":{"rendered":"<p>LXSession has system-wide configuration in <code>\/usr\/share\/lxsession\/&lt;Profile name&gt;\/<\/code> and optional per-user configuration in <code>~\/.config\/lxsession\/&lt;Profile Name&gt;\/<\/code>. Unfortunately for <code>autostart<\/code>, according to documentation, &#8220;<a href=\"http:\/\/wiki.lxde.org\/en\/index.php?title=LXSession&amp;oldid=6583#autostart\">If both files are present, all the entries in both files will be executed<\/a>.&#8221; This means there&#8217;s no clean way to prevent autostarting applications defined system-wide from starting per-user; you have to change the system-wide configuration or resort to hacks.<\/p>\n<p>Here&#8217;s one example.<\/p>\n<p><code>jani@kingugidora:~$ mkdir -p ~\/.config\/lxsession\/Lubuntu<br \/>\njani@kingugidora:~$ mkdir -p ~\/bin<br \/>\njani@kingugidora:~$ cat &gt; ~\/bin\/kill-xscreensaver<br \/>\n#!\/bin\/sh<br \/>\nkillall xscreensaver<br \/>\njani@kingugidora:~$ cat &gt; ~\/.config\/lxsession\/Lubuntu\/autostart<br \/>\n@\/home\/jani\/bin\/kill-xscreensaver<\/code><\/p>\n<p>For now the order seems to work, in that the user-defined autostart lines are ran after system-wide ones.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>LXSession has system-wide configuration in \/usr\/share\/lxsession\/&lt;Profile name&gt;\/ and optional per-user configuration in ~\/.config\/lxsession\/&lt;Profile Name&gt;\/. Unfortunately for autostart, according to documentation, &#8220;If both files are present, all the entries in both files will be executed.&#8221; This means there&#8217;s no clean way to prevent autostarting applications defined system-wide from starting per-user; you have to change the system-wide [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-3501","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/mummila.net\/nuudelisoppa\/wp-json\/wp\/v2\/posts\/3501","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/mummila.net\/nuudelisoppa\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/mummila.net\/nuudelisoppa\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/mummila.net\/nuudelisoppa\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/mummila.net\/nuudelisoppa\/wp-json\/wp\/v2\/comments?post=3501"}],"version-history":[{"count":9,"href":"https:\/\/mummila.net\/nuudelisoppa\/wp-json\/wp\/v2\/posts\/3501\/revisions"}],"predecessor-version":[{"id":3510,"href":"https:\/\/mummila.net\/nuudelisoppa\/wp-json\/wp\/v2\/posts\/3501\/revisions\/3510"}],"wp:attachment":[{"href":"https:\/\/mummila.net\/nuudelisoppa\/wp-json\/wp\/v2\/media?parent=3501"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/mummila.net\/nuudelisoppa\/wp-json\/wp\/v2\/categories?post=3501"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/mummila.net\/nuudelisoppa\/wp-json\/wp\/v2\/tags?post=3501"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}