Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 9 additions & 1 deletion client/check_security.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -242,7 +242,15 @@ int use_sandbox, int isManager, char* path_to_error, int len
// Require absolute owner and group boinc_master:boinc_master
// Get the full path to BOINC Client inside this application's bundle
//
retval = stat("/Applications/BOINCManager.app/Contents/Resources/boinc", &sbuf);
long brandId = 0;
FILE *f = fopen("/Library/Application Support/BOINC Data/Branding", "r");
if (f) {
fscanf(f, "BrandId=%ld\n", &brandId);
fclose(f);
}

snprintf(full_path, sizeof(full_path),"/%s/Contents/Resources/boinc", appPath[brandId]);
retval = stat(full_path, &sbuf);
if (retval)
return -1016; // Should never happen

Expand Down
4 changes: 2 additions & 2 deletions client/switcher.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -278,7 +278,7 @@ static void print_to_log_file(const char *format, ...) {
char buf[256];
time_t t;

f = fopen("/Users/Shared/test_log_gfx_switcher.txt", "a");
f = fopen("/Users/Shared/test_log_switcher.txt", "a");
if (!f) return;

// freopen(buf, "a", stdout);
Expand All @@ -298,7 +298,7 @@ static void print_to_log_file(const char *format, ...) {
fputs("\n", f);
fflush(f);
fclose(f);
chmod("/Users/Shared/test_log_gfx_switcher.txt", 0666);
chmod("/Users/Shared/test_log_switcher.txt", 0666);
}

static void strip_cr(char *buf)
Expand Down
4 changes: 3 additions & 1 deletion clientgui/mac/templates/Finish_Install-Info.plist
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>CFBundleDevelopmentRegion</key>
Expand All @@ -8,6 +8,8 @@
<string>BOINC_Finish_Install</string>
<key>CFBundleIdentifier</key>
<string>edu.berkeley.boinc.finish-install</string>
<key>CFBundleIconFile</key>
<string>MacInstaller.icns</string>
<key>CFBundleInfoDictionaryVersion</key>
<string>6.0</string>
<key>CFBundlePackageType</key>
Expand Down
4 changes: 3 additions & 1 deletion clientgui/mac/templates/PostInstall-Info.plist
Original file line number Diff line number Diff line change
@@ -1,11 +1,13 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>CFBundleDevelopmentRegion</key>
<string>English</string>
<key>CFBundleExecutable</key>
<string>PostInstall</string>
<key>CFBundleIconFile</key>
<string>MacInstaller.icns</string>
<key>CFBundleIdentifier</key>
<string>edu.berkeley.boinc.PostInstall</string>
<key>CFBundleInfoDictionaryVersion</key>
Expand Down
4 changes: 1 addition & 3 deletions clientgui/mac/templates/ScreenSaver-Info.plist
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>CFBundleDevelopmentRegion</key>
Expand All @@ -10,8 +10,6 @@
<string>edu.berkeley.boincsaver</string>
<key>CFBundleInfoDictionaryVersion</key>
<string>6.0</string>
<key>CFBundleName</key>
<string>BOINCSaver</string>
<key>CFBundlePackageType</key>
<string>BNDL</string>
<key>CFBundleSignature</key>
Expand Down
3 changes: 1 addition & 2 deletions clientscr/Mac_Saver_Module.h
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,7 @@ class CScreensaver
{
public:
CScreensaver();
~CScreensaver();

int Create();
int Run();
Expand Down Expand Up @@ -137,7 +138,6 @@ class CScreensaver
int launch_screensaver(RESULT* rp, int& graphics_application);
int launch_default_screensaver(char *dir_path, int& graphics_application);
void HandleRPCError(void);
int KillScreenSaver(void);
void GetDefaultDisplayPeriods(struct ss_periods &periods);
pthread_t m_hDataManagementThread;

Expand All @@ -155,7 +155,6 @@ class CScreensaver
bool m_bResetCoreState;
bool m_bQuitDataManagementProc;
bool m_bDataManagementProcStopped;
bool m_bV5_GFX_app_is_running;


//
Expand Down
2 changes: 2 additions & 0 deletions clientscr/Mac_Saver_ModuleView.h
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@

- (bool) setUpToUseCGWindowList;
- (void) doPeriodicTasks;
- (void) advancePosition:(NSTimer*)timer;

@end

Expand All @@ -53,6 +54,7 @@
- (void)init:(NSView*)saverView;
- (void)testConnection;
- (void)portDied:(NSNotification *)notification;
- (void)closeServerPort;
- (void)cleanUpOpenGL;

@end
Expand Down
Loading
Loading