Open tabs in existing Palemoon instances

Support and discussions for the x86/x64 Linux version of Pale Moon.

Moderators: trava90, satrow

User avatar
fitheach
New to the forum
New to the forum
Posts: 1
Joined: Fri, 08 Jun 2018, 18:33

Open tabs in existing Palemoon instances

Unread postby fitheach » Fri, 08 Jun 2018, 18:58

I would like to use multiple PM profiles at the same time and then be able to direct the opening of URLs to specific profiles. Is that possible?

I have tried every combination of -no-remote, -new-instance, -remote, -new-tab along with specifying the profile name and couldn't get it to work. I either get:

Code: Select all

Error: No running window found

or

Code: Select all

Pale Moon is already running, but is not responding. To open a new window, you must first close the existing Pale Moon process, or restart your system.


Currently, I run a script which allows me to select a profile when I want to open a URL from, for example, my email client or RSS reader. This works in Firefox but not in PM.

Anyone got any ideas?


Using PM 27.8.1 on Debian Stretch x64

Lew Rockwell Fan
Fanatic
Fanatic
Posts: 103
Joined: Wed, 14 Jun 2017, 15:20

Re: Open tabs in existing Palemoon instances

Unread postby Lew Rockwell Fan » Sun, 26 Aug 2018, 07:31

You might check this out:
viewtopic.php?f=37&t=20144
I haven't tested the code below for terminal dependency and so on, but it works fine from lxterminal. If you are trying to do it from a script, try it in some terminals and see if it makes a difference. If you read the page linked above, you'll see I tested a somewhat similar command in 6 contexts, and it only worked from lxterminal or grun. Which is weird. I'd be curious to know if you are experiencing a variation of the same issue. I've noticed before that things don't necessarily work the same way in different terminals. Usually it's lxterminal that is the odd man out but usually the bad actor, instead of the champ.

Code: Select all

palemoon -P profilename --new-tab example.com
works for me. You have to give it a url. Or something like a url. A local text file will do:

Code: Select all

palemoon -P profilename --new-tab smartass-quips.txt

Or you can use your home page:

Code: Select all

palemoon -P profilename --new-tab about:home

Probably there are lots of strings that would work, but you have to give it some argument.
Last edited by Lew Rockwell Fan on Sun, 26 Aug 2018, 07:43, edited 2 times in total.

User avatar
therube
Astronaut
Astronaut
Posts: 516
Joined: Fri, 08 Jun 2018, 17:02

Re: Open tabs in existing Palemoon instances

Unread postby therube » Sun, 26 Aug 2018, 16:02


Lew Rockwell Fan
Fanatic
Fanatic
Posts: 103
Joined: Wed, 14 Jun 2017, 15:20

Re: Open tabs in existing Palemoon instances

Unread postby Lew Rockwell Fan » Mon, 27 Aug 2018, 03:37

OK, I may not understand your objective properly, in which case this may not be of interest, but FWIW, I have 2 profiles ATM. I start both from the Openbox menu with a command like this written directly in the menu file (~/.config/openbox/menu.xml):

Code: Select all

palemoon -P profilename --new-instance


Whether that is equivalent to opening them from a script running in the background, or opening them from a runbox, I don't know. Until I discovered otherwise a few days ago, I assumed those different methods of running a command should produce the same results. Not so. I'm not even sure they are defaulting to bash like all my terminals do. I can't get either the OB menu or the run box to expand $0 to tell me. They may be running commands in dash instead.

If I start a palemoon from the menu and then

Code: Select all

ps -wweo pid,args | grep palemoon | grep -v grep

I get:

Code: Select all

30853 palemoon -P fresh --new-instance


If I start a second instance in the other profile from the menu, the same command now gives me

Code: Select all

16421 palemoon -P default --new-instance
30853 palemoon -P fresh --new-instance

At that point, I can open a new tab with a specified url in either specified window like this:

Code: Select all

palemoon -P fresh --new-tab bitchute.com

or

Code: Select all

palemoon -P default --new-tab minds.com


I double checked in xvt, lxterminal, & grun. They all worked the same way.


Return to “Pale Moon for Linux”

Who is online

Users browsing this forum: bgstack15, yami_ and 5 guests