Name the desktop binary photog
The CMake target stays 'uploader' but the output binary is now 'photog', matching the package and app, so 'nix run' and the desktop entry resolve it (nix run looked for bin/photog and failed on bin/uploader). Also set meta.mainProgram.
This commit is contained in:
@@ -26,6 +26,10 @@ target_link_libraries(uploader PRIVATE
|
|||||||
Qt6Keychain::Qt6Keychain
|
Qt6Keychain::Qt6Keychain
|
||||||
)
|
)
|
||||||
|
|
||||||
|
# The binary is "photog" (matching the app + package), so `nix run` and the
|
||||||
|
# desktop entry find it; the CMake target stays "uploader".
|
||||||
|
set_target_properties(uploader PROPERTIES OUTPUT_NAME photog)
|
||||||
|
|
||||||
# Installation — the binary, a desktop entry, and the app icon in the hicolor
|
# Installation — the binary, a desktop entry, and the app icon in the hicolor
|
||||||
# theme, so `nix profile install ./desktop` puts "Photog" in the app menu.
|
# theme, so `nix profile install ./desktop` puts "Photog" in the app menu.
|
||||||
include(GNUInstallDirs)
|
include(GNUInstallDirs)
|
||||||
|
|||||||
@@ -34,6 +34,7 @@
|
|||||||
qt6.wrapQtAppsHook
|
qt6.wrapQtAppsHook
|
||||||
];
|
];
|
||||||
buildInputs = [ pkgs.qt6Packages.qtkeychain ] ++ qtModules;
|
buildInputs = [ pkgs.qt6Packages.qtkeychain ] ++ qtModules;
|
||||||
|
meta.mainProgram = "photog";
|
||||||
};
|
};
|
||||||
|
|
||||||
devShells.default = pkgs.mkShell {
|
devShells.default = pkgs.mkShell {
|
||||||
|
|||||||
@@ -3,7 +3,7 @@ Type=Application
|
|||||||
Name=Photog
|
Name=Photog
|
||||||
GenericName=Photo Uploader
|
GenericName=Photo Uploader
|
||||||
Comment=Upload photos to your gallery
|
Comment=Upload photos to your gallery
|
||||||
Exec=uploader
|
Exec=photog
|
||||||
Icon=photog
|
Icon=photog
|
||||||
Terminal=false
|
Terminal=false
|
||||||
Categories=Graphics;Photography;Network;
|
Categories=Graphics;Photography;Network;
|
||||||
|
|||||||
Reference in New Issue
Block a user