You are not logged in.

#1 2014-08-10 22:35:09

Tenza
Member
Registered: 2014-08-10
Posts: 10

[Solved] Steam close main window to tray after startup

Hello,
I have steam starting up on boot, and I have set the environment variable STEAM_FRAME_FORCE_CLOSE to 1 so it goes to tray.
Now, I would like for the window to go to tray immediately, I don't want to close the main window manually at every boot.

I tried to solve this using devilspie2, so I made the following script, but instead of closing the window, steam shutdowns completely.
Does anyone have a solution for this?

debug_print("Application name: " .. get_application_name())

-- Sleep during login
function sleep(n)
  os.execute("sleep " .. tonumber(n))
end

-- Make Steam go to tray.
if (get_application_name()=="Steam") then
        debug_print("Application found.");
        sleep(10);

        debug_print("Trying to close window.");
        close_window();
end

EDIT:
Ok, just found a solution here: http://www.gentooforum.de/artikel/21548 … steam.html

Just edit the file: ~/.config/autostart/steam.desktop.
and append the parameter -silent to the line: Exec=/usr/bin/steam -silent %U

Last edited by Tenza (2014-08-10 23:01:39)

Offline

Board footer

Powered by FluxBB