null-dev / firefox-profile-switcher

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

"Setup Incomplete!" even after following the tutorial given by the extension #74

Open creeloper27 opened 1 year ago

creeloper27 commented 1 year ago

I'm running KDE neon 5.27 x86_64 with Linux 5.15.0-67-generic and Firefox 111.0.1-2 installed with Snap.

I have just installed the firefox-profile-switcher extension and followed the builtin interactive tutorial to finish the setup process, I checked my "Distribution ID" and it says "canonical-002" so i selected "No" on the first question, while my "Application Binary" says "/snap/firefox/2487/usr/lib/firefox/firefox" so I selected "Yes" on the second question. I then proceeded to run the given script:

#!/bin/sh
BASE_DIR="$HOME/snap/firefox/common"
BIN_INSTALL_DIR="$BASE_DIR/firefoxprofileswitcher-install"
MANIFEST_INSTALL_DIR="$BASE_DIR/.mozilla/native-messaging-hosts"
DOWNLOAD_URL="https://github.com/null-dev/firefox-profile-switcher-connector/releases/latest/download/linux-x64.deb" 

# Download and install the binary
mkdir -p "$BIN_INSTALL_DIR"
TMP_FILE="$(mktemp)"
curl -L "$DOWNLOAD_URL" -o "$TMP_FILE"
ar p "$TMP_FILE" data.tar.xz | tar xfJ - --strip-components=2 -C "$BIN_INSTALL_DIR" usr/bin/ff-pswitch-connector
rm "$TMP_FILE"

# Install the manifest (used by Firefox to locate the binary)
mkdir -p "$MANIFEST_INSTALL_DIR"
echo '
{
    "allowed_extensions": [
        "profile-switcher-ff@nd.ax"
    ],
    "description": "Profile Switcher for Firefox",
    "name": "ax.nd.profile_switcher_ff",
    "path": "'"$BIN_INSTALL_DIR"'/ff-pswitch-connector",
    "type": "stdio"
}
' > "$MANIFEST_INSTALL_DIR/ax.nd.profile_switcher_ff.json"

and got:

  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:--  0:00:05 --:--:--     0
  0     0    0     0    0     0      0      0 --:--:--  0:00:05 --:--:--     0
100  602k  100  602k    0     0  98774      0  0:00:06  0:00:06 --:--:-- 28.9M

I tried restarting Firefox, my entire system and even removing and reinstalling the extension but nothing seems to work, it still says "Setup Incomplete!" in the extension menu.

Let me know if i can gather specific more data or try other things.

Thanks in Advance.

lcsingleton commented 1 year ago

I'm experiencing the same issue here, I suspect it's the same as #72 (conjecture). I'm on Ubuntu 22.10, default Firefox installation. It was working until a snap update to 111.0.1 (64-bit) (canonical-002 - 1.0).

SnowwyAI commented 1 year ago

This issue seems to be back. I'm on Windows 10 Pro version 22H2, default Firefox installation (version 113.0.2 (64-bit)). No idea how to check the distribution ID on Windows, or even if there's a way to do so. I followed the instructions for Windows, which are pretty basic. I also tried uninstalling and reinstalling the program and the extension multiple times, to no avail.

It seems like this issue comes up entirely at random. I was on Firefox version 111.0.1 (64-bit) this morning when it started happening, and updated Firefox to see if it would fix the issue, and it didn't.

Has anyone else figured out why this happens?

defekT1312 commented 1 year ago

Same here, Kubuntu 23.04, snap 2.60.3, Firefox 111.0.1

wischi-chr commented 1 year ago

I'm using this extension for years now and never had a problem. Now I tried installing it on a new machine (Windows) and it no longer works. I compared my two machines what the differences are and the machine where the profile switcher is still working has a very old native connector. I copied that connector to the new machine and now it works.

I tried to find out what version the old connector is and it looks like (from the timestamps) like the connector from 30th Dec 2021 but installing that release gives me a different binary that doesn't work.

⚠️ Warning DO NOT TRUST RANDOM PEOPLE ON THE INTERNET PROVIDING BINARIES, INCLUDING ME!

That said here is the native connector I found on my old machine that seems to work (at least on my Windows machines): https://mega.nz/file/t0xgTQyC#1CYedJoxy8km678f0pyFzumZwbRcE2-O2VAMVajRrMY

And here is the Virus Total Link for that file: https://www.virustotal.com/gui/file/887ef156fefdc434baf8c3becc91e9da0a8e44815f486cf9221fd336ce8d084a/details

To make it work on my new machine I just installed the lastest native connector and once that was finished I replaced the binary (which is located here: C:\Users\<USERNAME>\AppData\Local\FirefoxProfileSwitcher\native-connector\firefox-profile-switcher-connector.exe) with this old versions and it seems to work.

Maybe @null-dev has an idea why this old version I found from Dec 2021 does not match the release v.0.0.9 of the connector and maybe they have an idea what's causing the problem.

Sadly that old windows binary certainly wont help any Linux users but maybe you could try older native connector versions.

jamessevener commented 1 year ago

Same. Ubuntu 23.04 Firefox 118.0.2 Snap firefox. Tried an older version of the firefox-profile-switcher-connector

Doesn't change anything.