Skip to content

Instantly share code, notes, and snippets.

@x0a
Created December 1, 2019 02:33
Show Gist options
  • Save x0a/0031a81fdc42ec9a2b85ba39fe3800f0 to your computer and use it in GitHub Desktop.
Save x0a/0031a81fdc42ec9a2b85ba39fe3800f0 to your computer and use it in GitHub Desktop.
#!/bin/sh
# Place into the location of your Popcorn-Time installation and run
desktop_file="Popcorn-Time.desktop"
icon=`readlink -f ./src/app/images/icon.png`
binary=`readlink -f ./Popcorn-Time`
cwd=`readlink -f .`
echo "[Desktop Entry]" > $desktop_file
echo "Version=1.0" >> $desktop_file
echo "Terminal=false" >> $desktop_file
echo "Icon=$icon" >> $desktop_file
echo "Type=Application" >> $desktop_file
echo "Categories=AudioVideo;Video;Movies" >> $desktop_file
echo "Exec=$binary" >> $desktop_file
echo "Path=$cwd" >> $desktop_file
echo "Name=Popcorn Time" >> $desktop_file
echo "Keywords=Popcorn;Time;Torrent;Butter;Movies;Watch" >> $desktop_file
cp Popcorn-Time.desktop ~/.local/share/applications/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment