Nemo action: Run with dedicated GPU

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.
Post Reply
User avatar
mehdi
Level 1
Level 1
Posts: 8
Joined: Wed Jan 17, 2024 4:34 pm
Location: Tunisia

Nemo action: Run with dedicated GPU

Post by mehdi »

Hi,

I need help making a nemo action to run script/executable using dedicated GPU*

I tried this:

Code: Select all

[Nemo Action]
Name=Run with dedicated GPU
Comment=Run current file with dedicated GPU
Exec=DRI_PRIME=1 \"%F\"
Icon-Name=gpu
Selection=single
Mimetypes=application/x-shellscript;
  • The Exec line is clearly incorrect
  • I can't find the icon name for GPU (same icon that shows when you right click an app from the menu)
  • I don't know the mimetypes for executables
Last edited by mehdi on Wed Mar 20, 2024 8:11 am, edited 1 time in total.
User avatar
mehdi
Level 1
Level 1
Posts: 8
Joined: Wed Jan 17, 2024 4:34 pm
Location: Tunisia

Re: Nemo action: Run with dedicated GPU

Post by mehdi »

To answer my own question, I ended up using this:

Code: Select all

[Nemo Action]
Name=Run with dedicated GPU
Comment=Run current file with dedicated GPU
Exec=/bin/bash -c 'DRI_PRIME=1 %F'
Icon-Name=show-gpu-effects
Selection=single
Mimetypes=application/*;
Post Reply

Return to “Cinnamon”