Skip to content
This repository has been archived by the owner on Dec 17, 2017. It is now read-only.

Commit

Permalink
Fix: kdm does not find sessions files.
Browse files Browse the repository at this point in the history
  • Loading branch information
SokoloffA committed Jun 30, 2011
1 parent c43b8b0 commit 56c5977
Showing 1 changed file with 18 additions and 1 deletion.
19 changes: 18 additions & 1 deletion razorqt-resources/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,25 @@ install(DIRECTORY graphics DESTINATION share/razor/ PATTERN ".svn" EXCLUDE)

# TODO/FIXME: install kdm/gdm files too
# this file should be enough but it needs testing...
install(FILES sys/razor.desktop sys/razor-eggwm.desktop sys/razor-openbox.desktop DESTINATION share/xsessions)
set(SESSION_FILES
sys/razor.desktop
sys/razor-eggwm.desktop
sys/razor-openbox.desktop
)

MACRO(INSTALL_SESSION_FILES directory)
if(EXISTS ${directory})
install(FILES ${SESSION_FILES} DESTINATION ${directory})
endif()
ENDMACRO(INSTALL_SESSION_FILES)

INSTALL_SESSION_FILES("/etc/X11/sessions")
INSTALL_SESSION_FILES("/usr/share/sessions")
INSTALL_SESSION_FILES("/usr/share/xsessions")
INSTALL_SESSION_FILES("/usr/share/apps/kdm/sessions")
INSTALL_SESSION_FILES("/usr/local/share/apps/kdm/sessions")
INSTALL_SESSION_FILES("/usr/share/config/kdm/sessions")
INSTALL_SESSION_FILES("/usr/local/share/config/kdm/sessions")
#
#IF (${CMAKE_SYSTEM_NAME} MATCHES "FreeBSD" OR ${CMAKE_SYSTEM_NAME} MATCHES "OpenBSD")
# message(STATUS "*BSD: ${CMAKE_SYSTEM_NAME} - Installing BSD-resources")
Expand Down

0 comments on commit 56c5977

Please sign in to comment.