mirror of https://github.com/BOINC/boinc.git
- SS: Launch the graphics app as the user instead of 'boinc_project'.
- MGR: Launch the graphics app as the user instead of 'boinc_project'. clientgui/ MainDocument.cpp clientscr/ screensaver.cpp svn path=/trunk/boinc/; revision=14917
This commit is contained in:
parent
32022aa71e
commit
d08320ca4f
|
@ -2395,3 +2395,12 @@ David Mar 14 2008
|
||||||
translation.inc
|
translation.inc
|
||||||
languages/translations/
|
languages/translations/
|
||||||
bg.po
|
bg.po
|
||||||
|
|
||||||
|
Rom Mar 14 2008
|
||||||
|
- SS: Launch the graphics app as the user instead of 'boinc_project'.
|
||||||
|
- MGR: Launch the graphics app as the user instead of 'boinc_project'.
|
||||||
|
|
||||||
|
clientgui/
|
||||||
|
MainDocument.cpp
|
||||||
|
clientscr/
|
||||||
|
screensaver.cpp
|
||||||
|
|
|
@ -1261,15 +1261,6 @@ int CMainDocument::WorkShowGraphics(RESULT* result)
|
||||||
argv[0] = "--graphics";
|
argv[0] = "--graphics";
|
||||||
argv[1] = 0;
|
argv[1] = 0;
|
||||||
|
|
||||||
#ifdef _WIN32
|
|
||||||
iRetVal = run_app_windows(
|
|
||||||
result->slot_path.c_str(),
|
|
||||||
result->graphics_exec_path.c_str(),
|
|
||||||
1,
|
|
||||||
argv,
|
|
||||||
id
|
|
||||||
);
|
|
||||||
#else
|
|
||||||
iRetVal = run_program(
|
iRetVal = run_program(
|
||||||
result->slot_path.c_str(),
|
result->slot_path.c_str(),
|
||||||
result->graphics_exec_path.c_str(),
|
result->graphics_exec_path.c_str(),
|
||||||
|
@ -1278,8 +1269,8 @@ int CMainDocument::WorkShowGraphics(RESULT* result)
|
||||||
0,
|
0,
|
||||||
id
|
id
|
||||||
);
|
);
|
||||||
#endif // _WIN32
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
if (!iRetVal) {
|
if (!iRetVal) {
|
||||||
gfx_app.slot = slot;
|
gfx_app.slot = slot;
|
||||||
gfx_app.project_url = result->project_url;
|
gfx_app.project_url = result->project_url;
|
||||||
|
|
|
@ -175,7 +175,6 @@ int CScreensaver::launch_screensaver(RESULT* rp, int& graphics_application)
|
||||||
argv[0] = "app_graphics"; // not used
|
argv[0] = "app_graphics"; // not used
|
||||||
argv[1] = "--fullscreen";
|
argv[1] = "--fullscreen";
|
||||||
argv[2] = 0;
|
argv[2] = 0;
|
||||||
#ifdef _WIN32
|
|
||||||
retval = run_program(
|
retval = run_program(
|
||||||
rp->slot_path.c_str(),
|
rp->slot_path.c_str(),
|
||||||
rp->graphics_exec_path.c_str(),
|
rp->graphics_exec_path.c_str(),
|
||||||
|
@ -184,16 +183,6 @@ int CScreensaver::launch_screensaver(RESULT* rp, int& graphics_application)
|
||||||
0,
|
0,
|
||||||
graphics_application
|
graphics_application
|
||||||
);
|
);
|
||||||
#else
|
|
||||||
retval = run_app_windows(
|
|
||||||
rp->slot_path.c_str(),
|
|
||||||
rp->graphics_exec_path.c_str(),
|
|
||||||
2,
|
|
||||||
argv,
|
|
||||||
graphics_application
|
|
||||||
);
|
|
||||||
#endif
|
|
||||||
#endif
|
|
||||||
} else {
|
} else {
|
||||||
// V5 and Older
|
// V5 and Older
|
||||||
DISPLAY_INFO di;
|
DISPLAY_INFO di;
|
||||||
|
|
Loading…
Reference in New Issue