LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
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, 06:24 AM   #1
Lysander666
Member
 
Registered: Apr 2017
Location: London
Distribution: Slackware 14.2 + Xfce
Posts: 787
Blog Entries: 1

Rep: Reputation: 676Reputation: 676Reputation: 676Reputation: 676Reputation: 676Reputation: 676
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, 06:49 AM   #2
TheEzekielProject
Member
 
Registered: Dec 2016
Distribution: Devuan+lxde
Posts: 639

Rep: Reputation: 189Reputation: 189
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, 06:51 AM   #3
Lysander666
Member
 
Registered: Apr 2017
Location: London
Distribution: Slackware 14.2 + Xfce
Posts: 787
Blog Entries: 1

Original Poster
Rep: Reputation: 676Reputation: 676Reputation: 676Reputation: 676Reputation: 676Reputation: 676
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, 11:54 AM   #4
Lysander666
Member
 
Registered: Apr 2017
Location: London
Distribution: Slackware 14.2 + Xfce
Posts: 787
Blog Entries: 1

Original Poster
Rep: Reputation: 676Reputation: 676Reputation: 676Reputation: 676Reputation: 676Reputation: 676
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


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 09:36 AM
LXer: Steam Controller Responsiveness Further Improved with New Steam Beta Client Update LXer Syndicated Linux News 0 12-21-2015 08:42 PM
[SOLVED] KDE launch display No Signal (after wine Steam Deus Ex launch crash) KGHN Slackware 5 01-21-2015 11:38 PM
[SOLVED] Slackware 14.1 64 Steam launch error "Failed to extract /usr/lib/steam/bootstraplinux rockinroyle Slackware 4 11-30-2014 10:07 PM

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

All times are GMT -5. The time now is 01:02 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration