A setting to run startup applications closed to tray like in OSX (solution provided)

Write suggestions and new ideas in here
More ideas here http://community.linuxmint.com/idea/welcome
Forum rules
  • Only post ideas here that are specifically about the Linux Mint distribution or its websites.
  • So that developers and users from any distribution can discuss ideas in one place, post ideas about improving software to the collaboration website for that software instead.
Post Reply
fermmm
Level 1
Level 1
Posts: 9
Joined: Tue Sep 18, 2018 12:03 pm

A setting to run startup applications closed to tray like in OSX (solution provided)

Post by fermmm » Wed Apr 17, 2019 11:08 pm

I have to close 8 of my startup applications' windows when booting Mint, I have to close them one by one at least I boot twice a day. I need them to open "closed to the tray icon", I don't want them appearing all at once on startup. This makes me feel I'm using an OS that is not very ambitious. Some applications has a "start closed to tray" setting that only works on the Microsoft Windows port of the application.

In OSX you have a "hide" checkbox in the startup applications menu. Something like that on Mint would be great (see my solution below).

Image

Solution:
I coded a script to do this and then I understood why this is not yet implemented as an OS feature, it's more complicated than it seems: Some applications like slack, opens a splash screen, if my script closes the splash screen then the application does not start, if hides the splash screen instead of closing it, then the application window appears and it's not hidden, so only the second screen that opens should be closed for that specific application. Also some other applications like teamviewer cannot be closed, only hidden, otherwise the tray icon does not appear, other applications can't be hidden because will not appear anymore, other applications like steam opens many windows.

I solved all the issues with my script but with a cost: It's not as simple as in OSX, you need to specify as an argument when running the script if your application has a splash screen, and also if you want it to be closed or hidden, one works for some applications and not the others, so you must do one trial and error attempt before getting it to work for some applications. The good news is that 80% of the applications I've tried used the same configuration without the need of trial and error.
This is my script with more information:
https://askubuntu.com/questions/663187/ ... 11#1133211

This is over complicated to the final user compared to OSX, you would have 3 checkboxes instead of 1: "Close window after run" that shows: "Skip splash screen" and "Hide instead of close", not perfect but it's better than having to close all the windows every day.
If this gets fixed it would be the first distro to fix it.

Post Reply

Return to “Suggestions & New Ideas”