aboutsummaryrefslogtreecommitdiff
path: root/devel/RStudio/files/patch-src_cpp_desktop_DesktopMain.cpp
blob: 5b17bed329d58dc7258c962e9f34cfc864e3b7c0 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
--- src/cpp/desktop/DesktopMain.cpp.orig	2020-05-18 18:11:10 UTC
+++ src/cpp/desktop/DesktopMain.cpp
@@ -47,6 +47,8 @@
 #include "DesktopActivationOverlay.hpp"
 #include "DesktopSessionServersOverlay.hpp"
 
+#include "global-setenv.h"
+
 #ifdef _WIN32
 #include <core/system/RegistryKey.hpp>
 #include <Windows.h>
@@ -372,7 +374,7 @@ QString inferDefaultRenderingEngine()
 
 #endif
 
-#ifdef Q_OS_LINUX
+#if defined(Q_OS_LINUX) || defined(Q_OS_FREEBSD)
 
 QString inferDefaultRenderingEngine()
 {
@@ -461,6 +463,7 @@ std::string getSessionUrl()
 
 int main(int argc, char* argv[])
 {
+   GLOBAL_SETENV
    core::system::initHook();
 
    try