LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 04-11-2021, 01:56 PM   #1
danivc
LQ Newbie
 
Registered: Apr 2021
Posts: 3

Rep: Reputation: Disabled
Question 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

Last edited by danivc; 04-12-2021 at 05:53 AM.
 
Old 04-11-2021, 02:22 PM   #2
TorC
Member
 
Registered: Dec 2020
Location: as far S and E as I want to go in the U.S.
Distribution: Fossapup64
Posts: 224

Rep: Reputation: 78
Does it work? If firejail allows you to choose pdfview, accept it.

(This ought to bring on the bash scripters!)
 
Old 04-11-2021, 03:55 PM   #3
danivc
LQ Newbie
 
Registered: Apr 2021
Posts: 3

Original Poster
Rep: Reputation: Disabled
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
 
Old 04-11-2021, 07:29 PM   #4
frankbell
LQ Guru
 
Registered: Jan 2006
Location: Virginia, USA
Distribution: Slackware, Ubuntu MATE, Mageia, and whatever VMs I happen to be playing with
Posts: 19,310
Blog Entries: 28

Rep: Reputation: 6136Reputation: 6136Reputation: 6136Reputation: 6136Reputation: 6136Reputation: 6136Reputation: 6136Reputation: 6136Reputation: 6136Reputation: 6136Reputation: 6136
It is normally possible to change "open with" applications. How to do so can vary depending on the specific platform.
 
Old 04-11-2021, 07:48 PM   #5
Bonzoo
Member
 
Registered: Sep 2018
Location: Costa Rica
Distribution: Antix21a2,Parrot rolling,MXfce19.4,Sparky Openbox
Posts: 233

Rep: Reputation: 48
Relax bro. sudo ??? (terminal) Then edit the file properties
 
Old 04-12-2021, 05:53 AM   #6
danivc
LQ Newbie
 
Registered: Apr 2021
Posts: 3

Original Poster
Rep: Reputation: Disabled
Lightbulb

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.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Why did you choose the distro you chose? KGIII General 53 08-06-2020 08:17 AM
Help With Java Problem Please"""""""""""" suemcholan Linux - Newbie 1 04-02-2008 06:02 PM
The PHP configuration on your server doesn't support the database type that you chose waynejkruse10 Linux - Software 1 10-05-2005 02:01 AM
To the experienced, why YOU chose SUSE? alphster SUSE / openSUSE 11 12-18-2004 08:46 AM
Can you change the "title" under your name that says "member" or "newbie&qu Whitehat LQ Suggestions & Feedback 3 11-19-2003 06:32 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 12:14 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration