Skip to content

Commit

Permalink
goxlr-utility: 1.1.1 -> 1.1.1-unstable-2024-08-06
Browse files Browse the repository at this point in the history
fixes #331319 where user expects xdg desktop entry to continue work as a launcher
hopefully also helps with #332957
  • Loading branch information
errnoh committed Aug 8, 2024
1 parent 31a02bb commit eb8268e
Show file tree
Hide file tree
Showing 3 changed files with 1,915 additions and 1,087 deletions.
25 changes: 18 additions & 7 deletions nixos/modules/services/audio/goxlr-utility.nix
Original file line number Diff line number Diff line change
Expand Up @@ -28,19 +28,30 @@ with lib;
};
};

config = mkIf config.services.goxlr-utility.enable
{
config =
let
goxlr-autostart = pkgs.stdenv.mkDerivation {
name = "autostart-goxlr-daemon";
priority = 5;

buildCommand = ''
mkdir -p $out/etc/xdg/autostart
cp ${cfg.package}/share/applications/goxlr-utility.desktop $out/etc/xdg/autostart/goxlr-daemon.desktop
chmod +w $out/etc/xdg/autostart/goxlr-daemon.desktop
echo "X-KDE-autostart-phase=2" >> $out/etc/xdg/autostart/goxlr-daemon.desktop
substituteInPlace $out/etc/xdg/autostart/goxlr-daemon.desktop \
--replace-fail goxlr-launcher goxlr-daemon
'';
};
in
mkIf config.services.goxlr-utility.enable {
services.udev.packages = [ cfg.package ];

xdg.autostart.enable = mkIf cfg.autoStart.xdg true;
environment.systemPackages = mkIf cfg.autoStart.xdg
[
cfg.package
(pkgs.makeAutostartItem
{
name = "goxlr-utility";
package = cfg.package;
})
goxlr-autostart
];
};

Expand Down
Loading

0 comments on commit eb8268e

Please sign in to comment.