Open Firefox twice (with same profile)

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP












1















There are tons of resources that tell how to run several instances of Firefox in parrallel. I can't find any that tells me how to configure a command (on a command line, start menu item, or panel button) so that:



  • the first click opens Firefox with a predetermined profile <--(this works!)

  • subsequent clicks opens new Firefox windows for that same profile <--(how?!?)

Essentially the same as choosing "File->New Window" in Firefox, except triggered from a command line. To be explicit, I do not want to involve other profiles.



My motivation is that I have lots of desktops and lots of browser windows, and often finding that one window for the profile I want is a lot harder than to just click a button that is always going to be in the same place - on the panel.



For the first bullet, I currently use the command "firefox --no-remote -P "thisprofile" %u" and it has always worked as intended. However, for the second bullet, I invariably get the error "Firefox is already running, but is not responding. To open a new window, you must first close the existing Firefox process, or restart your system".



Clarification: I have two panel buttons that start separate Firefox profiles. These use "firefox --no-remote -P "ThisOrThatProfile" %u". If I omit any other parameters and just supply "--new-window", it correctly starts new windows of the default profile (whether that profile is already running or not). The thing is, I cannot figure out how to start new windows for specific (non-default) profiles.










share|improve this question
























  • So what is wrong with firefox --new-window ?

    – madneon
    Mar 21 '15 at 0:27











  • It works fine with the default profile, but I can't get it to work with other profiles. I've attempted to clarify my question.

    – KlaymenDK
    Mar 21 '15 at 9:47











  • I used to do it this way but I have changed to using multiple usernames to keep the mess better organized. FYI, I am logged in to user "stackex" and can come back here easily when a step of other stuff I do gets done.

    – Skaperen
    Mar 21 '15 at 10:21











  • @Skaperen, by "different usernames" do you mean separate user accounts on the machine? My pc has a few "users" (all same household), but switching the logged-in user is not what I'm after (that would be "too much" of a context switch, if you follow).

    – KlaymenDK
    Mar 21 '15 at 13:54











  • @KlaymenDK i do mean different user accounts ... i do this now because Unity made easy with a drop menu. the users are set to login w/o PW (there is no sshd running here).

    – Skaperen
    Mar 22 '15 at 11:04
















1















There are tons of resources that tell how to run several instances of Firefox in parrallel. I can't find any that tells me how to configure a command (on a command line, start menu item, or panel button) so that:



  • the first click opens Firefox with a predetermined profile <--(this works!)

  • subsequent clicks opens new Firefox windows for that same profile <--(how?!?)

Essentially the same as choosing "File->New Window" in Firefox, except triggered from a command line. To be explicit, I do not want to involve other profiles.



My motivation is that I have lots of desktops and lots of browser windows, and often finding that one window for the profile I want is a lot harder than to just click a button that is always going to be in the same place - on the panel.



For the first bullet, I currently use the command "firefox --no-remote -P "thisprofile" %u" and it has always worked as intended. However, for the second bullet, I invariably get the error "Firefox is already running, but is not responding. To open a new window, you must first close the existing Firefox process, or restart your system".



Clarification: I have two panel buttons that start separate Firefox profiles. These use "firefox --no-remote -P "ThisOrThatProfile" %u". If I omit any other parameters and just supply "--new-window", it correctly starts new windows of the default profile (whether that profile is already running or not). The thing is, I cannot figure out how to start new windows for specific (non-default) profiles.










share|improve this question
























  • So what is wrong with firefox --new-window ?

    – madneon
    Mar 21 '15 at 0:27











  • It works fine with the default profile, but I can't get it to work with other profiles. I've attempted to clarify my question.

    – KlaymenDK
    Mar 21 '15 at 9:47











  • I used to do it this way but I have changed to using multiple usernames to keep the mess better organized. FYI, I am logged in to user "stackex" and can come back here easily when a step of other stuff I do gets done.

    – Skaperen
    Mar 21 '15 at 10:21











  • @Skaperen, by "different usernames" do you mean separate user accounts on the machine? My pc has a few "users" (all same household), but switching the logged-in user is not what I'm after (that would be "too much" of a context switch, if you follow).

    – KlaymenDK
    Mar 21 '15 at 13:54











  • @KlaymenDK i do mean different user accounts ... i do this now because Unity made easy with a drop menu. the users are set to login w/o PW (there is no sshd running here).

    – Skaperen
    Mar 22 '15 at 11:04














1












1








1








There are tons of resources that tell how to run several instances of Firefox in parrallel. I can't find any that tells me how to configure a command (on a command line, start menu item, or panel button) so that:



  • the first click opens Firefox with a predetermined profile <--(this works!)

  • subsequent clicks opens new Firefox windows for that same profile <--(how?!?)

Essentially the same as choosing "File->New Window" in Firefox, except triggered from a command line. To be explicit, I do not want to involve other profiles.



My motivation is that I have lots of desktops and lots of browser windows, and often finding that one window for the profile I want is a lot harder than to just click a button that is always going to be in the same place - on the panel.



For the first bullet, I currently use the command "firefox --no-remote -P "thisprofile" %u" and it has always worked as intended. However, for the second bullet, I invariably get the error "Firefox is already running, but is not responding. To open a new window, you must first close the existing Firefox process, or restart your system".



Clarification: I have two panel buttons that start separate Firefox profiles. These use "firefox --no-remote -P "ThisOrThatProfile" %u". If I omit any other parameters and just supply "--new-window", it correctly starts new windows of the default profile (whether that profile is already running or not). The thing is, I cannot figure out how to start new windows for specific (non-default) profiles.










share|improve this question
















There are tons of resources that tell how to run several instances of Firefox in parrallel. I can't find any that tells me how to configure a command (on a command line, start menu item, or panel button) so that:



  • the first click opens Firefox with a predetermined profile <--(this works!)

  • subsequent clicks opens new Firefox windows for that same profile <--(how?!?)

Essentially the same as choosing "File->New Window" in Firefox, except triggered from a command line. To be explicit, I do not want to involve other profiles.



My motivation is that I have lots of desktops and lots of browser windows, and often finding that one window for the profile I want is a lot harder than to just click a button that is always going to be in the same place - on the panel.



For the first bullet, I currently use the command "firefox --no-remote -P "thisprofile" %u" and it has always worked as intended. However, for the second bullet, I invariably get the error "Firefox is already running, but is not responding. To open a new window, you must first close the existing Firefox process, or restart your system".



Clarification: I have two panel buttons that start separate Firefox profiles. These use "firefox --no-remote -P "ThisOrThatProfile" %u". If I omit any other parameters and just supply "--new-window", it correctly starts new windows of the default profile (whether that profile is already running or not). The thing is, I cannot figure out how to start new windows for specific (non-default) profiles.







command-line linux-mint firefox profile






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Mar 21 '15 at 9:46







KlaymenDK

















asked Mar 21 '15 at 0:12









KlaymenDKKlaymenDK

2681319




2681319












  • So what is wrong with firefox --new-window ?

    – madneon
    Mar 21 '15 at 0:27











  • It works fine with the default profile, but I can't get it to work with other profiles. I've attempted to clarify my question.

    – KlaymenDK
    Mar 21 '15 at 9:47











  • I used to do it this way but I have changed to using multiple usernames to keep the mess better organized. FYI, I am logged in to user "stackex" and can come back here easily when a step of other stuff I do gets done.

    – Skaperen
    Mar 21 '15 at 10:21











  • @Skaperen, by "different usernames" do you mean separate user accounts on the machine? My pc has a few "users" (all same household), but switching the logged-in user is not what I'm after (that would be "too much" of a context switch, if you follow).

    – KlaymenDK
    Mar 21 '15 at 13:54











  • @KlaymenDK i do mean different user accounts ... i do this now because Unity made easy with a drop menu. the users are set to login w/o PW (there is no sshd running here).

    – Skaperen
    Mar 22 '15 at 11:04


















  • So what is wrong with firefox --new-window ?

    – madneon
    Mar 21 '15 at 0:27











  • It works fine with the default profile, but I can't get it to work with other profiles. I've attempted to clarify my question.

    – KlaymenDK
    Mar 21 '15 at 9:47











  • I used to do it this way but I have changed to using multiple usernames to keep the mess better organized. FYI, I am logged in to user "stackex" and can come back here easily when a step of other stuff I do gets done.

    – Skaperen
    Mar 21 '15 at 10:21











  • @Skaperen, by "different usernames" do you mean separate user accounts on the machine? My pc has a few "users" (all same household), but switching the logged-in user is not what I'm after (that would be "too much" of a context switch, if you follow).

    – KlaymenDK
    Mar 21 '15 at 13:54











  • @KlaymenDK i do mean different user accounts ... i do this now because Unity made easy with a drop menu. the users are set to login w/o PW (there is no sshd running here).

    – Skaperen
    Mar 22 '15 at 11:04

















So what is wrong with firefox --new-window ?

– madneon
Mar 21 '15 at 0:27





So what is wrong with firefox --new-window ?

– madneon
Mar 21 '15 at 0:27













It works fine with the default profile, but I can't get it to work with other profiles. I've attempted to clarify my question.

– KlaymenDK
Mar 21 '15 at 9:47





It works fine with the default profile, but I can't get it to work with other profiles. I've attempted to clarify my question.

– KlaymenDK
Mar 21 '15 at 9:47













I used to do it this way but I have changed to using multiple usernames to keep the mess better organized. FYI, I am logged in to user "stackex" and can come back here easily when a step of other stuff I do gets done.

– Skaperen
Mar 21 '15 at 10:21





I used to do it this way but I have changed to using multiple usernames to keep the mess better organized. FYI, I am logged in to user "stackex" and can come back here easily when a step of other stuff I do gets done.

– Skaperen
Mar 21 '15 at 10:21













@Skaperen, by "different usernames" do you mean separate user accounts on the machine? My pc has a few "users" (all same household), but switching the logged-in user is not what I'm after (that would be "too much" of a context switch, if you follow).

– KlaymenDK
Mar 21 '15 at 13:54





@Skaperen, by "different usernames" do you mean separate user accounts on the machine? My pc has a few "users" (all same household), but switching the logged-in user is not what I'm after (that would be "too much" of a context switch, if you follow).

– KlaymenDK
Mar 21 '15 at 13:54













@KlaymenDK i do mean different user accounts ... i do this now because Unity made easy with a drop menu. the users are set to login w/o PW (there is no sshd running here).

– Skaperen
Mar 22 '15 at 11:04






@KlaymenDK i do mean different user accounts ... i do this now because Unity made easy with a drop menu. the users are set to login w/o PW (there is no sshd running here).

– Skaperen
Mar 22 '15 at 11:04











2 Answers
2






active

oldest

votes


















0














In Debian Iceweasel there is no problem with profiles. With subsequent clicks really opens new Firefox windows with the same profile






share|improve this answer























  • Clicks on what, panel buttons and start menu items? Could you ckeck to see what the actual command behind the icons are? I'd appreciate it.

    – KlaymenDK
    Mar 21 '15 at 20:31











  • firefox %u in both of them.

    – zorbax
    Mar 23 '15 at 18:05











  • Thank you for getting back to me. I just tried that, and it does work, it does open a new tab every time, and a new window if I also supply "--new-window" --- but it works on the default profile and I cannot make it work "across profiles". Can you make it work across profiles with Debian Iceweasel?

    – KlaymenDK
    Mar 23 '15 at 19:02


















0














To open new window use:



firefox -new-window [url]


As stated in:



firefox --help





share|improve this answer























  • Alas, this does not seem to work when the same command includes "--no-remote" and/or "-P myprofile".

    – KlaymenDK
    Mar 21 '15 at 9:43











  • what i have done in the past is create a fake home directory on the fly and set the HOME environment variable to it ... firefox used it OK

    – Skaperen
    Mar 21 '15 at 11:00










Your Answer








StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "106"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);

else
createEditor();

);

function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: false,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);



);













draft saved

draft discarded


















StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f191545%2fopen-firefox-twice-with-same-profile%23new-answer', 'question_page');

);

Post as a guest















Required, but never shown

























2 Answers
2






active

oldest

votes








2 Answers
2






active

oldest

votes









active

oldest

votes






active

oldest

votes









0














In Debian Iceweasel there is no problem with profiles. With subsequent clicks really opens new Firefox windows with the same profile






share|improve this answer























  • Clicks on what, panel buttons and start menu items? Could you ckeck to see what the actual command behind the icons are? I'd appreciate it.

    – KlaymenDK
    Mar 21 '15 at 20:31











  • firefox %u in both of them.

    – zorbax
    Mar 23 '15 at 18:05











  • Thank you for getting back to me. I just tried that, and it does work, it does open a new tab every time, and a new window if I also supply "--new-window" --- but it works on the default profile and I cannot make it work "across profiles". Can you make it work across profiles with Debian Iceweasel?

    – KlaymenDK
    Mar 23 '15 at 19:02















0














In Debian Iceweasel there is no problem with profiles. With subsequent clicks really opens new Firefox windows with the same profile






share|improve this answer























  • Clicks on what, panel buttons and start menu items? Could you ckeck to see what the actual command behind the icons are? I'd appreciate it.

    – KlaymenDK
    Mar 21 '15 at 20:31











  • firefox %u in both of them.

    – zorbax
    Mar 23 '15 at 18:05











  • Thank you for getting back to me. I just tried that, and it does work, it does open a new tab every time, and a new window if I also supply "--new-window" --- but it works on the default profile and I cannot make it work "across profiles". Can you make it work across profiles with Debian Iceweasel?

    – KlaymenDK
    Mar 23 '15 at 19:02













0












0








0







In Debian Iceweasel there is no problem with profiles. With subsequent clicks really opens new Firefox windows with the same profile






share|improve this answer













In Debian Iceweasel there is no problem with profiles. With subsequent clicks really opens new Firefox windows with the same profile







share|improve this answer












share|improve this answer



share|improve this answer










answered Mar 21 '15 at 0:34









zorbaxzorbax

140117




140117












  • Clicks on what, panel buttons and start menu items? Could you ckeck to see what the actual command behind the icons are? I'd appreciate it.

    – KlaymenDK
    Mar 21 '15 at 20:31











  • firefox %u in both of them.

    – zorbax
    Mar 23 '15 at 18:05











  • Thank you for getting back to me. I just tried that, and it does work, it does open a new tab every time, and a new window if I also supply "--new-window" --- but it works on the default profile and I cannot make it work "across profiles". Can you make it work across profiles with Debian Iceweasel?

    – KlaymenDK
    Mar 23 '15 at 19:02

















  • Clicks on what, panel buttons and start menu items? Could you ckeck to see what the actual command behind the icons are? I'd appreciate it.

    – KlaymenDK
    Mar 21 '15 at 20:31











  • firefox %u in both of them.

    – zorbax
    Mar 23 '15 at 18:05











  • Thank you for getting back to me. I just tried that, and it does work, it does open a new tab every time, and a new window if I also supply "--new-window" --- but it works on the default profile and I cannot make it work "across profiles". Can you make it work across profiles with Debian Iceweasel?

    – KlaymenDK
    Mar 23 '15 at 19:02
















Clicks on what, panel buttons and start menu items? Could you ckeck to see what the actual command behind the icons are? I'd appreciate it.

– KlaymenDK
Mar 21 '15 at 20:31





Clicks on what, panel buttons and start menu items? Could you ckeck to see what the actual command behind the icons are? I'd appreciate it.

– KlaymenDK
Mar 21 '15 at 20:31













firefox %u in both of them.

– zorbax
Mar 23 '15 at 18:05





firefox %u in both of them.

– zorbax
Mar 23 '15 at 18:05













Thank you for getting back to me. I just tried that, and it does work, it does open a new tab every time, and a new window if I also supply "--new-window" --- but it works on the default profile and I cannot make it work "across profiles". Can you make it work across profiles with Debian Iceweasel?

– KlaymenDK
Mar 23 '15 at 19:02





Thank you for getting back to me. I just tried that, and it does work, it does open a new tab every time, and a new window if I also supply "--new-window" --- but it works on the default profile and I cannot make it work "across profiles". Can you make it work across profiles with Debian Iceweasel?

– KlaymenDK
Mar 23 '15 at 19:02













0














To open new window use:



firefox -new-window [url]


As stated in:



firefox --help





share|improve this answer























  • Alas, this does not seem to work when the same command includes "--no-remote" and/or "-P myprofile".

    – KlaymenDK
    Mar 21 '15 at 9:43











  • what i have done in the past is create a fake home directory on the fly and set the HOME environment variable to it ... firefox used it OK

    – Skaperen
    Mar 21 '15 at 11:00















0














To open new window use:



firefox -new-window [url]


As stated in:



firefox --help





share|improve this answer























  • Alas, this does not seem to work when the same command includes "--no-remote" and/or "-P myprofile".

    – KlaymenDK
    Mar 21 '15 at 9:43











  • what i have done in the past is create a fake home directory on the fly and set the HOME environment variable to it ... firefox used it OK

    – Skaperen
    Mar 21 '15 at 11:00













0












0








0







To open new window use:



firefox -new-window [url]


As stated in:



firefox --help





share|improve this answer













To open new window use:



firefox -new-window [url]


As stated in:



firefox --help






share|improve this answer












share|improve this answer



share|improve this answer










answered Mar 21 '15 at 0:44









madneonmadneon

6231616




6231616












  • Alas, this does not seem to work when the same command includes "--no-remote" and/or "-P myprofile".

    – KlaymenDK
    Mar 21 '15 at 9:43











  • what i have done in the past is create a fake home directory on the fly and set the HOME environment variable to it ... firefox used it OK

    – Skaperen
    Mar 21 '15 at 11:00

















  • Alas, this does not seem to work when the same command includes "--no-remote" and/or "-P myprofile".

    – KlaymenDK
    Mar 21 '15 at 9:43











  • what i have done in the past is create a fake home directory on the fly and set the HOME environment variable to it ... firefox used it OK

    – Skaperen
    Mar 21 '15 at 11:00
















Alas, this does not seem to work when the same command includes "--no-remote" and/or "-P myprofile".

– KlaymenDK
Mar 21 '15 at 9:43





Alas, this does not seem to work when the same command includes "--no-remote" and/or "-P myprofile".

– KlaymenDK
Mar 21 '15 at 9:43













what i have done in the past is create a fake home directory on the fly and set the HOME environment variable to it ... firefox used it OK

– Skaperen
Mar 21 '15 at 11:00





what i have done in the past is create a fake home directory on the fly and set the HOME environment variable to it ... firefox used it OK

– Skaperen
Mar 21 '15 at 11:00

















draft saved

draft discarded
















































Thanks for contributing an answer to Unix & Linux Stack Exchange!


  • Please be sure to answer the question. Provide details and share your research!

But avoid


  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.

To learn more, see our tips on writing great answers.




draft saved


draft discarded














StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f191545%2fopen-firefox-twice-with-same-profile%23new-answer', 'question_page');

);

Post as a guest















Required, but never shown





















































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown

































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown






Popular posts from this blog

How to check contact read email or not when send email to Individual?

Bahrain

Postfix configuration issue with fips on centos 7; mailgun relay