LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Is it possible to change the NAME of the app you chose in "Open with.."? (https://www.linuxquestions.org/questions/linux-newbie-8/is-it-possible-to-change-the-name-of-the-app-you-chose-in-open-with-4175693520/)

danivc 04-11-2021 01:56 PM

Is it possible to change the NAME of the app you chose in "Open with.."?
 
Hi,

I open my PDF files with firejail, sandboxed.

I have a script like this:

#!/bin/bash
firejail pdfview $1 &

and I changed the properties of PDF files to open with that as default.

On the "Open with..." list, I get "firejail" as the name to choose.

My problem comes when I want to have another script that does something a bit different, and I also get "firejail" on the list.

Is there any way of renaming those entries to something more meaningful?

thnx

TorC 04-11-2021 02:22 PM

Does it work? If firejail allows you to choose pdfview, accept it.

(This ought to bring on the bash scripters!)

danivc 04-11-2021 03:55 PM

ok, I messed up a little bit.

I made this yesterday, and it wasn't like I remembered.

Some part of it was true, though.

Let's start again:

I want to open PDFs with 2 different scripts. This, for some reason, DOESN'T WORK.

BUT, if I copy the contents of the script into the "Open with..." dialog, at the bottom, it works.

(zathura works, qpfview doesn't)

"firejail zathura" ----> works in the dialog, but in the script it doesn't. I tried "firejail zathura $1" but that didn't work either.

I need 1 of 2 possible solutions:

1) make a bash script work (this generates an entry on the list with the name of the script)

or

2) change the name of "firejail" on the list to something else


sorry for the 1st post mess. oopsy :)

frankbell 04-11-2021 07:29 PM

It is normally possible to change "open with" applications. How to do so can vary depending on the specific platform.

Bonzoo 04-11-2021 07:48 PM

Relax bro. sudo ??? (terminal) Then edit the file properties

danivc 04-12-2021 05:53 AM

SOLVED!

OK, found it.

Everytime I make an association, it makes a .desktop file in .local/share/applications

I can edit the "Name" property there...and it's done.


All times are GMT -5. The time now is 03:26 AM.