Changeset 93330 in vbox for trunk/src/VBox/Additions
- Timestamp:
- Jan 18, 2022 5:36:02 PM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Additions/common/VBoxGuest/lib/VBoxGuestR3LibDrmClient.cpp
r93237 r93330 35 35 #include <iprt/process.h> 36 36 37 #if defined(RT_OS_LINUX) 38 37 39 /** Defines the DRM client executable (image). */ 38 # define VBOX_DRMCLIENT_EXECUTABLE "/usr/bin/VBoxDRMClient"39 # define VBOX_DRMCLIENT_LEGACY_EXECUTABLE "/usr/bin/VBoxClient"40 # define VBOX_DRMCLIENT_EXECUTABLE "/usr/bin/VBoxDRMClient" 41 # define VBOX_DRMCLIENT_LEGACY_EXECUTABLE "/usr/bin/VBoxClient" 40 42 /** Defines the guest property that defines if the DRM resizing client needs to be active or not. */ 41 #define VBOX_DRMCLIENT_GUEST_PROP_RESIZE "/VirtualBox/GuestAdd/DRMResize" 43 # define VBOX_DRMCLIENT_GUEST_PROP_RESIZE "/VirtualBox/GuestAdd/DRMResize" 44 45 #endif /* RT_OS_LINUX */ 42 46 43 47 /** … … 49 53 VBGLR3DECL(bool) VbglR3DrmClientIsNeeded(void) 50 54 { 55 #if defined(RT_OS_LINUX) 51 56 bool fStartClient = false; 52 57 53 # ifdef VBOX_WITH_GUEST_PROPS58 # ifdef VBOX_WITH_GUEST_PROPS 54 59 uint32_t idClient; 55 60 int rc = VbglR3GuestPropConnect(&idClient); … … 59 64 VbglR3GuestPropDisconnect(idClient); 60 65 } 66 # endif 67 return fStartClient; 68 69 #else /* !RT_OS_LINUX */ 70 return false; 61 71 #endif 62 63 return fStartClient;64 72 } 65 73 … … 77 85 static int VbglR3DrmStart(const char *pszCmd, const char **apszArgs) 78 86 { 87 #if defined(RT_OS_LINUX) 79 88 return RTProcCreate(pszCmd, apszArgs, RTENV_DEFAULT, 80 89 RTPROC_FLAGS_DETACHED | RTPROC_FLAGS_SEARCH_PATH, NULL); 90 #else 91 return VERR_NOT_SUPPORTED; 92 #endif 81 93 } 82 94 … … 88 100 VBGLR3DECL(int) VbglR3DrmClientStart(void) 89 101 { 102 #if defined(RT_OS_LINUX) 90 103 const char *apszArgs[1] = { NULL }; /** @todo r=andy Pass path + process name as argv0? */ 91 104 return VbglR3DrmStart(VBOX_DRMCLIENT_EXECUTABLE, apszArgs); 105 #else 106 return VERR_NOT_SUPPORTED; 107 #endif 92 108 } 93 109 … … 99 115 VBGLR3DECL(int) VbglR3DrmLegacyClientStart(void) 100 116 { 117 #if defined(RT_OS_LINUX) 101 118 const char *apszArgs[3] = { VBOX_DRMCLIENT_LEGACY_EXECUTABLE, "--vmsvga", NULL }; 102 119 return VbglR3DrmStart(VBOX_DRMCLIENT_LEGACY_EXECUTABLE, apszArgs); 120 #else 121 return VERR_NOT_SUPPORTED; 122 #endif 103 123 } 104 124
Note:
See TracChangeset
for help on using the changeset viewer.