Add mimetype definitions to osu

This commit is contained in:
Natsu Kagami 2025-03-14 13:07:07 +01:00
parent 14fc51fe18
commit 1bc8b764b0
Signed by: nki
GPG key ID: 55A032EB38B49ADB
6 changed files with 35 additions and 4 deletions

View file

@ -5,7 +5,7 @@
# Common configuration
./common.nix
# osu!
./osu.nix
./osu
];
# Home Manager needs a bit of information about you and the

View file

@ -10,7 +10,8 @@ in
# We use our own firefox
# ./firefox.nix
# osu!
# ./osu.nix
# ./osu
];
# Home Manager needs a bit of information about you and the

View file

@ -7,7 +7,7 @@
# We use our own firefox
# ./firefox.nix
# osu!
./osu.nix
./osu
];
# Home Manager needs a bit of information about you and the

View file

@ -22,7 +22,7 @@ in
# We use our own firefox
# ./firefox.nix
# osu!
./osu.nix
./osu
];
# Home Manager needs a bit of information about you and the

View file

@ -18,6 +18,7 @@ let
''
mv -v $out/bin/${pname} $out/bin/osu\!
install -m 444 -D ${contents}/osu\!.desktop -t $out/share/applications
install -m 444 -D ${./mimetypes.xml} $out/share/mime/packages/${pname}.xml
for i in 16 32 48 64 96 128 256 512 1024; do
install -D ${contents}/osu.png $out/share/icons/hicolor/''${i}x$i/apps/osu.png
done

29
home/osu/mimetypes.xml Normal file
View file

@ -0,0 +1,29 @@
<?xml version="1.0" encoding="UTF-8"?>
<mime-info xmlns='http://www.freedesktop.org/standards/shared-mime-info'>
<mime-type type="application/x-osu-beatmap-archive">
<icon name="osu"/>
<comment xml:lang="en">osu! Beatmap Archive</comment>
<glob pattern="*.osz"/>
<glob pattern="*.olz"/>
</mime-type>
<mime-type type="application/x-osu-skin-archive">
<icon name="osu"/>
<comment xml:lang="en">osu! Skin Archive</comment>
<glob pattern="*.osk"/>
</mime-type>
<mime-type type="application/x-osu-beatmap">
<icon name="osu"/>
<comment xml:lang="en">osu! Beatmap</comment>
<glob pattern="*.osu"/>
</mime-type>
<mime-type type="application/x-osu-storyboard">
<icon name="osu"/>
<comment xml:lang="en">osu! Storyboard</comment>
<glob pattern="*.osb"/>
</mime-type>
<mime-type type="application/x-osu-replay">
<icon name="osu"/>
<comment xml:lang="en">osu! Replay</comment>
<glob pattern="*.osr"/>
</mime-type>
</mime-info>