profiles.ini

Users and developers helping users with generic and technical Pale Moon issues on all operating systems.

Moderator: trava90

Forum rules
This board is for technical/general usage questions and troubleshooting for the Pale Moon browser only.
Technical issues and questions not related to the Pale Moon browser should be posted in other boards!
Please keep off-topic and general discussion out of this board, thank you!
mekineer

profiles.ini

Unread post by mekineer » 2018-06-03, 23:12

Is it possible to have Pale Moon use a profiles.ini placed within its own program folder, instead of the one in %appdata% ?

User avatar
SpockFan02
Astronaut
Astronaut
Posts: 535
Joined: 2017-09-24, 16:35
Location: Mak pupulusšum, California

Re: profiles.ini

Unread post by SpockFan02 » 2018-06-03, 23:50


mekineer

Re: profiles.ini

Unread post by mekineer » 2018-06-04, 03:05

Thanks, but specifically, I'd like to know about keeping profiles.ini out of the %appdata% folder. I already use a path in the shorcut to launch pale moon:
"path-to-pale-moon\palemoon.exe" -profile "path-to-pale-moon\_profile"
However, system http, https, etc associations use the profiles.ini file, for the profile path.
Last edited by mekineer on 2018-06-04, 03:15, edited 3 times in total.

User avatar
SpockFan02
Astronaut
Astronaut
Posts: 535
Joined: 2017-09-24, 16:35
Location: Mak pupulusšum, California

Re: profiles.ini

Unread post by SpockFan02 » 2018-06-04, 08:48

I'm afraid I don't know how to help (although I believe Pale Moon Portable's files are completely self-contained, which might be what you're looking for). Hopefully someone else does.
Last edited by SpockFan02 on 2018-06-04, 09:00, edited 1 time in total.

mekineer

Re: profiles.ini

Unread post by mekineer » 2018-06-04, 12:48

Looks like it is hard coded in Firefox, but I hope that Pale Moon could be more flexible. (note the post is from 2014)
https://stackoverflow.com/questions/235 ... re-startup

Goodydino
Keeps coming back
Keeps coming back
Posts: 820
Joined: 2017-10-10, 21:20

Re: profiles.ini

Unread post by Goodydino » 2018-06-04, 18:03

I would expect profiles.ini to be in a default location, since it tells Pale Moon where its profile is. Pale Moon would have to have the location of profiles.ini hard-coded into it in order to find its profile.

mekineer

Re: profiles.ini

Unread post by mekineer » 2018-06-05, 17:38

Could it be coded to look in the path from which it was launched?

User avatar
Moonchild
Pale Moon guru
Pale Moon guru
Posts: 35484
Joined: 2011-08-28, 17:27
Location: Motala, SE
Contact:

Re: profiles.ini

Unread post by Moonchild » 2018-06-05, 18:22

It theoretically could, but that won't work, because in normal situations (Pale Moon installed in a system-protected program folder) that location isn't writable. That's why profiles.ini is in a vendor-specific location in the user's application data.
"Sometimes, the best way to get what you want is to be a good person." -- Louis Rossmann
"Seek wisdom, not knowledge. Knowledge is of the past; wisdom is of the future." -- Native American proverb
"Linux makes everything difficult." -- Lyceus Anubite

mekineer

Re: profiles.ini

Unread post by mekineer » 2018-06-06, 23:31

Can you programatically have:
If profiles.ini is not accessible from current running path,
then look in the vendor specific location?

User avatar
Moonchild
Pale Moon guru
Pale Moon guru
Posts: 35484
Joined: 2011-08-28, 17:27
Location: Motala, SE
Contact:

Re: profiles.ini

Unread post by Moonchild » 2018-06-07, 00:21

Sorry but that's simply not the way the browser is designed.
"Sometimes, the best way to get what you want is to be a good person." -- Louis Rossmann
"Seek wisdom, not knowledge. Knowledge is of the past; wisdom is of the future." -- Native American proverb
"Linux makes everything difficult." -- Lyceus Anubite

User avatar
therube
Board Warrior
Board Warrior
Posts: 1650
Joined: 2018-06-08, 17:02

Re: profiles.ini

Unread post by therube » 2018-06-08, 17:15

I'd like to know about keeping profiles.ini out of the %appdata% folder.
AFAIK, profiles.ini has to be there (that is where it is looked for).

I already use a path in the shorcut to launch pale moon:
"path-to-pale-moon\palemoon.exe" -profile "path-to-pale-moon\_profile"

AFAIK, then you are (already) bypassing profiles.ini.
However, system http, https, etc associations use the profiles.ini file, for the profile path.
I don't know that that is correct.
http, https, in Windows, should read the Windows Registry to see how to handle those.
http, https, of its own, knows nothing of profiles.ini.
Registry will have an association, something like (& I don't know if this is what PM does):

Code: Select all

"C:\Programs\Palemoon\palemoon.exe" -requestPending -osint -url "%1"
Now when palemoon.exe is executed, & it not being told otherwise, it will go out looking for profiles.ini.
But that does not stop you from changing the command-line that gets executed, such that it could be something like:

Code: Select all

"C:\Programs\Palemoon\palemoon.exe" -requestPending -osint -profile "path-to_profile" -url "%1"

(Offhand, don't recall what the -requestPending or -osint might do?
Anyhow, try something like that & see what it gives you?
Suppose it is possible that even if you opened all occurrences of PM with the -profile switch, IOW never opened PM without it, that it would still create some "default" profile.ini - in %appdata%, not sure?)

mekineer

Re: profiles.ini

Unread post by mekineer » 2018-06-17, 23:26

Sorry for the late reply. I had tried that already. I currently have the following reg file. Please excuse "_runable". I've had the name there since before the term portable was being used.

Code: Select all

[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\PaleMoonHTML\shell\open\command]
@="\"D:\\software\\_runable\\palemoon 27\\palemoon.exe\" -osint -url \"%1\" -profile \"d:\\software\\_runable\\palemoon 27\\_profile\""

[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\PaleMoonURL\shell\open\command]
@="\"D:\\software\\_runable\\palemoon 27\\palemoon.exe\" -osint -url \"%1\" -profile \"d:\\software\\_runable\\palemoon 27\\_profile\""

[HKEY_LOCAL_MACHINE\SOFTWARE\Clients\StartMenuInternet\PALEMOON.EXE\shell\open\command]
@="\"d:\\software\\_runable\\palemoon 27\\palemoon.exe\" -profile \"d:\\software\\_runable\\palemoon 27\\_profile\""

[HKEY_LOCAL_MACHINE\SOFTWARE\Clients\StartMenuInternet\PALEMOON.EXE\shell\properties\command]
@="\"d:\\software\\_runable\\palemoon 27\\palemoon.exe\" -preferences -profile \"d:\\software\\_runable\\palemoon 27\\_profile\""

[HKEY_LOCAL_MACHINE\SOFTWARE\Clients\StartMenuInternet\PALEMOON.EXE\shell\safemode\command]
@="\"d:\\software\\_runable\\palemoon 27\\palemoon.exe\" -safe-mode -profile \"d:\\software\\_runable\\palemoon 27\\_profile\""

[HKEY_CURRENT_USER\Software\Classes\Applications\palemoon.exe\shell\open\command]
@="\"D:\\software\\_runable\\palemoon 27\\palemoon.exe\" \"%1\" -profile \"d:\\software\\_runable\\palemoon 27\\_profile\""

[HKEY_CURRENT_USER\Software\Classes\ftp\shell\open\command]
@="\"d:\\software\\_runable\\palemoon 27\\palemoon.exe\" -osint -url \"%1\" -profile \"d:\\software\\_runable\\palemoon 27\\_profile\""

[HKEY_CURRENT_USER\Software\Classes\http\shell\open\command]
@="\"d:\\software\\_runable\\palemoon 27\\palemoon.exe\" -osint -url \"%1\" -profile \"d:\\software\\_runable\\palemoon 27\\_profile\""

[HKEY_CURRENT_USER\Software\Classes\https\shell\open\command]
@="\"d:\\software\\_runable\\palemoon 27\\palemoon.exe\" -osint -url \"%1\" -profile \"d:\\software\\_runable\\palemoon 27\\_profile\""

[HKEY_CURRENT_USER\Software\Classes\PaleMoonHTML\shell\open\command]
@="\"d:\\software\\_runable\\palemoon 27\\palemoon.exe\" -osint -url \"%1\" -profile \"d:\\software\\_runable\\palemoon 27\\_profile\""

[HKEY_CURRENT_USER\Software\Classes\PaleMoonURL\shell\open\command]
@="\"d:\\software\\_runable\\palemoon 27\\palemoon.exe\" -osint -url \"%1\" -profile \"d:\\software\\_runable\\palemoon 27\\_profile\""
However, It doesn't work in launching the existing profile, for any *.htm file, if the following two requirements are met:
1) profiles.ini is missing
2) Pale Moon is not running
Last edited by mekineer on 2018-06-17, 23:29, edited 1 time in total.

User avatar
therube
Board Warrior
Board Warrior
Posts: 1650
Joined: 2018-06-08, 17:02

Re: profiles.ini

Unread post by therube » 2018-06-18, 11:55

So are you running Pale Moon Portable (as in the PortableApps version)?

Do you need all that escaping in you Registry entries?
(Or said another way, is that escaping negatively affecting your results?)
(And your lines end in \"", is that extra " correct?)
Last edited by therube on 2018-06-18, 11:56, edited 1 time in total.

mgagnonlv
Lunatic
Lunatic
Posts: 266
Joined: 2013-03-05, 02:06
Location: Canada

Re: profiles.ini

Unread post by mgagnonlv » 2018-06-18, 20:10

I haven't tried that with PaleMoon, but I have done so with Thunderbird and Firefox (circa v.38) without problems.

Basically, the file "profiles.ini" will stay where it is supposed to be in your "user/me/AppData/Roaming" profile, but your profile can be anywhere you want (and where you have read-write permissions).

– Start Pale Moon with "Palemoon -p"

– Once you load the profile manager, ask to create a new profile and select its location where you want it.

That way, you can create a profile at the root of your "Document" folder or on an external drive. If you make that folder too easily accessible, make sure you don't mess up with your profile folder content, especially when Pale Moon is open. One of the reasons it is hidden deep in your profile is precisely to avoid such mishaps.
Michel Gagnon
Montréal (Québec, Canada)

mekineer

Re: profiles.ini

Unread post by mekineer » 2018-06-24, 04:03

I can start (multiboot) into more than one windows os, and share the desktop, documents, and custom start menu and programs. My thoughts on portability: http://mekineer.com/dokuwiki/doku.php?i ... e_software
No, I'm not using the portable version. I'm making the regular version portable.

Locked