Skip to content

Instantly share code, notes, and snippets.

@rtancman
Last active June 20, 2016 12:47
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rtancman/dd47d2ce894f2ff81a1706a2df266f28 to your computer and use it in GitHub Desktop.
Save rtancman/dd47d2ce894f2ff81a1706a2df266f28 to your computer and use it in GitHub Desktop.
#!/bin/sh
# meetfranz
wget --max-redirect=10 -O Franz-linux-x64.tgz http://bit.ly/1UoL5es
mkdir -p /opt/meetfranz
tar zxvf Franz-linux-x64.tgz -C /opt/meetfranz
rm -rf Franz-linux-x64.tgz
# Add to applications list (thanks 4ndrej)
echo -e '' >> /opt/meetfranz/meetfranz.desktop;
sudo rm -rf /usr/share/applications/meetfranz.desktop
sudo ln -s /opt/meetfranz/meetfranz.desktop /usr/share/applications/meetfranz.desktop
# Add bin alias
sudo rm -rf /bin/meetfranz
sudo ln -s /opt/meetfranz/Franz /bin/meetfranz
# Set the icon (thanks gcaracuel)
echo -e '[Desktop Entry]
Version=1.0
Type=Application
Name=Franz
GenericName=meetfranz
Exec=/opt/meetfranz/Franz %F
Terminal=false
Icon=/opt/meetfranz/resources/app.asar.unpacked/assets/franz.png
Categories=Messenger;
StartupNotify=true
Actions=Window;Document;
[Desktop Action Window]
Name=New Window
Exec=/opt/meetfranz/Franz -n
OnlyShowIn=Unity;
[Desktop Action Document]
Name=New File
Exec=/opt/meetfranz/Franz --command new_file
OnlyShowIn=Unity;' >> /opt/meetfranz/meetfranz.desktop;
echo ""
echo "meetfranz installed successfully!"
echo "Run with: meetfranz"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment