From e8f36057f4be680bed3013da8314fc38cb2243bf Mon Sep 17 00:00:00 2001 From: LordGrimmauld Date: Sun, 10 Mar 2024 00:16:37 +0100 Subject: [PATCH] manually set app_id --- main.cpp | 1 + nix/default.nix | 7 ++++--- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/main.cpp b/main.cpp index 7fa2b35..ac52d58 100644 --- a/main.cpp +++ b/main.cpp @@ -19,6 +19,7 @@ int main(int argc, char *argv[]) QApplication a(argc, argv); QCoreApplication::setOrganizationName("Grimmauld"); QCoreApplication::setApplicationName("SwayMux"); + QGuiApplication::setDesktopFileName("swaymux"); MainWindow w; w.showMaximized(); diff --git a/nix/default.nix b/nix/default.nix index ab17e06..74f9c87 100644 --- a/nix/default.nix +++ b/nix/default.nix @@ -5,7 +5,8 @@ qt6, qtbase, qtwayland, - stdenv + stdenv, + wrapQtAppsHook }: stdenv.mkDerivation { pname = "swaymux"; @@ -26,9 +27,9 @@ stdenv.mkDerivation { mv swaymux $out/bin ''; - dontWrapQtApps = true; + # dontWrapQtApps = true; buildInputs = [ qt6.qtwayland cmake nlohmann_json qtbase]; - nativeBuildInputs = [ ]; + nativeBuildInputs = [ qt6.wrapQtAppsHook ]; doCheck = true;