Xfce Forum

Sub domains
 

You are not logged in.

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

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

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
Moderator
From: Canada
Registered: 2011-06-02
Posts: 8,284

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?

Offline

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

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

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
Moderator
From: Canada
Registered: 2011-06-02
Posts: 8,284

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

Offline

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

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

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

Board footer

Powered by FluxBB