You are not logged in.

#1 2017-03-29 23:59:22

cpassos
Member
Registered: 2017-03-29
Posts: 1

Is it possible make a program run each time another one is open?

I have a program I usually open using a desktop entry. Until now I managed to do what I want by editing the desktop entry to run a script instead of the original program, but I don't find this clean at all. If the package is updated I have to manually reedit the desktop file. Although this isn't a big deal, I just want to know if it is possible or not and how it can be done.

Offline

#2 2017-03-30 01:30:45

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 30,546
Website

Re: Is it possible make a program run each time another one is open?

cpassos wrote:

I managed to do what I want by editing the desktop entry... If the package is updated I have to manually reedit the desktop file.

Then you are doing it wrong:
https://wiki.archlinux.org/index.php/De … tion_entry


"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman

Offline

#3 2017-03-30 01:31:59

ngoonee
Forum Fellow
From: Between Thailand and Singapore
Registered: 2009-03-17
Posts: 7,362

Re: Is it possible make a program run each time another one is open?

What's the current desktop file? Most I've seen will simply call the executable name (and not the full path) e.g. `firefox` instead of `\usr\bin\firefox`. In that case you can just add a user folder to path (~/bin for example) and place a `firefox` script there which calls your other program and then calls `\usr\bin\firefox`.


Allan-Volunteer on the (topic being discussed) mailn lists. You never get the people who matters attention on the forums.
jasonwryan-Installing Arch is a measure of your literacy. Maintaining Arch is a measure of your diligence. Contributing to Arch is a measure of your competence.
Griemak-Bleeding edge, not bleeding flat. Edge denotes falls will occur from time to time. Bring your own parachute.

Offline

Board footer

Powered by FluxBB