13

When I run Steam there are two icons, one in the Launcher and one in the Unity panel. How do I remove the icon on the Launcher? I just want an icon of Steam on Unity Panel.

Clicking the close button in Steam just minimises the window to the launcher, not fully hiding it.

kiri
  • 28,246
  • 16
  • 81
  • 118
Nur
  • 4,081
  • First, I don't think it's easily possible. All launched programs show on the launcher by default, some like pidgin, will disappear if you close the window but still remain on the panel(if whitelisted) but if they are not designed to do that, getting it to happen is likely to involve recoding part of Steam. Second, even if yo could get it to disappear, it would come back as soon as you opened a game(if you notice when a game is running there are 2 arrows beside the icon) so that nothing would be gained by doing all the work to get it to go away. – TrailRider Jul 11 '13 at 04:29
  • Yeah I want Steam to behave like Pidgin or Transmission which goes to panel, not to launcher,when the window closed, whats the point of close button anyway if its functionality is same as minimize. But looks like it cant be done. Thanks for answering. – Nur Jul 11 '13 at 09:54
  • 1
    The closest you can come is to launch your games from the dash. It will launch Steam only in the panel. You can then launch other games by clicking on the icon and then selecting the game form the pop up menu. However if you open the Steam Client you cannot close it again and have it disappear from the launcher. It doesn't matter how you do it as far as memory is concerned unless you are very lean on memory, there is only a 30-50MB difference so it will not help much. 140MB compared to 180MB when I tested it on my computer. – TrailRider Jul 11 '13 at 22:37
  • I posted the last comment as a comment instead of an answer because it doesn't really answer your question, It is as close to an answer as you can get I think. I.E. your question was "HOW" to remove the icon as opposed to "IF" you can. so my answer of "NO" does not really answer it. Wish I could have been of more help. – TrailRider Jul 11 '13 at 22:40
  • Its not about memory matters, I just want to have no apps open on launcher while being able to stay online on steam chat, however, thanks for commenting. – Nur Jul 13 '13 at 04:27
  • 2
    Go complain to valve. Seriously, write some sort of bug report or something, because this is actually a problem. The windows version of steam does not suffer from this issue - closing steam there does indeed remove its 'open window' tab thing from the main bar, but leaves the icon in the taskbar. Why should the linux version need users to perform some big workaround to fix this issue? – AJMansfield Aug 17 '13 at 18:58

2 Answers2

19

To do this only for your user, you need to run this command in a terminal:

echo 'STEAM_FRAME_FORCE_CLOSE DEFAULT=1' >> ~/.pam_environment

Then logout and log back in.


Alternatively, you could add it for all users with this command:

echo 'STEAM_FRAME_FORCE_CLOSE=1' | sudo tee -a /etc/environment

Then logout and log back in.

References:

kiri
  • 28,246
  • 16
  • 81
  • 118
  • 8
    It seems like the archlinux folks are almost always the ones that figure out the all the fixes and workarounds for stuff like this... – AJMansfield Oct 26 '13 at 21:51
  • 3
    No wonder when the distro really makes you learn everything about Linux. They know what goes where and how. – inimene Feb 05 '14 at 11:18
  • It's 2015 and this still works like a frickin' charm. – rgin Jan 06 '16 at 19:57
2

I just got this to work by reading how some Windows users got it to work. You just need to add -silent to the startup command. I did this by using Startup Applications. Scroll down till you see Steam, select it and then click Edit. Change the command to look like this:

/usr/bin/steam %U -silent

I think this also removes it from your Unity panel which is OK by me. Seems redundant to have it in both the tray and the panel anyways.

Reference: How do I start applications automatically on login?

David Foerster
  • 36,264
  • 56
  • 94
  • 147
  • And that exactly what I'm looking for. I want to run steam but have only an indicator. – QkiZ Apr 08 '15 at 19:22
  • Can you mark as solution then? – user447607 Apr 10 '15 at 16:25
  • Already selected – QkiZ Apr 11 '15 at 05:33
  • This does not remove it from the launcher when closed/minimized, but minerz029's answer does and the combination of these two makes for a much nicer experience. Also, I don't have my client start automatically, but you can run locate steam.desktop and then edit that file to add the "- silent" there instead. – Allen May 20 '15 at 01:33