Skip to content

Instantly share code, notes, and snippets.

@ruario
Last active May 2, 2024 02:04
Show Gist options
  • Star 42 You must be signed in to star a gist
  • Fork 8 You must be signed in to fork a gist
  • Save ruario/46c528b01581e22e07f06c451914ada9 to your computer and use it in GitHub Desktop.
Save ruario/46c528b01581e22e07f06c451914ada9 to your computer and use it in GitHub Desktop.
How to download and install Twilio Authy on a desktop Linux system without snap support
  • Make an install directory somewhere convenient and switch to it
mkdir -p ~/.local/share/authy
cd ~/.local/share/authy
  • Fetch the current Authy snap
wget $(wget -qO- --header Snap-Device-Series:\ 16 https://api.snapcraft.io/v2/snaps/info/authy | grep -io 'https.*/download/[a-z0-9_]*.snap')

Triple-click to select the entire line, above.

  • Unpack the snap package
unsquashfs -q -f -d . *.snap
  • Remove the undeeded files
rm -r command.sh data-dir desktop-common.sh desktop-gnome-specific.sh desktop-init.sh gnome-platform lib meta/snap.yaml usr *.snap
  • Correct the paths in desktop file
sed -i "/^Exec=/s,=,=$PWD/,;s,\${SNAP},$PWD," meta/gui/authy.desktop
  • Install the desktop file, so that it is found by the desktop environment
install -Dm755 meta/gui/authy.desktop ~/.local/share/applications/authy.desktop
update-desktop-database ~/.local/share/applications

You may need to relogin to your desktop environment before authy shows up.


To remove just delete ~/.local/share/applications/authy.desktop and the install directory (e.g. ~/.local/share/authy).

@tkvance
Copy link

tkvance commented Nov 18, 2023

thank you! very easy. I often dreaded opening authy because it was so slow to open. after installing it with this method, it opens very quick now. well done!!

@nischal-subedi
Copy link

Works on 22.04.3 LTS (Jammy Jellyfish) with KDE desktop environment. Did not need to perform a logout/login operation as the update-desktop-database ~/.local/share/applications command worked for me. The app displayed in the start menu and worked perfectly.

Thank You @ruario .

@ruario
Copy link
Author

ruario commented Dec 14, 2023

@nischal-subedi Glad this is still useful for people 👍

@aadish151
Copy link

Still works on Fedora 40! The full method doesn't work as the snap package has been removed from the snap store. But, I copied the authy folder which I had installed earlier with this method on another distro and ran just the last step to install the desktop file.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment