LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu
User Name
Password
Ubuntu This forum is for the discussion of Ubuntu Linux.

Notices


Reply
  Search this Thread
Old 05-03-2018, 07:02 AM   #1
hifi100
Member
 
Registered: Sep 2016
Location: India
Distribution: Arch Linux
Posts: 357

Rep: Reputation: Disabled
Adding firejail to favorites launcher


Hi,

I have edited the shortcut

Code:
sudo nano /usr/share/applications/firefox.desktop
and added firejail to the exec line.

When I click on Activities then Firefox it opens with firejail sandbox but when I add Firefox

to the favorites bar and click on Firefox on the favorites bar it opens without firejail sandbox.

Any solutions ?
 
Old 05-03-2018, 07:17 AM   #2
hydrurga
LQ Guru
 
Registered: Nov 2008
Location: Pictland
Distribution: Linux Mint 21 MATE
Posts: 8,048
Blog Entries: 5

Rep: Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925
How did you add Firefox to the dash - did you do it through Activities?

https://help.ubuntu.com/stable/ubunt...favorites.html
 
Old 05-03-2018, 07:20 AM   #3
hifi100
Member
 
Registered: Sep 2016
Location: India
Distribution: Arch Linux
Posts: 357

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by hydrurga View Post
How did you add Firefox to the dash - did you do it through Activities?

https://help.ubuntu.com/stable/ubunt...favorites.html
Yes I added FF through Activities but when I click on Firefox in the dash it launches without firejail sandbox.
 
Old 05-03-2018, 07:23 AM   #4
hydrurga
LQ Guru
 
Registered: Nov 2008
Location: Pictland
Distribution: Linux Mint 21 MATE
Posts: 8,048
Blog Entries: 5

Rep: Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925
I don't use GNOME. If you right click on the Firefox icon on the dash, is there a Properties option and, if so, what does it list for the associated command line?
 
Old 05-03-2018, 07:30 AM   #5
hifi100
Member
 
Registered: Sep 2016
Location: India
Distribution: Arch Linux
Posts: 357

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by hydrurga View Post
I don't use GNOME. If you right click on the Firefox icon on the dash, is there a Properties option and, if so, what does it list for the associated command line?
If I right click on the FF icon I get

All Windows
Open a New Window
Open a New Private Window
Remove from favorites
Show Details
Quit

If I click on show details it opens Ubuntu Software.
 
Old 05-03-2018, 07:41 AM   #6
hydrurga
LQ Guru
 
Registered: Nov 2008
Location: Pictland
Distribution: Linux Mint 21 MATE
Posts: 8,048
Blog Entries: 5

Rep: Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925
Ok, sorry, I'll need to leave you in the hands of someone who knows more about GNOME. What it does look like though is that the version of Firefox on the dash runs Firefox directly without recourse to the firefox.desktop file.

You could always create your own custom launcher on the desktop and drag it onto the dash to see if that works.
 
Old 05-03-2018, 07:56 AM   #7
hifi100
Member
 
Registered: Sep 2016
Location: India
Distribution: Arch Linux
Posts: 357

Original Poster
Rep: Reputation: Disabled
Anyone ? Any ideas ?
 
Old 05-04-2018, 02:19 AM   #8
hifi100
Member
 
Registered: Sep 2016
Location: India
Distribution: Arch Linux
Posts: 357

Original Poster
Rep: Reputation: Disabled
Bump
 
Old 05-04-2018, 05:54 AM   #9
hydrurga
LQ Guru
 
Registered: Nov 2008
Location: Pictland
Distribution: Linux Mint 21 MATE
Posts: 8,048
Blog Entries: 5

Rep: Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925
Quote:
Originally Posted by hifi100 View Post
Bump
Quote:
Originally Posted by hifi100 View Post
Anyone ? Any ideas ?
Just for your info, that's not how we work here on LQ, hifi100. It's considered rude.

So, did you try creating your own custom launcher, or did you just decide to ignore that piece of advice?
 
Old 05-04-2018, 06:01 AM   #10
hifi100
Member
 
Registered: Sep 2016
Location: India
Distribution: Arch Linux
Posts: 357

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by hydrurga View Post
Just for your info, that's not how we work here on LQ, hifi100. It's considered rude.
Sorry didn't know about that. In ubuntuforums.org you can bump every 12hs. I guess each forum has its own rules. Sorry about that.

Quote:
Originally Posted by hydrurga View Post
J So, did you try creating your own custom launcher, or did you just decide to ignore that piece of advice?
I was given this link

https://help.ubuntu.com/stable/ubunt...favorites.html

According to the above link I am supposed to add items to favorite bar by going to activities.

Did I miss something ?
 
Old 05-04-2018, 06:09 AM   #11
hydrurga
LQ Guru
 
Registered: Nov 2008
Location: Pictland
Distribution: Linux Mint 21 MATE
Posts: 8,048
Blog Entries: 5

Rep: Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925
Quote:
Originally Posted by hifi100 View Post
Sorry didn't know about that. In ubuntuforums.org you can bump every 12hs. I guess each forum has its own rules. Sorry about that.

I was given this link

https://help.ubuntu.com/stable/ubunt...favorites.html

According to the above link I am supposed to add items to favorite bar by going to activities.

Did I miss something ?
No problem at all. Yes, you created the dash item the correct way as far as I can see. What I'm suggesting, although I'm not a GNOME user and no real authority on the subject, is that if something doesn't work then try another way to do it.

Searching on the web for "ubuntu 18.04 create desktop launcher" returns the following page:

https://linuxconfig.org/how-to-creat...c-beaver-linux

Work through it and create a desktop launcher that calls Firefox with Firejail incorporated in the command. Test it and see if it works. If it does, try dragging the launcher onto the dash.
 
Old 05-04-2018, 06:20 AM   #12
hifi100
Member
 
Registered: Sep 2016
Location: India
Distribution: Arch Linux
Posts: 357

Original Poster
Rep: Reputation: Disabled
@hydrurga

I read that link. What I have done in the mean time is this

Code:
cd /usr/share/applications/
Code:
 cp firefox.desktop /home/ubuntu/Desktop/
As you can see its doing the same thing mentioned in that link.

Only difference is I copied existing .desktop entries instead

of creating manually.

Now I can open FF with firejail by clicking the FF icon on my desktop.

The irritating part is I still cant use the favorites launcher.
 
Old 05-04-2018, 06:22 AM   #13
hydrurga
LQ Guru
 
Registered: Nov 2008
Location: Pictland
Distribution: Linux Mint 21 MATE
Posts: 8,048
Blog Entries: 5

Rep: Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925
Quote:
Originally Posted by hifi100 View Post
@hydrurga

I read that link. What I have done in the mean time is this

Code:
cd /usr/share/applications/
Code:
 cp firefox.desktop /home/ubuntu/Desktop/
As you can see its doing the same thing mentioned in that link.

Only difference is I copied existing .desktop entries instead

of creating manually.

Now I can open FF with firejail by clicking the FF icon on my desktop.

The irritating part is I still cant use the favorites launcher.
Smart thinking.

Will that .desktop file not drag and drop onto the dash?
 
Old 05-04-2018, 06:26 AM   #14
hifi100
Member
 
Registered: Sep 2016
Location: India
Distribution: Arch Linux
Posts: 357

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by hydrurga View Post
Smart thinking.

Will that .desktop file not drag and drop onto the dash?
Unfortunately it wont. I tried.
 
Old 05-04-2018, 06:33 AM   #15
hydrurga
LQ Guru
 
Registered: Nov 2008
Location: Pictland
Distribution: Linux Mint 21 MATE
Posts: 8,048
Blog Entries: 5

Rep: Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925
Does right-clicking on the .desktop file offer any useful options?
 
  


Reply



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
[SOLVED] firefox launcher doesn't show icon on panel bar of slackware but launcher still there mshlinux Linux - Newbie 6 04-24-2013 10:56 PM
[SOLVED] Adding --geometry parameter to launcher not working Xfce 4.6.2 on Slackware 13.37 Gerardo Zamudio Slackware 5 06-17-2011 12:48 PM
Adding A Launcher to Desktop that connects to Disk Array Deletes and Then Copies clistyles Linux - Newbie 0 05-17-2011 05:44 PM
Adding a launcher for an application Darkestfilth Ubuntu 10 04-15-2010 01:42 AM
Adding a launcher to the main menu for all users. saravkrish Fedora 3 08-27-2004 09:51 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu

All times are GMT -5. The time now is 01:35 PM.

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