From 0ac6409a757fe6720adf896cd47bdc2d7912f4b7 Mon Sep 17 00:00:00 2001 From: Max Bruckner Date: Thu, 20 Aug 2015 23:12:34 +0200 Subject: [PATCH] Add Wayland and Xorg session files This allows display managers to detect sway. --- CMakeLists.txt | 8 ++++++++ sway-xorg.desktop | 5 +++++ sway.desktop | 5 +++++ 3 files changed, 18 insertions(+) create mode 100644 sway-xorg.desktop create mode 100644 sway.desktop diff --git a/CMakeLists.txt b/CMakeLists.txt index d190cd8b8..3ed6fc02f 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -69,3 +69,11 @@ INSTALL( FILES ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/sway.5 DESTINATION ${CMAKE_INSTALL_PREFIX}/share/man/man5 ) + +INSTALL( + FILES ${PROJECT_SOURCE_DIR}/sway.desktop + DESTINATION ${CMAKE_INSTALL_PREFIX}/share/wayland-sessions/) + +INSTALL( + FILES ${PROJECT_SOURCE_DIR}/sway-xorg.desktop + DESTINATION ${CMAKE_INSTALL_PREFIX}/share/xsessions/) diff --git a/sway-xorg.desktop b/sway-xorg.desktop new file mode 100644 index 000000000..e93a4284a --- /dev/null +++ b/sway-xorg.desktop @@ -0,0 +1,5 @@ +[Desktop Entry] +Name=Sway (Xorg) +Comment=SirCmpwn's Wayland window manager +Exec=sway +Type=Application diff --git a/sway.desktop b/sway.desktop new file mode 100644 index 000000000..98c9af293 --- /dev/null +++ b/sway.desktop @@ -0,0 +1,5 @@ +[Desktop Entry] +Name=Sway +Comment=SirCmpwn's Wayland window manager +Exec=sway +Type=Application