Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #/bin/bash
- # First, create a .desktop description file:
- cat << EOF > playkey.desktop
- [Desktop Entry]
- Encoding=UTF-8
- Version=1.0
- Type=Application
- Terminal=false
- Icon=Playkey.svg
- Categories=Application;Games;
- MimeType=x-scheme-handler/playkey;
- Name=Playkey
- Comment=Playkey cloud gaming service
- Name[en_US]=Playkey
- Comment[en_US]=Playkey cloud gaming service
- Name[en_US.utf8]=Playkey
- Comment[en_US.utf8]=Playkey cloud gaming service
- StartupNotify=true
- EOF
- # Then add command line to run playkey client:
- echo "Exec=\"${HOME}/.wine/drive_c/Program Files (x86)/Playkey/Playkey.exe\" %u" >> playkey.desktop
- chmod +x playkey.desktop
- # Now install it to user's home directory so xdg-mime and xdg-open can find it:
- xdg-desktop-menu install --novendor --mode user playkey.desktop
- # Now set url scheme handler:
- xdg-mime default playkey.desktop x-scheme-handler/playkey
- xdg-settings set default-url-scheme-handler playkey playkey.desktop
- # Update desktop menu cache
- update-desktop-database
Advertisement
Add Comment
Please, Sign In to add comment