null-dev / firefox-profile-switcher

Create, manage and switch between browser profiles seamlessly.
GNU General Public License v3.0
375 stars 25 forks source link

Setup Incomplete, Installation of the DEB file doesnt work. #91

Open psmgeelen opened 11 months ago

psmgeelen commented 11 months ago

After installing the add-on, the add-on requests me to 'complete the setup'. I walk through the questionnaire and end up with a DEB file that I need to install, so I do that. After restarting firefox, the issue persists. I installed firefox using apt and not snap.

The version of 119. My OS is: Ubuntu 23.10 x86_64 My desktop Environment is vanilla Ubuntu: GNOME 45.0

WayneBrummer commented 11 months ago

I have the same experience

psmgeelen commented 11 months ago

@WayneBrummer , what OS are you using?

WayneBrummer commented 11 months ago

Ubuntu 22.04.0 LTS and FF 119

WayneBrummer commented 11 months ago

I see some older posts that it has something to do with the version of FF?

psmgeelen commented 11 months ago

Maybe if we tag @null-dev , we can get a response more quickly :rofl:

atomjack commented 11 months ago

I'm getting this issue as well, Ubuntu 22.04.3, Firefox 119.0b9. I tried running firefox from the command line and saw these messages:

** (firefox:2468888): WARNING **: 14:25:14.589: OnCloseSessionDone error: GDBus.Error:org.freedesktop.DBus.Error.UnknownMethod: Object does not exist at path “/org/freedesktop/portal/desktop/session/1_19902/firefox_ax_nd_profile_switcher_ff_4132807681”

After doing some googling on some of that, I found that by running Firefox like so: MOZ_LOG=NativeMessagingPortal:5 snap run firefox produces a little more info, I got these lines as well:

[Parent 2487958: Main Thread]: D/NativeMessagingPortal is available
[Parent 2487958: Main Thread]: D/NativeMessagingPortal creating session with handle suffix firefox_ax_nd_profile_switcher_ff_3907035962
[Parent 2487958: Main Thread]: D/NativeMessagingPortal session created with handle /org/freedesktop/portal/desktop/session/1_19933/firefox_ax_nd_profile_switcher_ff_3907035962
[Parent 2487958: Main Thread]: D/NativeMessagingPortal starting ax.nd.profile_switcher_ff, requested by profile-switcher-ff@nd.ax in session /org/freedesktop/portal/desktop/session/1_19933/firefox_ax_nd_profile_switcher_ff_3907035962
[Parent 2487958: Main Thread]: D/NativeMessagingPortal native application start requested in session /org/freedesktop/portal/desktop/session/1_19933/firefox_ax_nd_profile_switcher_ff_3907035962, pending response for /org/freedesktop/portal/desktop/request/1_19933/firefox/2043777480
[Parent 2487958: Main Thread]: D/NativeMessagingPortal got response signal for /org/freedesktop/portal/desktop/request/1_19933/firefox/2043777480 in session /org/freedesktop/portal/desktop/session/1_19933/firefox_ax_nd_profile_switcher_ff_3907035962
[Parent 2487958: Main Thread]: D/NativeMessagingPortal native application start failed in session /org/freedesktop/portal/desktop/session/1_19933/firefox_ax_nd_profile_switcher_ff_3907035962
[Parent 2487958: Main Thread]: D/NativeMessagingPortal session /org/freedesktop/portal/desktop/session/1_19933/firefox_ax_nd_profile_switcher_ff_3907035962 was closed by the portal
[Parent 2487958: Main Thread]: D/NativeMessagingPortal cannot close session /org/freedesktop/portal/desktop/session/1_19933/firefox_ax_nd_profile_switcher_ff_3907035962, unknown handle

Perhaps this can help, @null-dev ?

atomjack commented 11 months ago

I'm still not able to get this to work, however after some more googling I found a similar log in another github repo issue, so I tried doing what one of the commenters suggested, for this extension instead, with:

flatpak permission-set webextensions ax.nd.profile_switcher_ff snap.firefox yes

Running Firefox with MOZ_LOG=NativeMessagingPortal:5 snap run firefox results in this block, which is slightly different from previously, repeated every couple of seconds:

[Parent 890368: Main Thread]: D/NativeMessagingPortal is available
[Parent 890368: Main Thread]: D/NativeMessagingPortal creating session with handle suffix firefox_ax_nd_profile_switcher_ff_4176043782
[Parent 890368: Main Thread]: D/NativeMessagingPortal session created with handle /org/freedesktop/portal/desktop/session/1_25318/firefox_ax_nd_profile_switcher_ff_4176043782
[Parent 890368: Main Thread]: D/NativeMessagingPortal starting ax.nd.profile_switcher_ff, requested by profile-switcher-ff@nd.ax in session /org/freedesktop/portal/desktop/session/1_25318/firefox_ax_nd_profile_switcher_ff_4176043782
[Parent 890368: Main Thread]: D/NativeMessagingPortal native application start requested in session /org/freedesktop/portal/desktop/session/1_25318/firefox_ax_nd_profile_switcher_ff_4176043782, pending response for /org/freedesktop/portal/desktop/request/1_25318/firefox/1479745970
[Parent 890368: Main Thread]: D/NativeMessagingPortal got response signal for /org/freedesktop/portal/desktop/request/1_25318/firefox/1479745970 in session /org/freedesktop/portal/desktop/session/1_25318/firefox_ax_nd_profile_switcher_ff_4176043782
[Parent 890368: Main Thread]: D/NativeMessagingPortal native application start successful in session /org/freedesktop/portal/desktop/session/1_25318/firefox_ax_nd_profile_switcher_ff_4176043782, requesting file descriptors
[Parent 890368: Main Thread]: D/NativeMessagingPortal got file descriptors for native application in session /org/freedesktop/portal/desktop/session/1_25318/firefox_ax_nd_profile_switcher_ff_4176043782: (100, 108, 134)
[Parent 890368: Main Thread]: D/NativeMessagingPortal closing session /org/freedesktop/portal/desktop/session/1_25318/firefox_ax_nd_profile_switcher_ff_4176043782
[Parent 890368: Main Thread]: D/NativeMessagingPortal session /org/freedesktop/portal/desktop/session/1_25318/firefox_ax_nd_profile_switcher_ff_4176043782 closed

As you can see, it now reports that the native application started successfully, however I am still getting "Setup Incomplete" from the extension.

pulbhaba commented 10 months ago

Hope this helps you, https://github.com/null-dev/firefox-profile-switcher/issues/95#issuecomment-1820066939