Skip to content

Instantly share code, notes, and snippets.

@rtancman rtancman/install meetfranz
Last active Jun 20, 2016

Embed
What would you like to do?
#!/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
You can’t perform that action at this time.