This forum has been archived. All content is frozen. Please use KDE Discuss instead.

Run command when launching application

Tags: None
(comma "," separated)
zaciars
Registered Member
Posts
3
Karma
0
Is there a way to run a command(example:env) when I launch a certain apps?
I think GNOME has this feature.

Some of my apps need a certain environment variable(s) that will broke another apps if I run it universally.

I tried to export the variable by editing /usr/bin/"apps" But it will get reset every time the apps upgrade
User avatar
Mamarok
Manager
Posts
6071
Karma
16
OS
You can enter it directly in Krunner (Alt+F2), or edit the menu and make an entry with the necessary variables: Right click on the Application Launcher -> Edit Applications


Running Kubuntu 22.10 with Plasma 5.26.3, Frameworks 5.100.0, Qt 5.15.6, kernel 5.19.0-23 on Ryzen 5 4600H, AMD Renoir, X11
FWIW: it's always useful to state the exact Plasma version (+ distribution) when asking questions, makes it easier to help ...
zaciars
Registered Member
Posts
3
Karma
0
Mamarok wrote:You can enter it directly in Krunner (Alt+F2), or edit the menu and make an entry with the necessary variables: Right click on the Application Launcher -> Edit Applications


Thanks, exactly what I was looking for


Bookmarks



Who is online

Registered users: Bing [Bot], claydoh, Google [Bot], rblackwell