aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLibravatar Max Bruckner <max@maxbruckner.de>2015-08-20 23:12:34 +0200
committerLibravatar Max Bruckner <max@maxbruckner.de>2015-08-20 23:12:34 +0200
commit0ac6409a757fe6720adf896cd47bdc2d7912f4b7 (patch)
treeb593a2735e41eea543637c039b55dd8062f373d3
parentMerge pull request #104 from minus7/ipc-get-messages (diff)
downloadsway-0ac6409a757fe6720adf896cd47bdc2d7912f4b7.tar.gz
sway-0ac6409a757fe6720adf896cd47bdc2d7912f4b7.tar.zst
sway-0ac6409a757fe6720adf896cd47bdc2d7912f4b7.zip
Add Wayland and Xorg session files
This allows display managers to detect sway.
-rw-r--r--CMakeLists.txt8
-rw-r--r--sway-xorg.desktop5
-rw-r--r--sway.desktop5
3 files changed, 18 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index d190cd8b..3ed6fc02 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -69,3 +69,11 @@ INSTALL(
69 FILES ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/sway.5 69 FILES ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/sway.5
70 DESTINATION ${CMAKE_INSTALL_PREFIX}/share/man/man5 70 DESTINATION ${CMAKE_INSTALL_PREFIX}/share/man/man5
71) 71)
72
73INSTALL(
74 FILES ${PROJECT_SOURCE_DIR}/sway.desktop
75 DESTINATION ${CMAKE_INSTALL_PREFIX}/share/wayland-sessions/)
76
77INSTALL(
78 FILES ${PROJECT_SOURCE_DIR}/sway-xorg.desktop
79 DESTINATION ${CMAKE_INSTALL_PREFIX}/share/xsessions/)
diff --git a/sway-xorg.desktop b/sway-xorg.desktop
new file mode 100644
index 00000000..e93a4284
--- /dev/null
+++ b/sway-xorg.desktop
@@ -0,0 +1,5 @@
1[Desktop Entry]
2Name=Sway (Xorg)
3Comment=SirCmpwn's Wayland window manager
4Exec=sway
5Type=Application
diff --git a/sway.desktop b/sway.desktop
new file mode 100644
index 00000000..98c9af29
--- /dev/null
+++ b/sway.desktop
@@ -0,0 +1,5 @@
1[Desktop Entry]
2Name=Sway
3Comment=SirCmpwn's Wayland window manager
4Exec=sway
5Type=Application