cassidyjames / ephemeral

A private-by-default, always-incognito browser for elementary OS
https://cassidyjames.com
GNU General Public License v3.0
154 stars 22 forks source link

"Open Page In" seems to use a separate Firefox profile #218

Open bashfulrobot opened 4 years ago

bashfulrobot commented 4 years ago

Hey Cassidy,

I know you are not really supporting Ephemeral outside of the Elementary OS ecosystem, but I thought I would open this up in case it is having and effect on your users as well. If not - feel free to close.

Versions

cat /etc/lsb-release                                                      ─╯
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=19.10
DISTRIB_CODENAME=eoan
DISTRIB_DESCRIPTION="Ubuntu 19.10

firefox --version                                                         ─╯
Mozilla Firefox 72.0.2
(Debian package)

ephemeral 6.2.0
(Compiled from source)

Steps to Reproduce

Thank you.

cassidyjames commented 4 years ago

I haven't been able to reproduce this on elementary OS and have no idea how it would happen; Ephemeral uses GLib to look for launchers that can handle opening web pages

https://github.com/cassidyjames/ephemeral/blob/d5fa4ed76fda9c85f922f3f2e8b5779f85749546/src/Widgets/BrowserButton.vala#L26

and then asks GLib to use that app to open the URI

https://github.com/cassidyjames/ephemeral/blob/d5fa4ed76fda9c85f922f3f2e8b5779f85749546/src/Widgets/BrowserButton.vala#L159

I am not sure what would have changed between 18.04 and 19.10, but is it possible you have duplicate Firefox .desktop files that are somehow causing this? I.e. one system-wide and one in ~/.local?

bashfulrobot commented 4 years ago

Hey Cassidy! Thanks for the response. I have just the single desktop file in the global location. It is odd. But with that said, I don't want to waste your time. So it's your call if you would like to troubleshoot, or close off due to an unsupported platform. It's not a huge ordeal for me. I simply logged into Firefox on the alternate profile to get my customization. I looked in ~/.mozilla/firefox and there are two distinct profiles (folders). I then opened about:profiles and deleted the one that was not in use. Now it seems to use the same profile. I am not sure what the trigger is as I have had this happen on three different installations. Although this is the first time I've deleted a profile after.

igalic commented 4 years ago

hrm… i… don't seem to have that problem! inspired by our (discussion on the Fediverse](https://dev.glitch.social/@hirojin/103863027867194565), i created a desktop file for my ~/.local/share/applications/social.desktop "social" profile for firefox:

[Desktop Entry]
Version=1.0
Name=Social
Comment=Social Media Profile for Firefox
GenericName=Web Browser
Keywords=Internet;WWW;Browser;Web;Explorer;Social
Exec=firefox -P social %u
Terminal=false
X-MultipleArgs=false
Type=Application
Icon=network-workgroup
Categories=GNOME;GTK;Network;WebBrowser;
MimeType=text/html;text/xml;application/xhtml+xml;application/xml;application/rss+xml;application/rdf+xml;image/gif;image/jpeg;image/png;x-scheme-handler/http;x-scheme-handler/https;x-scheme-handler/chrome;video/webm;application/x-xpinstall;
StartupNotify=true

it includes the MimeType that x-scheme-handler/http like the line you posted mentions is looking for, but it's not showing up in the listing…

Ephemeral's open in browser widget showing Firefox and Epiphany

is there a way to reproduce that line

https://github.com/cassidyjames/ephemeral/blob/d5fa4ed76fda9c85f922f3f2e8b5779f85749546/src/Widgets/BrowserButton.vala#L26

in a REPL?