LinuxQuestions.org
Help answer threads with 0 replies.
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 10-17-2017, 03:01 PM   #1
linux6
LQ Newbie
 
Registered: Apr 2016
Posts: 17

Rep: Reputation: Disabled
how to add firefox no-remote to favorites


i have firefox as a favorite and because i used profile manager it starts with choose profile dialog... but only the first time... if i try to open a second instance from favorites then the choose profile does not come up... i think i have to add "no-remote" to exec but i dont know where to do it... "no-remote" as search term here doesnt work as expected... thanks

Last edited by linux6; 10-17-2017 at 03:02 PM.
 
Old 10-18-2017, 08:01 AM   #2
cepheus11
Member
 
Registered: Nov 2010
Location: Germany
Distribution: Gentoo
Posts: 286

Rep: Reputation: 89
Program starters are .desktop files, like "firefox.desktop". Usually in "/usr/share/applications" or "/home/<username>/.local/share/applications". To add a second firefox starter for your second profile:

1. Find the original firefox starter desktop file.
2. Make a copy of it, with a different file name like "firefox2.desktop" in "/home/<username>/.local/share/applications".
3. Open this copy with a text editor. Replace the value for "Name" with something to make it distinguishable, and append the firefox options to the value for "Exec". Like so:

Code:
[Desktop Entry]
Type=Application
Name=Firefox other profile
Exec=firefox %u -no-remote -P <Profilename>
...
4. Wait for your desktop/startmenu/taskbar/search function to recognize the new file. You should now have an additional firefox entry in your startmenu/taskbar/search function.

You can also one-time launch a firefox with second profile from the command line:
Code:
firefox -no-remote -P <Profilename> &
or

Code:
firefox -no-remote -Profile <path to profile directory> &
 
Old 10-18-2017, 08:31 AM   #3
linux6
LQ Newbie
 
Registered: Apr 2016
Posts: 17

Original Poster
Rep: Reputation: Disabled
%u ?

the "%u" looks like a substitution variable in the "exec" line. Is it possible to substitute "--no-remote" into %u somewhere when I want to instead of creating another .desktop file? thanks.
 
Old 10-18-2017, 11:42 AM   #4
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 13,233
Blog Entries: 9

Rep: Reputation: 3619Reputation: 3619Reputation: 3619Reputation: 3619Reputation: 3619Reputation: 3619Reputation: 3619Reputation: 3619Reputation: 3619Reputation: 3619Reputation: 3619
Quote:
Originally Posted by linux6 View Post
the "%u" looks like a substitution variable in the "exec" line. Is it possible to substitute "--no-remote" into %u somewhere when I want to instead of creating another .desktop file? thanks.
you can create your own desktop files as you see fit.
 
Old 10-18-2017, 11:58 AM   #5
linux6
LQ Newbie
 
Registered: Apr 2016
Posts: 17

Original Poster
Rep: Reputation: Disabled
i was unclear... i wonder if it is possible to enter a value for "%u" somehow in another script or dialog and use THIS desktop item with the substituted argument... if "%u" is a variable then where is it set? can i set it without editing THIS desktop file?
 
Old 10-18-2017, 12:45 PM   #6
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 13,233
Blog Entries: 9

Rep: Reputation: 3619Reputation: 3619Reputation: 3619Reputation: 3619Reputation: 3619Reputation: 3619Reputation: 3619Reputation: 3619Reputation: 3619Reputation: 3619Reputation: 3619
Quote:
Originally Posted by linux6 View Post
can i set it without editing THIS desktop file?
yes, you can copy THIS desktop file to a new version of itself and do your edits.

sorry, maybe i'm being thick, i must admit i had difficulty following your problem description from the start.
 
Old 10-18-2017, 01:30 PM   #7
linux6
LQ Newbie
 
Registered: Apr 2016
Posts: 17

Original Poster
Rep: Reputation: Disabled
I guess a lot of people dont use this firefox feature... i use it to prevent any cross-window interactions from sketchy websites... i use noscript but dont want to use it all the time or keep turning it on and off and forgetting etc... so i have different profiles for trusted and untrusted browsing etc... anyway i tried to create new desktop file with --no-remote on exec line but it still doesnt bring up choose user profile dialog for second instance... i saw this "bug" on the web but hoped these were all old posts and the problem had been resolved... i tried putting -no-remote before and after %u... also with and without -P also tried --no-remote (2 dashes)... nothing works... or maybe i missed the correct combination

Last edited by linux6; 10-18-2017 at 01:31 PM.
 
Old 10-19-2017, 03:30 PM   #8
linux6
LQ Newbie
 
Registered: Apr 2016
Posts: 17

Original Poster
Rep: Reputation: Disabled
workaround found

1. use profile manager to create multiple profiles
2. select a default profile for firefox in profile manager
3. enter "about: profiles" as home page in fire fox default profile
4. about: profiles lets you launch separate instances of firefox with separate profiles
(it wont let you have 2 instances of same profile... same as in past)

if anyone figures out how to configure firefox to launch profile manager with each instance please post here. thanks.

Last edited by linux6; 10-19-2017 at 03:36 PM.
 
  


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
LXer: Add applications to panel, desktops or favorites in Linux Mint 16 Cinnamon LXer Syndicated Linux News 0 04-19-2014 03:41 PM
Can't chnage wallpaper, add to favorites bar, or use Gnome Accessibility tools. maniac matt Linux - Desktop 0 08-27-2012 07:55 PM
LXer: How to add website shortcuts to the Favorites list of Mint Menu LXer Syndicated Linux News 0 06-24-2012 11:42 PM
How do I enlarge the menu for favorites and news feeds in firefox? bruno buys Linux - Software 0 05-06-2005 10:46 PM
Import MY Favorites Into FireFox(Linux). amer_58 Linux - Newbie 6 02-17-2005 10:18 AM

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

All times are GMT -5. The time now is 03:27 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration