Skip to content

Commit

Permalink
Add desktop entry files for Protontricks
Browse files Browse the repository at this point in the history
Add two .desktop files for Protontricks:

* "protontricks.desktop" simply launches Protontricks GUI
* "protontricks-launch.desktop" associates `protontricks-launch` with
  Windows executables, allowing EXE files to be launched from graphical
  file managers using Protontricks. This can be useful for installing
  patches and mods more easily, and other similar situations.

Fixes #77
  • Loading branch information
Matoking committed Jul 20, 2021
1 parent 7d5b3de commit 6d08d76
Show file tree
Hide file tree
Showing 4 changed files with 23 additions and 2 deletions.
3 changes: 1 addition & 2 deletions MANIFEST.in
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
include MANIFEST.in LICENSE *.md

graft src/protontricks
graft data

exclude *.yml

prune data

global-exclude *.py[cod]
global-exclude __pycache__
9 changes: 9 additions & 0 deletions data/protontricks-launch.desktop
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
[Desktop Entry]
Exec=protontricks-launch %f
Name=Protontricks Launcher
Type=Application
Terminal=false
NoDisplay=true
Categories=Utility
Icon=wine
MimeType=application/x-ms-dos-executable;application/x-msi;application/x-ms-shortcut;
7 changes: 7 additions & 0 deletions data/protontricks.desktop
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
[Desktop Entry]
Exec=protontricks --gui
Name=Protontricks
Type=Application
Terminal=false
Categories=Utility;
Icon=wine
6 changes: 6 additions & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,12 @@
},
description=DESCRIPTION,
long_description=LONG_DESCRIPTION,
data_files=[
(
"share/applications",
["data/protontricks.desktop", "data/protontricks-launch.desktop"]
)
],
author=AUTHOR,
author_email=AUTHOR_EMAIL,
python_requires=">=3.5",
Expand Down

0 comments on commit 6d08d76

Please sign in to comment.