Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Desktop Integration #42

Merged
merged 8 commits into from
Feb 9, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,13 @@ If you do use the `$HOME/.local` prefix, make sure you add `~/.local/bin` to
your PATH, or invoke oshu! by specifying the full path like `~/.local/bin/oshu
BEATMAP.osu`. Otherwise you may use the default `/usr/local`.

If you want to have oshu integrated in your desktop:

$ cd share
$ desktop-file-install --dir $PREFIX/share/applications oshu.desktop
$ xdg-mime install x-osu-beatmap.xml
$ xdg-mime default oshu.desktop text/x-osu-beatmap

If you're lucky, someone may have packaged it for your distribution.


Expand Down
11 changes: 11 additions & 0 deletions share/oshu.desktop
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
[Desktop Entry]
Type=Application
Name=oshu!
GenericName=Rhythm Game
GenericName[fr]=Jeu de Rythme
Comment=Fast osu! port
Comment[fr]=Adaptation rapide de osu!
Exec=oshu %F
MimeType=text/x-osu-beatmap
Terminal=true
Categories=Game;X-Music;X-Rhythm
11 changes: 11 additions & 0 deletions share/x-osu-beatmap.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
<?xml version="1.0"?>
<mime-info xmlns='http://www.freedesktop.org/standards/shared-mime-info'>
<mime-type type="text/x-osu-beatmap">
<comment>osu! beatmap file</comment>
<comment lang="fr">Fichier de beatmap osu!</comment>
<magic priority="50">
<match type="string" offset="0" value="osu file format"/>
</magic>
<glob pattern="*.osu"/>
</mime-type>
</mime-info>