Skip to content

Commit

Permalink
Fixed Cairo-Dock on Ubuntu Vivid with GTK 3.14
Browse files Browse the repository at this point in the history
  • Loading branch information
matttbe committed Jan 3, 2015
1 parent dec6bab commit 577f153
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
7 changes: 6 additions & 1 deletion data/desktop-manager/gnome-session-3.10/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
# Nautilus or GThumb interface which are not really compatible with Compiz)

set (DESKTOP_NAME "GNOME")
set (SETTINGS_DAEMON "gnome")

get_filename_component(ISSUE_NET "/etc/issue.net" ABSOLUTE)
if (EXISTS ${ISSUE_NET})
Expand All @@ -12,14 +13,18 @@ if (EXISTS ${ISSUE_NET})
message(STATUS ${DISTRO_ID})
if ("${DISTRO_ID}" STREQUAL "Ubuntu")
set (DESKTOP_NAME "Unity")
if(${GTK_MAJOR} GREATER 3 OR (${GTK_MAJOR} EQUAL 3 AND ${GTK_MINOR} GREATER 12))
set (SETTINGS_DAEMON "unity")
endif()
endif()
endif()
endif()

configure_file (${CMAKE_CURRENT_SOURCE_DIR}/cairo-dock.session.in ${CMAKE_CURRENT_BINARY_DIR}/cairo-dock.session)
configure_file (${CMAKE_CURRENT_SOURCE_DIR}/cairo-dock.desktop.in ${CMAKE_CURRENT_BINARY_DIR}/cairo-dock.desktop)

install (FILES
${CMAKE_CURRENT_SOURCE_DIR}/cairo-dock.desktop
${CMAKE_CURRENT_BINARY_DIR}/cairo-dock.desktop
DESTINATION /usr/share/xsessions)

install (FILES
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,4 @@ Exec=gnome-session --session=cairo-dock
TryExec=gnome-session
Icon=
Type=Application
DesktopNames=@DESKTOP_NAME@
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
[GNOME Session]
Name=Cairo-Dock
RequiredComponents=gnome-settings-daemon;compiz;cairo-dock;
RequiredComponents=@SETTINGS_DAEMON@-settings-daemon;compiz;cairo-dock;
DesktopName=@DESKTOP_NAME@

0 comments on commit 577f153

Please sign in to comment.