mirror of
https://github.com/lelgenio/dzgui-nix.git
synced 2024-12-24 20:05:35 -03:00
dont create desktop entry during runtime
This commit is contained in:
parent
0ece4e88a6
commit
e18a4c048c
|
@ -26,7 +26,11 @@ stdenv.mkDerivation rec {
|
|||
# steam
|
||||
];
|
||||
|
||||
patchPhase = ''
|
||||
patches = [
|
||||
./dont-write-desktop-entry-during-runtime.patch
|
||||
];
|
||||
|
||||
postPatch = ''
|
||||
sed -i \
|
||||
-e 's|/usr/bin/zenity|${pkgs.gnome.zenity}/bin/zenity|' \
|
||||
-e 's|2>/dev/null||' \
|
||||
|
|
15
dont-write-desktop-entry-during-runtime.patch
Normal file
15
dont-write-desktop-entry-during-runtime.patch
Normal file
|
@ -0,0 +1,15 @@
|
|||
diff --git a/dzgui.sh b/dzgui.sh
|
||||
index d8a895b..0c6c002 100755
|
||||
--- a/dzgui.sh
|
||||
+++ b/dzgui.sh
|
||||
@@ -222,10 +222,6 @@ freedesktop_dirs(){
|
||||
for i in dzgui grid.png hero.png logo.png; do
|
||||
curl -s "$img_url/$i" > "$sd_install_path/$i"
|
||||
done
|
||||
- write_desktop_file > "$freedesktop_path/dzgui.desktop"
|
||||
- if [[ $is_steam_deck -eq 1 ]]; then
|
||||
- write_desktop_file > "$HOME/Desktop/dzgui.desktop"
|
||||
- fi
|
||||
}
|
||||
find_library_folder(){
|
||||
steam_path=$(python3 $helpers_path/vdf2json.py -i $default_steam_path/steamapps/libraryfolders.vdf | jq -r '.libraryfolders[]|select(.apps|has("221100")).path')
|
Loading…
Reference in a new issue