LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 08-11-2018, 05:24 AM   #1
Lysander666
Senior Member
 
Registered: Apr 2017
Location: The Underearth
Distribution: Ubuntu, Debian, Slackware
Posts: 2,178
Blog Entries: 6

Rep: Reputation: 2470Reputation: 2470Reputation: 2470Reputation: 2470Reputation: 2470Reputation: 2470Reputation: 2470Reputation: 2470Reputation: 2470Reputation: 2470Reputation: 2470
Setting launch option for Steam client


Every time I Google this I get something about setting launch options for individual games, though I want to set a launch option for the Steam client itself.

My issue is that there is no tray icon for Steam in Xfce, just a white box with a red cross. I have found that launching Steam in the terminal with this command solves it and displays the correct tray icon:

Code:
sh -c 'STEAM_FRAME_FORCE_CLOSE=1 STEAM_RUNTIME_PREFER_HOST_LIBRARIES=0 steam' %U
From this thread:

https://github.com/ValveSoftware/ste...ment-290945950

But I want to make it so that whenever I click on the Steam icon it launches using this command. Any help in doing this would be very much appreciated.
 
Old 08-11-2018, 05:49 AM   #2
TheEzekielProject
Member
 
Registered: Dec 2016
Distribution: arch
Posts: 668

Rep: Reputation: 190Reputation: 190
I haven't used xfce personally, but in lxde, you can edit the launch command by right clicking, selecting properties and editing the command field. Maybe you have a similar option?
 
Old 08-11-2018, 05:51 AM   #3
Lysander666
Senior Member
 
Registered: Apr 2017
Location: The Underearth
Distribution: Ubuntu, Debian, Slackware
Posts: 2,178

Original Poster
Blog Entries: 6

Rep: Reputation: 2470Reputation: 2470Reputation: 2470Reputation: 2470Reputation: 2470Reputation: 2470Reputation: 2470Reputation: 2470Reputation: 2470Reputation: 2470Reputation: 2470
Quote:
Originally Posted by TheEzekielProject View Post
I haven't used xfce personally, but in lxde, you can edit the launch command by right clicking, selecting properties and editing the command field. Maybe you have a similar option?
Unfortunately not, right-clicking just launches the client. I'm wondering if it's something to do with editing .run.sh but I'm not entirely sure how.
 
Old 08-11-2018, 10:54 AM   #4
Lysander666
Senior Member
 
Registered: Apr 2017
Location: The Underearth
Distribution: Ubuntu, Debian, Slackware
Posts: 2,178

Original Poster
Blog Entries: 6

Rep: Reputation: 2470Reputation: 2470Reputation: 2470Reputation: 2470Reputation: 2470Reputation: 2470Reputation: 2470Reputation: 2470Reputation: 2470Reputation: 2470Reputation: 2470
I've created what is, for now, a suitable workaround, I believe.

All shortcuts - i.e. .desktop files in Xfce - are stored in /usr/share/applications and symlinked to the main applications menu.

I just used:

Code:
root@psychopig-xxxiv:/usr/share/applications# leafpad steam.desktop
to edit the Steam symlinked .desktop file and replaced

Code:
Execute=/usr/bin/steam %U
with

Code:
Execute=sh -c 'STEAM_FRAME_FORCE_CLOSE=1 STEAM_RUNTIME_PREFER_HOST_LIBRARIES=0 steam' %U
Now I can launch Steam from the main applications menu and the system tray icon appears.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: New Steam Client Update Adds Steam Controller Configuration Links, Many Changes LXer Syndicated Linux News 0 03-12-2017 08:36 AM
LXer: Steam Controller Responsiveness Further Improved with New Steam Beta Client Update LXer Syndicated Linux News 0 12-21-2015 07:42 PM
[SOLVED] KDE launch display No Signal (after wine Steam Deus Ex launch crash) KGHN Slackware 5 01-21-2015 10:38 PM
[SOLVED] Slackware 14.1 64 Steam launch error "Failed to extract /usr/lib/steam/bootstraplinux rockinroyle Slackware 4 11-30-2014 09:07 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 01:37 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration