How to add "optirun" to icon in menu?

Please post suggestions for improvement of Cinnamon on:
https://github.com/linuxmint/Cinnamon
Forum rules
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
Locked
CreamCorn

How to add "optirun" to icon in menu?

Post by CreamCorn »

Mint 14 with Cinnamon 1.6 and Bumblebee 3.0.

Some programs, like Singularity, run better from terminal if I run it like this:

Code: Select all

optirun ./singularity
When I look at the Cinnamon Menu, the command to start Singularity looks like:

Code: Select all

/opt/Singularity-x86_64-1.7.3.3624/singularity
How can I add the "optirun" to the start command in the Cinnamon menu, so that programs like Singularity, Heroes of Newerth, Firestorm, Blender, Free CAD, Second Life, 0 A.D. etc can run with Bumblebee?

Thanks!
Last edited by LockBot on Wed Dec 28, 2022 7:16 am, edited 1 time in total.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
User avatar
xenopeek
Level 25
Level 25
Posts: 29610
Joined: Wed Jul 06, 2011 3:58 am

Re: How to add "optirun" to icon in menu?

Post by xenopeek »

Open a terminal, type:

Code: Select all

which optirun
It will return the full path of the optirun program. Copy that. Then right-click the menu button and choose edit menu. Then browse to to program you want to start with optirun from the menu, and highlight it, then click the properties button. Insert the full path of the optirun program in the command field. So if the command currently reads:

Code: Select all

/opt/Singularity-x86_64-1.7.3.3624/singularity
change that to:

Code: Select all

/where/ever/is/optirun /opt/Singularity-x86_64-1.7.3.3624/singularity
Image
CreamCorn

Re: How to add "optirun" to icon in menu?

Post by CreamCorn »

That worked brilliantly, thank you!!! :D
Locked

Return to “Cinnamon”