fluffychat: fix .desktop file to reference the wrapped version
This commit is contained in:
@@ -4,15 +4,17 @@
|
|||||||
name = "fluffychat-moby";
|
name = "fluffychat-moby";
|
||||||
paths = [ pkgs.fluffychat ];
|
paths = [ pkgs.fluffychat ];
|
||||||
buildInputs = [ pkgs.makeWrapper ];
|
buildInputs = [ pkgs.makeWrapper ];
|
||||||
|
|
||||||
# ordinary fluffychat on moby displays blank window;
|
# ordinary fluffychat on moby displays blank window;
|
||||||
# > Failed to start Flutter renderer: Unable to create a GL context
|
# > Failed to start Flutter renderer: Unable to create a GL context
|
||||||
# this is temporarily solved by using software renderer
|
# this is temporarily solved by using software renderer
|
||||||
# - see https://github.com/flutter/flutter/issues/106941
|
# - see https://github.com/flutter/flutter/issues/106941
|
||||||
#
|
|
||||||
# TODO: the desktop files reference the uwrapped fluffychat and need to be updated.
|
|
||||||
# as is this only works when fluffychat is launched from the CLI
|
|
||||||
postBuild = ''
|
postBuild = ''
|
||||||
wrapProgram $out/bin/fluffychat \
|
wrapProgram $out/bin/fluffychat \
|
||||||
--set LIBGL_ALWAYS_SOFTWARE 1
|
--set LIBGL_ALWAYS_SOFTWARE 1
|
||||||
|
# fix up the .desktop file to invoke our wrapped fluffychat
|
||||||
|
orig_desktop=$(readlink $out/share/applications/Fluffychat.desktop)
|
||||||
|
unlink $out/share/applications/Fluffychat.desktop
|
||||||
|
sed "s:Exec=.*:Exec=$out/bin/fluffychat:" $orig_desktop > $out/share/applications/Fluffychat.desktop
|
||||||
'';
|
'';
|
||||||
})
|
})
|
||||||
|
Reference in New Issue
Block a user