Skip to content

Commit 179ff2b

Browse files
committed
try get gnome shaell version
1 parent 9e405d7 commit 179ff2b

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

CMakeLists.txt

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -154,10 +154,8 @@ else()
154154
install(FILES ${CMAKE_SOURCE_DIR}/nemo/actions/dependency-viewer.nemo_action
155155
DESTINATION share/nemo/actions
156156
COMPONENT nemo-integration)
157-
set(GNOME_SHELL_VERSION_STR "1")
158-
if (NOT APPLE)
159-
execute_process(COMMAND "gnome-shell --version" OUTPUT_VARIABLE GNOME_SHELL_VERSION_STR)
160-
endif()
157+
set(GNOME_SHELL_VERSION_STR "unknown 1")
158+
execute_process(COMMAND gnome-shell --version OUTPUT_VARIABLE GNOME_SHELL_VERSION_STR)
161159
string(REGEX MATCH "[0-9]+" GNOME_SHELL_VERSION "${GNOME_SHELL_VERSION_STR}")
162160
message(STATUS "GNOME_SHELL_VERSION is ${GNOME_SHELL_VERSION}")
163161
if (GNOME_SHELL_VERSION LESS 43)

0 commit comments

Comments
 (0)