Changeset 35226 in vbox
- Timestamp:
- Dec 17, 2010 2:09:40 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/VBoxExtPackHelperApp.cpp
r35224 r35226 1334 1334 1335 1335 /* 1336 * kdesudo is available on KDE3/KDE4 1337 */ 1338 if (fHaveDisplayVar && FindExecTool(szExecTool, sizeof(szExecTool), "kdesudo")) 1339 { 1340 rc = RTFileOpenBitBucket(&StdNull.u.hFile, RTFILE_O_WRITE); 1341 if (RT_SUCCESS(rc)) 1342 { 1343 StdNull.enmType = RTHANDLETYPE_FILE; 1344 pStdNull = &StdNull; 1345 1346 iSuArg = cSuArgs - 4; 1347 papszArgs[cSuArgs - 4] = szExecTool; 1348 papszArgs[cSuArgs - 3] = "--comment"; 1349 papszArgs[cSuArgs - 2] = iCmd == CMD_INSTALL 1350 ? "VirtualBox extension pack installer" 1351 : iCmd == CMD_UNINSTALL 1352 ? "VirtualBox extension pack uninstaller" 1353 : "VirtualBox extension pack maintainer"; 1354 papszArgs[cSuArgs - 1] = "--"; 1355 } 1356 else 1357 RTMsgError("Failed to open /dev/null: %Rrc"); 1358 } 1359 /* 1336 1360 * gksu is our favorite as it is very well integrated. 1337 1361 * … … 1340 1364 * error messages gets lost, but wtf. 1341 1365 */ 1342 if (fHaveDisplayVar && FindExecTool(szExecTool, sizeof(szExecTool), "gksu"))1366 else if (fHaveDisplayVar && FindExecTool(szExecTool, sizeof(szExecTool), "gksu")) 1343 1367 { 1344 1368 rc = RTFileOpenBitBucket(&StdNull.u.hFile, RTFILE_O_WRITE);
Note:
See TracChangeset
for help on using the changeset viewer.