User Profiles

Support and discussions for the x86/x64 Linux version of Pale Moon and specific Linux distribution questions related to the browser.

Moderator: trava90

Forum rules
If your question is about general use of the browser and not specific to Linux, then please use the General Support board.
Post Reply
User avatar
MasterCATZ
Newbie
Newbie
Posts: 4
Joined: 2021-01-11, 23:55

User Profiles

Post by MasterCATZ » 2021-01-12, 01:09

how do we create user profiles with Pale Moon ?

I need multiple profiles so I can multi account with flash games

User avatar
EMH_Mark_I
Moonbather
Moonbather
Posts: 60
Joined: 2017-06-09, 22:23
Location: Texas
Contact:

Re: User Profiles

Post by EMH_Mark_I » 2021-01-12, 21:37

Welcome!

Checkout ProfileManager. Launch Pale Moon from a terminal with the ProfileManager option. You can create and launch them from there. (You have to close out all currently active Pale Moon processes first.)

Code: Select all

palemoon --ProfileManager
An older and apparently half baked method is managing profiles through about:profiles.

Code: Select all

about:profiles
I recommend searching the forum too, it has many threads like this one where questions have been answered.
Last edited by EMH_Mark_I on 2021-01-12, 22:15, edited 1 time in total.
Debian 10 | XFCE4

"It's said the road to hell is paved with good intentions. It is with the same good intentions that we blindly place our trust in those with power, the architects of our future and all too often, the manipulators of our ultimate fate." -- The Outer Limits

User avatar
New Tobin Paradigm
Knows the dark side
Knows the dark side
Posts: 8559
Joined: 2012-10-09, 19:37
Location: Skaro

Re: User Profiles

Post by New Tobin Paradigm » 2021-01-12, 22:04

about:profiles is half-baked. Use the command line switch.
Is it that you have no idea where you are going or what you're supposed to be doing right now?
Or did you just assume when you saw that timer that something in this room is capable of turning it off?

Image

User avatar
EMH_Mark_I
Moonbather
Moonbather
Posts: 60
Joined: 2017-06-09, 22:23
Location: Texas
Contact:

Re: User Profiles

Post by EMH_Mark_I » 2021-01-12, 22:15

Thanks, I've updated the reply.
Debian 10 | XFCE4

"It's said the road to hell is paved with good intentions. It is with the same good intentions that we blindly place our trust in those with power, the architects of our future and all too often, the manipulators of our ultimate fate." -- The Outer Limits

User avatar
Moonchild
Pale Moon guru
Pale Moon guru
Posts: 28832
Joined: 2011-08-28, 17:27
Location: Tranås, SE
Contact:

Re: User Profiles

Post by Moonchild » 2021-01-13, 14:29

about:profiles is newer and half-baked. ;-)
"Son, in life you do not fight battles because you expect to win, you fight them merely because they need to be fought." -- Snagglepuss
Image

vannilla
Board Warrior
Board Warrior
Posts: 1391
Joined: 2018-05-05, 13:29

Re: User Profiles

Post by vannilla » 2021-01-13, 19:21

Just out of curiosity, what is missing from about:profiles to make it fully cooked?
I don't switch between multiple profiles so I can't really make a proper comparison on my own.

User avatar
New Tobin Paradigm
Knows the dark side
Knows the dark side
Posts: 8559
Joined: 2012-10-09, 19:37
Location: Skaro

Re: User Profiles

Post by New Tobin Paradigm » 2021-01-13, 19:45

It is a corruption, an Australis designed in-content corruption and barely functioning pseudo-replacement of something we have had from the very start.

This should really be a target for code cleanup.. We don't need this garbage when we have the ACTUAL profile manager in the toolkit. AT THE VERY LEAST it should be relocated as a Basilisk-only component.
Is it that you have no idea where you are going or what you're supposed to be doing right now?
Or did you just assume when you saw that timer that something in this room is capable of turning it off?

Image

User avatar
Bilbo47
Moonbather
Moonbather
Posts: 73
Joined: 2017-11-18, 04:24

Re: User Profiles

Post by Bilbo47 » 2021-01-18, 04:03

Linux Mint 20 has a keystroke Alt-F2 that works like Windows' Start Menu => Run. (Dunno if it exists in any other versions or distros.) Do the hotkey and a one-line command prompt appears, where you can type "Palemoon -p" to start the Profile Manager. However this appears to work only with packages that have been properly "installed". If you manually download and un-tar a package into a folder, this trick does not work. It's like an old-school 'portable' install, which does not register the program. Of course you can always create your own desktop shortcut to launch "/path/palemoon.exe -p"

User avatar
EMH_Mark_I
Moonbather
Moonbather
Posts: 60
Joined: 2017-06-09, 22:23
Location: Texas
Contact:

Re: User Profiles

Post by EMH_Mark_I » 2021-01-18, 05:23

Off-topic:
Bilbo47 wrote:
2021-01-18, 04:03
However this appears to work only with packages that have been properly "installed".
You can add the installation location to your user environment PATH. I keep applications such as Pale Moon located in "~/.local/bin/palemoon/"
Then add that to your "~/.profile" file below the rest of the other PATH conditions like.

Code: Select all

# set PATH to include Pale Moon
if [ -d "$HOME/.local/bin/palemoon/" ] ; then
    PATH="$HOME/.local/bin/palemoon/:$PATH"
fi
If your display manager fails to source your .profile on login, such as XDM then create/add an .xsessionrc file with the following.

Code: Select all

. ~/.profile
Debian 10 | XFCE4

"It's said the road to hell is paved with good intentions. It is with the same good intentions that we blindly place our trust in those with power, the architects of our future and all too often, the manipulators of our ultimate fate." -- The Outer Limits

User avatar
Kruppt
Hobby Astronomer
Hobby Astronomer
Posts: 15
Joined: 2018-07-23, 22:32

Re: User Profiles

Post by Kruppt » 2021-01-18, 17:29

Bilbo47
You can do so,
but you would need to use full path in run box to the Pale Moon executive in that case.
For example if it where installed in /usr/local/palemoon-28:
/usr/local/palemoon-28/palemoon --ProfileManager
or if it were installed in /home/$USER/palemoon
you would need to enter full path in the run box:
/home/$USER/palemoon/palemoon --ProfileManager
or if it were installed in /opt/palemoon,
/opt/palemoon/palemoon --ProfileManager

User avatar
Bilbo47
Moonbather
Moonbather
Posts: 73
Joined: 2017-11-18, 04:24

Re: User Profiles

Post by Bilbo47 » 2021-01-18, 19:18

Thanks EMH_Mark_I for the encouragement! That was very useful. Now with a bit of weblearning I have:
- a folder containing shell scripts, which is included in the $PATH at login time by .profile
- scripts that can call/execute each other, or other apps, optionally passing arguments
- single-word commands that execute the scripts

So now these Pale Moon and other apps, and their modified launches, are available from the Alt-F2 trick, or from a command line window in any folder.
"Single-word" means not-typing "./" nor any path before the command name, and not-typing ".sh" after the command name. This is done by creating a symbolic link that points/redirects execution "from" the bare command name back "to" the shell script using:

Code: Select all

$ cp -s ScriptOne.sh ShortCommandOne # make symbolic link instead of copying
$ ln -s ScriptTwo.sh ShortCommandTwo # make symbolic link instead of hard link
For example, typing "pm" launches Pale Moon, or "pmp" launches the Profile Manager. Yes the .sh files need the eXecute permission switched On.

To make the .profile changes take effect, you would normally log out and in again. After the first re-login, running 'palemoon' in a console window worked as expected, but Alt-F2 gave: Failed to execute child process "palemoon" (permission denied). After the second re-login, that failure went away. Not sure what the problem was.

Code: Select all

$alias ll='ls -alF' # List all entries, in long format, including indicator ( one of /*@=|> ) <== this line is in .bashrc
~/scr$ ll p*        # List entries beginning with 'p'
  lrwxrwxrwx 1 bob bob   5 Jan 18 11:38 pm -> pm.sh*
  lrwxrwxrwx 1 bob bob   6 Jan 18 11:36 pmp -> pmp.sh*
  -rwxrwxr-x 1 bob bob  18 Jan 18 11:50 pmp.sh*
  -rwxrwxr-x 1 bob bob  46 Jan 18 11:50 pm.sh*
  lrwxrwxrwx 1 bob bob   6 Jan 18 11:36 pth -> pth.sh*
  -rwxrwxr-x 1 bob bob 178 Jan 18 12:42 pth.sh*

~/scr$ cat pth # Dump file 'pth' to screen
  #!/bin/bash
  clear
  echo
  echo 'echo $PATH | tr ":" "\n" # emit all Path entries on separate lines, by translating from Colons to Newlines'
        echo $PATH | tr ":" "\n" # emit all Path entries on separate lines, by translating from Colons to Newlines'
  echo

~/scr$ echo $PATH | tr ":" "\n" # emit all Path entries on separate lines, by translating from Colons to Newlines
  /home/bob/scr/
  /home/bob/.local/bin
  /usr/local/sbin
  /usr/local/bin
  /usr/sbin
  /usr/bin
  /sbin
  /bin
  /usr/games
  /usr/local/games
  /snap/bin

~/scr$ cat pmp
  #!/bin/bash
  pm -p # call our Pale Moon script to start the Profile Manager

~/scr$ cat pm
  #!/bin/bash
  ~/.local/bin/palemoon/palemoon $1 # launch Pale Moon with caller's first argument, if any
  
I swear now after knowing how this stuff works on two different platforms, I could teach it to beginners much better than my CS 101 instructor in 1985, who had the same body shape and social graces as this guy
Image

vannilla
Board Warrior
Board Warrior
Posts: 1391
Joined: 2018-05-05, 13:29

Re: User Profiles

Post by vannilla » 2021-01-18, 20:12

You can always just do

Code: Select all

alias pm palemoon
alias pmp "palemoon -p" # the quotes are important
instead of creating files and messing with PATH.

User avatar
Bilbo47
Moonbather
Moonbather
Posts: 73
Joined: 2017-11-18, 04:24

Re: User Profiles

Post by Bilbo47 » 2021-01-19, 15:11

Sweet vannilla. Testing shows you could also include pathing in the alias-substitution string, in case the program's folder is not already in the $PATH. Like: alias p='/home/bob/.local/bin/palemoon/palemoon'
Hmm. My actual command did not include the single-quotes. The line above was pasted from the output of
$ alias # print the list of aliases in the reusable form `alias NAME=VALUE' on standard output.
The shell here is GNU bash, version 5.0.17 under Linux Mint 20.1 based on Ubuntu 20.04. What shells might support defining an alias without an "equal" sign, as in your post? With this version here, $ alias pm palemoon means # show me the definitions for 'pm' and 'palemoon', if any.

vannilla
Board Warrior
Board Warrior
Posts: 1391
Joined: 2018-05-05, 13:29

Re: User Profiles

Post by vannilla » 2021-01-19, 15:40

Bilbo47 wrote:
2021-01-19, 15:11
What shells might support defining an alias without an "equal" sign, as in your post?
It's a typo on my end.
I wrote it just to let you know about alias, but didn't actually check if I was following the right syntax (I don't usually write aliases if not in specific cases and it's a fire-and-forget action.)

User avatar
Bilbo47
Moonbather
Moonbather
Posts: 73
Joined: 2017-11-18, 04:24

Re: User Profiles

Post by Bilbo47 » 2021-01-20, 20:29

What is the name of the Alt-F2 trick? It's not 'command completion' because that is:
- In a console window, type three characters and press [Tab]. <== Isn't three the minimum? Like with only two characters, [Tab] does nothing, right? And this also requires having previously typed the full command in that window?

It seems that aliases are not effective inside Alt-F2, even after logging out and in again. If aliases are available only from open console windows, then that would be enough reason to not-use aliases, and instead stick with symbolic links for defining short commands.

Since command completion is a shell feature, it makes sense that Alt-F2 has no such completion.

Thankx Yo

vannilla
Board Warrior
Board Warrior
Posts: 1391
Joined: 2018-05-05, 13:29

Re: User Profiles

Post by vannilla » 2021-01-20, 23:15

Bilbo47 wrote:
2021-01-20, 20:29
What is the name of the Alt-F2 trick?
It's called "the program launcher provided by the desktop environment which changes from environment to environment", if I understood what you mean.
Anything it does is specific to the program being used to do what it does.
Alas, if the program used by your environment to act as a program launcher does not support aliases, then that's too bad. Maybe you can bug the developers to implement that feature?

User avatar
Bilbo47
Moonbather
Moonbather
Posts: 73
Joined: 2017-11-18, 04:24

Re: User Profiles

Post by Bilbo47 » 2021-01-21, 00:57

Thinking about it more, aliases are a feature of the CLI shell (bash), like commandline completion is a CLI shell feature. But like you say, a program launcher hotkey like Alt-F2 is a feature of the menuing / app-launching section of the GUI - which is completely separate from bash.

For example, X / X-Windows, Mint, and Mate (KDE? Gnome?) are all GUIs that provide mouse-point-and-click methods of opening programs and files,
as opposed to the keyboard+commandline interface of traditional CLI shells.

In 2020 Mint did yes have a hotkey to open a tiny input dialog, which can run executables on the (GUI's) path (which bash aliases are not). But in 2014 Mate did *not* have that hotkey (I guess it could have had a *different* method of opening a program by typing its name,
without going through a full CLI shell).

Apparently Synapse and "Gnome Do" are GUI add-ons that provide more features than Mint's Alt-F2 for menuing/searching/launching/opening.

I would not expect any GUI to pay attention to commandline aliases defined in .bash-aliases nor anything else from config files for bash ... unless such a thing was purposely written to do so.

Thanks again for helping me get more familiar with this Linux stuff!

Post Reply