You are not logged in.

#1 2023-07-07 17:38:14

forward_one
Member
Registered: 2023-06-30
Posts: 32

change the start command (pacman, yay)

how can i change the command itself to start an application in archlinux?
I only found on google where the configuration files are (/etc/) but it did not help me at all

Offline

#2 2023-07-07 18:20:47

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

Re: change the start command (pacman, yay)

You're going to need to be a lot more specific.  Do you mean you want to create an alias so you can run `pacman` by typing something like `pac`?


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

Offline

#3 2023-07-07 20:01:58

forward_one
Member
Registered: 2023-06-30
Posts: 32

Re: change the start command (pacman, yay)

Trilby wrote:

You're going to need to be a lot more specific.  Do you mean you want to create an alias so you can run `pacman` by typing something like `pac`?

For example, I downloaded a program, let firefox. Normally, I think running firefox (from GNOM) looks like this:
$ firefox
At this point, I want it to look like this to start firefox (when I click the firefox icon from GNOM):
$ proxychains4 firefox

I could do this from the console every time, but it would be inconvenient

Offline

#4 2023-07-07 20:47:58

loqs
Member
Registered: 2014-03-06
Posts: 18,938

Re: change the start command (pacman, yay)

You want to achieve for proxychains4 something similar to the actions firecfg performs for firejail?

Offline

#5 2023-07-07 21:34:04

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

Re: change the start command (pacman, yay)

forward_one wrote:

when I click the firefox icon from GNOM

GNOM?  Do you mean GNOME?  Which program exactly, a menu, a dock, etc?  In any case, if you are referring to an icon in any of those type of GUI launchers, they are almost certainly using the .desktop file - so you'll want to overide the Exec command in that as described here, specifically see sections 5.2 and 5.2.2.


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

Offline

#6 2023-07-07 21:42:12

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 76,137

Re: change the start command (pacman, yay)

As long as the starter doesn't use absolute paths, imitating the firecfg approach should be easy enough w/ symlinks to a script that exec /usr/bin/proxychains4 /usr/bin/$(basename $0)

Offline

Board footer

Powered by FluxBB