Skip to content

Commit

Permalink
CMake: make .desktop path automatically generated
Browse files Browse the repository at this point in the history
  • Loading branch information
gfgit committed Mar 28, 2024
1 parent e065073 commit 8773243
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion autostart/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,10 @@ install(FILES
COMPONENT Runtime
)

configure_file(lxqt-panel_wayland.desktop.in lxqt-panel_wayland.desktop @ONLY)

install(FILES
lxqt-panel_wayland.desktop
"${CMAKE_CURRENT_BINARY_DIR}/lxqt-panel_wayland.desktop"
DESTINATION "/usr/share/applications"
RENAME "lxqt-panel.desktop"
COMPONENT Runtime
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ Type=Application
TryExec=lxqt-panel

# NOTE: KWin wants absolute path here, make sure it's correct
Exec=/usr/local/bin/lxqt-panel
Exec=@CMAKE_INSTALL_PREFIX@/@CMAKE_INSTALL_BINDIR@/lxqt-panel

# NOTE: adding KDE to make it work under Plasma Wayland session
OnlyShowIn=LXQt;KDE
Expand Down

0 comments on commit 8773243

Please sign in to comment.