Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Linux: Add Mimetype support for maps
This allows to open map files from the filemanager by clicking at them. 2nd, hidden *.desktop file needed to associate the mimetype with the wesnoth command icons in mimetype/ are used as file icon icons in apps/ are shown when the user want to change the default program for the mimetype (In Dolphin this place can be reached after opening the file properties)
- Loading branch information
Showing
9 changed files
with
36 additions
and
2 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
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
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
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,17 @@ | ||
<?xml version="1.0"?> | ||
<mime-info xmlns='http://www.freedesktop.org/standards/shared-mime-info'> | ||
<mime-type type="application/x-wesnoth-map"> | ||
<sub-class-of type="text/plain"/> | ||
<comment>Wesnoth Map</comment> | ||
<comment xml:lang="de">Wesnoth Karte</comment> | ||
<glob pattern="*.map"/> | ||
<icon name="wesnoth-map"/> | ||
</mime-type> | ||
<mime-type type="application/x-wesnoth-map"> | ||
<sub-class-of type="text/plain"/> | ||
<comment>Wesnoth Map</comment> | ||
<comment xml:lang="de">Wesnoth Karte</comment> | ||
<glob pattern="*.mask"/> | ||
<icon name="wesnoth-map"/> | ||
</mime-type> | ||
</mime-info> |
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,12 @@ | ||
[Desktop Entry] | ||
NoDisplay=True | ||
Version=1.0 | ||
Type=Application | ||
Name=Battle for Wesnoth (Map Editor) | ||
GenericName=Map editor of a strategy game | ||
GenericName[de]=Karteneditor eines Strategiespiels | ||
Comment=Map Editor of a turn-based strategy game | ||
Comment[de]=Karteneditor eines rundenbasierten Strategiespiels | ||
Icon=wesnoth_editor-icon | ||
Exec=sh -c "wesnoth -e -l %u >/dev/null 2>&1" | ||
MimeType=application/x-wesnoth-map; |