Blob Blame History Raw
diff --git a/CMakeLists.txt b/CMakeLists.txt
index f5e6eaa..61b24a4 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -167,6 +167,7 @@ ELSE (MSVC)
     )
 ENDIF(MSVC)
 
+set(OpenGL_GL_PREFERENCE "GLVND")
 find_package(OpenGL REQUIRED)
 find_package(Liquid REQUIRED)
 include_directories(${LIQUID_INCLUDES})
diff --git a/cmake/CubicSDR.desktop.in b/cmake/CubicSDR.desktop.in
index 6d33ae4..5e5218e 100644
--- a/cmake/CubicSDR.desktop.in
+++ b/cmake/CubicSDR.desktop.in
@@ -1,6 +1,6 @@
 [Desktop Entry]
 Type=Application
-Exec=CubicSDR %u
+Exec=env GDK_BACKEND=x11 /usr/libexec/CubicSDR/CubicSDR %u
 Icon=@CMAKE_INSTALL_PREFIX@/share/cubicsdr/CubicSDR.png
 Terminal=false
 Name=CubicSDR