-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Make the menu entry start the updater rather than daemon. This necessitated splitting the desktop file into two; the other is a hidden entry which directly runs `daemon -connect` for the protocol handler. Update the desktop files to specification version 1.5. Use %u (single link) rather than %U (multple links) for the protocol handler. Add GPU preference key (although I doubt whether it will be effective). Use the commands xdg-mime and update-desktop-database to register the unv:// protocol handler. This combination is what worked for me on Debian GNOME3.
- Loading branch information
Showing
4 changed files
with
45 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
7 changes: 4 additions & 3 deletions
7
resources/unvanquished.desktop → ...ces/net.unvanquished.Unvanquished.desktop
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,11 @@ | ||
[Desktop Entry] | ||
Version=1.0 | ||
Version=1.5 | ||
Name=Unvanquished | ||
Comment=FPS/RTS Game - Aliens vs. Humans | ||
Icon=unvanquished | ||
Terminal=false | ||
Type=Application | ||
Exec=%1/daemon -connect %U | ||
Exec="%1/updater" | ||
Categories=Game;ActionGame;StrategyGame; | ||
MimeType=x-scheme-handler/unv | ||
# Probably doesn't work since the updater is initially launched, not daemon | ||
PrefersNonDefaultGPU=true |
10 changes: 10 additions & 0 deletions
10
resources/net.unvanquished.UnvanquishedProtocolHandler.desktop
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
[Desktop Entry] | ||
Version=1.5 | ||
Name=Unvanquished (protocol handler) | ||
NoDisplay=true | ||
Terminal=false | ||
Type=Application | ||
Exec="%1/daemon" -connect %u | ||
MimeType=x-scheme-handler/unv | ||
# Unclear if this will work when Breakpad is enabled | ||
PrefersNonDefaultGPU=true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters