- Timestamp:
- Sep 26, 2022 3:57:16 PM (2 years ago)
- svn:sync-xref-src-repo-rev:
- 153782
- Location:
- trunk/src/VBox/Additions/x11/VBoxClient
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Additions/x11/VBoxClient/VBoxClient.h
r96407 r96875 38 38 39 39 /** Environment variable which is exported when in Wayland Desktop Environment. */ 40 #define VBCL_ENV_WAYLAND_DISPLAY "WAYLAND_DISPLAY" 40 #define VBCL_ENV_WAYLAND_DISPLAY "WAYLAND_DISPLAY" 41 /** Environment variable which contains information about currently running Desktop Environment. */ 42 #define VBCL_ENV_XDG_CURRENT_DESKTOP "XDG_CURRENT_DESKTOP" 43 /** Environment variable which contains information about currently running session (X11, Wayland, etc). */ 44 #define VBCL_ENV_XDG_SESSION_TYPE "XDG_SESSION_TYPE" 41 45 42 46 void VBClLogInfo(const char *pszFormat, ...); -
trunk/src/VBox/Additions/x11/VBoxClient/display-helper-gnome3.cpp
r96871 r96875 964 964 static DECLCALLBACK(int) vbcl_hlp_gnome3_probe(void) 965 965 { 966 const char *pszCurrentDesktop = RTEnvGet(VBCL_ HLP_ENV_XDG_CURRENT_DESKTOP);966 const char *pszCurrentDesktop = RTEnvGet(VBCL_ENV_XDG_CURRENT_DESKTOP); 967 967 968 968 /* GNOME3 identifies itself by XDG_CURRENT_DESKTOP environment variable. -
trunk/src/VBox/Additions/x11/VBoxClient/display-helper.h
r96407 r96875 33 33 34 34 #include "display-ipc.h" 35 36 /** Environment variable which contains information about currently running Desktop Environment. */37 #define VBCL_HLP_ENV_XDG_CURRENT_DESKTOP "XDG_CURRENT_DESKTOP"38 35 39 36 /** -
trunk/src/VBox/Additions/x11/VBoxClient/display-svga-x11.cpp
r96407 r96875 70 70 #include <iprt/string.h> 71 71 #include <iprt/thread.h> 72 #include <iprt/env.h> 72 73 73 74 #include <X11/Xlibint.h> … … 782 783 static bool isXwayland(void) 783 784 { 784 const char *const pDisplayType = getenv("WAYLAND_DISPLAY");785 const char *const pDisplayType = RTEnvGet(VBCL_ENV_WAYLAND_DISPLAY); 785 786 const char *pSessionType; 786 787 … … 788 789 return true; 789 790 790 pSessionType = getenv("XDG_SESSION_TYPE"); /** @todo r=andy Use RTEnv API. */791 pSessionType = RTEnvGet(VBCL_ENV_XDG_SESSION_TYPE); 791 792 if ((pSessionType != NULL) && (RTStrIStartsWith(pSessionType, "wayland"))) 792 793 return true;
Note:
See TracChangeset
for help on using the changeset viewer.