I have a fully unattended Ubuntu Install process in place that installs xfce for me and then some other stuff. My only problem: while I can add new startup scrips by just copying them to ~/.config/autostart, there are also some programs listed in Autostart-Manager gui that comes with xfce4. Is there a way to disable these default scripts (specially: update notification) only using console commands so I can copy that in my install script?

I looked at everything xfconf-query has to offer but there does not seem to be a function for this application. These scripts are also neither in ~/.config/autostart nor in ~/Desktop/Autostart

  • Have you tried copying the update-notifier.desktop to your ~/.config/autostart and then changing the NotShowIn property to include XFCE? – steeldriver Jul 5 '18 at 11:01
  • They're probably in /etc/xdg/autostart. – muru Jul 5 '18 at 11:12
  • Thanks @muru, did not know about that folder and sure enough, there it was! – Teekeks Jul 5 '18 at 11:32
  • @Teekeks excellent! If you could post an answer showing how you disabled those entries, it would be nice. – muru Jul 5 '18 at 11:52

With the Help of @muru I found a solution.

Besides ~/.config/autostart/ and ~/Desktop/Autostart/, there is a third Folder, /etc/xdg/autostart/ with scripts. I ended up just deleting the ones that I do not need.

To be exact, I used this command as root to disable the Update Notifier:

rm -f /etc/xdg/autostart/update-notifier.desktop
  • good answer, but using sudo instead of root would be better for some "purist" Ubuntu users :D – damadam Jul 5 '18 at 12:24
  • 3
    I still think it would be better to disable them locally - if you simply remove files from the /etc/xdg/autostart directory there's a chance they will be reinstalled during subsequent package updates (not to mention confusing the package management system) – steeldriver Jul 5 '18 at 13:07

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.