Xfce Forum

Sub domains
 

You are not logged in.

#1 2021-10-16 11:28:51

djdisodo
Member
Registered: 2021-10-16
Posts: 10

can i set commandline prefix for apps xfce launches?

how can i set commandline prefix for apps launched from Application tab and from desktop
(i want to set nice level by doing this)

Offline

#2 2021-10-16 12:45:28

ToZ
Administrator
From: Canada
Registered: 2011-06-02
Posts: 11,486

Re: can i set commandline prefix for apps xfce launches?

Hello and welcome.

What exactly do you mean by "commandline prefix"? Can you give an example?


Please remember to mark your thread [SOLVED] to make it easier for others to find
--- How To Ask For Help | FAQ | Developer Wiki  |  Community | Contribute ---

Offline

#3 2021-10-17 00:59:44

djdisodo
Member
Registered: 2021-10-16
Posts: 10

Re: can i set commandline prefix for apps xfce launches?

ToZ wrote:

Hello and welcome.

What exactly do you mean by "commandline prefix"? Can you give an example?

if i start firefox it will run `firefox`, if i start telegram it will run `telegram`

i want to add `nice -n 1` prefix so these will run `nice -n 1 firefox` and `nice -n 1 telegram` instead

Offline

#4 2021-10-17 10:33:10

ToZ
Administrator
From: Canada
Registered: 2011-06-02
Posts: 11,486

Re: can i set commandline prefix for apps xfce launches?

Copy the desktop file from /usr/share/applications to ~/.local/share/applications (create the directory if it doesn't exist) and then edit the "Exec=" line and prepend the nice value/command. For example,

Exec=firefox

...would become:

Exec=nice -n 1 firefox

Please remember to mark your thread [SOLVED] to make it easier for others to find
--- How To Ask For Help | FAQ | Developer Wiki  |  Community | Contribute ---

Offline

#5 2021-10-18 02:15:00

djdisodo
Member
Registered: 2021-10-16
Posts: 10

Re: can i set commandline prefix for apps xfce launches?

ToZ wrote:

Copy the desktop file from /usr/share/applications to ~/.local/share/applications (create the directory if it doesn't exist) and then edit the "Exec=" line and prepend the nice value/command. For example,

Exec=firefox

...would become:

Exec=nice -n 1 firefox

seems i can't apply it for all apps unless i do this for every app
thanks i will do this for apps i use most and runs heavy

it will be great if xfce support this but usage seems too niche

Offline

Registered users online in this topic: 0, guests: 1
[Bot] ClaudeBot

Board footer

Powered by FluxBB
Modified by Visman

[ Generated in 0.008 seconds, 9 queries executed - Memory usage: 534.48 KiB (Peak: 535.32 KiB) ]