How to make steam iconify after closing the window (ubuntu)

So i know there is a patch for this is the arch repositories, but nothing that i could find for Ubuntu. So i will show you what to add to your “steam” startscript in “/usr/bin”. This will allow you to iconify steam when you press the x button on the window to close it, instead of it just minimizing itself to your panel.

so we need to edit “steam” in “/usr/bin”

1.) sudo gedit /usr/bin/steam

2.) when you have it open, the first few lines should look like this.

#!/usr/bin/env bash
#
# This is the Steam script that typically resides in /usr/bin
# It will create the Steam bootstrap if necessary and then launch steam.

# Get the full name of this script
export STEAMSCRIPT=”$(cd “${0%/*}” && echo “$PWD”)/${0##*/}”

3.) in between the top comments and where it goes to “# Get the full name of this script”, i created another line and put it in there.

4.) I put in the following.

#make steam iconify after closing the window
export STEAM_FRAME_FORCE_CLOSE=1

5.) then i saved it.

So now when you start steam from your desktop icon, or menu, or terminal command, steam will open up, and when you press the [x] in the corner of the window, you will notice that it wont be on your panel, but you will still have the steam icon near your clock and other applets.

If you want things to go back to the way they were, simply just delete that line that i added, and save it. You should be back to normal the next time you start steam.

Hope this helps anyone who wondered the same.

-Orkultus-

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s