manually set app_id

This commit is contained in:
LordGrimmauld 2024-03-10 00:16:37 +01:00
parent c725c4fdb6
commit e8f36057f4
2 changed files with 5 additions and 3 deletions

View File

@ -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();

View File

@ -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;