On Jun 27, 2015, at 4:31 PM, David Anderson <[email protected]> wrote:
> The WxWidgets default (I believe) is to put the lock file in the user's home > dir, > so it is a per-user lock. I think that is correct, but I prefer to put it in the standard place for user-specific files created by applications on the Mac. > If the file starts with . it's hidden. It doesn't need to be a hidden file if it is in the same directory as the other user-sepcific Manager files, not at the top of the user's home directory. On Linux that directory is defined in diagnostics.cpp lines 752-753 as "~/.BOINC/". Personally, I prefer to avoid using hidden files, as they can make debugging a user's problems harder. But I know they are common, especially on MSW and Linux / UNIX. Cheers, --Charlie -- Charlie Fenton [email protected] BOINC / SETI@home Macintosh & Windows Programmer Space Sciences Laboratory UC Berkeley > On 27-Jun-2015 4:06 PM, Charlie Fenton wrote: >> On Jun 27, 2015, at 3:07 PM, David Anderson <[email protected]> wrote: >>> Shouldn't we just have >>> m_pInstanceChecker = new wxSingleInstanceChecker(".boinc_manager"); >>> without any Mac special case? >> It needs to be a per-user path because we do allow multiple instances (one >> per active user) during fast user switching on the Mac. I'm not sure what >> happens on Windows, perhaps Rom can say. >> >> All the per-user BOINC Manager files (stdoutgui.txt, stderrscr.txt, etc.) on >> the Mac go in "~/Library/Application Support/BOINC", which is the Mac >> convention for user-specific files created by applications, so this seems >> like a reasonable place to put the lock file. >> >> Cheers, >> --Charlie >> >> -- >> Charlie Fenton [email protected] >> BOINC / SETI@home Macintosh & Windows Programmer >> Space Sciences Laboratory >> UC Berkeley >>> On 26-Jun-2015 5:03 AM, Gianfranco Costamagna wrote: >>>> Hi David, >>>> >>>> thanks to the Debian Wx maintainer the root cause is in BOINC. >>>> please look at the bug for an explanation and the fix >>>> >>>> https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=781789 >>>> >>>> >>>> making >>>> wxSingleInstanceChecker >>>> >>>> to behave like MACOSX does (maybe just adding a .lock or similar) should >>>> fix the issue. >>>> >>>> >>>> thanks, >>>> >>>> Gianfranco >>>> >>>> Il Giovedì 11 Giugno 2015 10:21, David Anderson <[email protected]> >>>> ha scritto: >>>> According to Rom, the file name is based on the app name supplied to >>>> WxWidgets, >>>> namely line 206 of BOINCGUIApp.cpp: >>>> >>>> SetAppName(wxT("BOINC Manager")); >>>> >>>> The functions for reading/writing config info >>>> (like window size and position) are members of the class WxConfigBase. >>>> Wx stores this info in a file on Unix; on Win, it uses the registry. >>>> >>>> -- David >>>> >>>> >>>> >>>> On 11-Jun-2015 1:02 AM, Gianfranco Costamagna wrote: >>>>> Hi David, do you know where on the code the file is created? >>>>> >>>>> (I would like to reassign to wx, but I need prior to have a reduced >>>>> testcase) >>>>> >>>>> thanks! >>>>> >>>>> >>>>> Gianfranco >>>>> >>>>> >>>>> >>>>> >>>>> Il Mercoledì 10 Giugno 2015 20:43, David Anderson >>>>> <[email protected]> ha scritto: >>>>> This config file is create by WxWidgets, >>>>> so its lack of leading "." should be considered a WxWidgets bug. >>>>> -- David >>>>> >>>>> >>>>> On 03-Apr-2015 1:36 AM, Gianfranco Costamagna wrote: >>>>>> Hi Boinc developers, >>>>>> this bug seems to be an upstream one... >>>>>> >>>>>> can you please look at it? >>>>>> >>>>>> thanks >>>>>> >>>>>> Gianfranco >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> Il Venerdì 3 Aprile 2015 6:33, kittyofthebox <[email protected]> >>>>>> ha scritto: >>>>>> Package: boinc-manager >>>>>> Version: 7.4.23+dfsg-1 >>>>>> Severity: minor >>>>>> >>>>>> Hi, >>>>>> >>>>>> It appears that Boinc Manager drops a configuration file into the home >>>>>> directory without hiding it: >>>>>> >>>>>> $ file /home/user/BOINC\ Manager-user >>>>>> /home/user/BOINC Manager-user: ASCII text, with no line terminators >>>>>> >>>>>> I think this file should begin with a dot to hide it from display in the >>>>>> home directory or be >>>>>> moved to a sub directory in a hidden directory in home. >>>>>> >>>>>> Kitty >>>>>> >>>>>> -- System Information: >>>>>> Debian Release: 8.0 >>>>>> APT prefers testing >>>>>> APT policy: (750, 'testing'), (700, 'testing'), (650, 'stable'), >>>>>> (600, 'stable'), (450, 'oldstable'), (400, 'oldstable'), (300, >>>>>> 'unstable'), (200, 'experimental') >>>>>> Architecture: amd64 (x86_64) >>>>>> Foreign Architectures: i386 >>>>>> >>>>>> Kernel: Linux 3.16.0-4-amd64 (SMP w/8 CPU cores) >>>>>> Locale: LANG=en_AU.utf8, LC_CTYPE=en_AU.utf8 (charmap=UTF-8) >>>>>> Shell: /bin/sh linked to /bin/dash >>>>>> Init: systemd (via /run/systemd/system) >>>>>> >>>>>> Versions of packages boinc-manager depends on: >>>>>> ii boinc-client 7.4.23+dfsg-1 >>>>>> ii libboinc7 7.4.23+dfsg-1 >>>>>> ii libc6 2.19-17 >>>>>> ii libgcc1 1:4.9.2-10 >>>>>> ii libglib2.0-0 2.42.1-1 >>>>>> ii libgtk2.0-0 2.24.25-3 >>>>>> ii libnotify4 0.7.6-2 >>>>>> ii libsqlite3-0 3.8.7.1-1 >>>>>> ii libstdc++6 4.9.2-10 >>>>>> ii libwxbase3.0-0 3.0.2-1+b1 >>>>>> ii libwxgtk-webview3.0-0 3.0.2-1+b1 >>>>>> ii libwxgtk3.0-0 3.0.2-1+b1 >>>>>> >>>>>> boinc-manager recommends no packages. >>>>>> >>>>>> Versions of packages boinc-manager suggests: >>>>>> ii libgl1-mesa-glx 10.3.2-1 >>>>>> ii libxt6 1:1.1.4-1+b1 >>>>>> >>>>>> -- no debconf information >>>>>> >>>>> _______________________________________________ >>>>> boinc_alpha mailing list >>>>> [email protected] >>>>> http://lists.ssl.berkeley.edu/mailman/listinfo/boinc_alpha >>>>> To unsubscribe, visit the above URL and >>>>> (near bottom of page) enter your email address. > _______________________________________________ boinc_dev mailing list [email protected] http://lists.ssl.berkeley.edu/mailman/listinfo/boinc_dev To unsubscribe, visit the above URL and (near bottom of page) enter your email address.
