Open Startup Applications Minimized Using Devilspie on Linux Mint

I have a bunch of programs that I have set up to start once I login. These programs include Telegram, TeamViewer, Steam, Shutter, and Guake. The issue is that they all open in a window, and it doesn’t take long from once I turn the computer on to have tons of windows open. I want to make these all start minimized. I have tried using something called devilspie, but I haven't had much luck. I heard that the GUI version (gdevilspie) might work better, but when I try to open it, I get an error. Should I try to fix gdevilspie, or should I try something else?

This is the error I get when I enter "gdevilspie" into the terminal.

Traceback (most recent call last):
File "/usr/bin/gdevilspie", line 893, in
MainWindow = RulesListWindow()
File "/usr/bin/gdevilspie", line 374, in init
self.UpdateAutostartStatus()
File "/usr/bin/gdevilspie", line 545, in UpdateAutostartStatus
if (os.path.exists(xdg.DesktopEntry.xdg_config_home + "/autostart/devilspie.desktop")):
AttributeError: 'module' object has no attribute 'xdg_config_home

devilspie is simple enough without the gui. I would try get it working without gdevilspie before you try and fix gdevilspie.

Devilspie supports starting applications minimized with
(minimize) in your begin statement
e.g.
your teamviewer.ds file

(if  
(is (application_name) "Teamviewer")  
(begin (minimize)  )
)

however most programs have flags that can be used to start minimized

Steam has a check box in preferences to start minimized.

I'm a little unsure while guake starts onscreen. It should be hidden.

1 Like

Thanks I will try that.

I am making the programs start up by adding them to the "Startup Applications" window and putting in their console command. So I tell it to open guake with the command "guake". Maybe there's a better way of doing it?

Also with Steam, there is a bug where start minimized doesn't work.

I tried with Steam, Telegram, Shutter and TeamViewer. None of which worked.

Steam

(if
(is (application_name) "Shutter")
(begin (minimize) )
)

Telegram

(if
(is (application_name) "Telegram")
(begin (minimize) )
)

TeamViewer

(if
(is (application_name) "Teamviewer")
(begin (minimize) )
)

Shutter

(if
(is (application_name) "Shutter")
(begin (minimize) )
)

All the files are stored in /home/MYNAME/.devilspie
Maybe I have to make Devilspie open on startup as well?

:-S I forgot that devilspie only works on gnome / unity. If you're using cinnamon in won't work.

1 Like