After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 675447 - use XDG runtime dir for pid file
use XDG runtime dir for pid file
Status: RESOLVED OBSOLETE
Product: mousetweaks
Classification: Core
Component: daemon
unspecified
Other Linux
: Normal normal
: ---
Assigned To: mousetweaks-maint
mousetweaks-maint
Depends on:
Blocks:
 
 
Reported: 2012-05-04 14:17 UTC by William Jon McCann
Modified: 2021-06-05 16:31 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description William Jon McCann 2012-05-04 14:17:57 UTC
We should use the xdg runtime dir for the pid file.

src/mt-pidfile.c:
    snprintf (fn, sizeof (fn), "%s/.mousetweaks.pid", g_get_home_dir ());
Comment 1 Gerd Kohlberger 2012-05-10 13:39:27 UTC
Fixed in master. Thanks Jon.

http://git.gnome.org/browse/mousetweaks/commit/?id=db94513c10c2ca307a0e66464271f87b00ddd312
Comment 2 William Jon McCann 2012-05-10 16:39:07 UTC
Hmm, actually why does mousetweaks even have a pid file? I think the recommended approach is to use dbus.

Also, if we need to store runtime data it might be better to use a subdirectory of the runtime dir. like: /run/user/me/mousetweaks/pid
Comment 3 André Klapper 2021-06-05 16:31:57 UTC
GNOME is going to shut down bugzilla.gnome.org in favor of gitlab.gnome.org.
As part of that, we are mass-closing older open tickets in bugzilla.gnome.org
which have not seen updates for a longer time (resources are unfortunately
quite limited so not every ticket can get handled).

If you can still reproduce the situation described in this ticket in a recent
and supported software version, then please follow
  https://wiki.gnome.org/GettingInTouch/BugReportingGuidelines
and create a new enhancement request ticket at
  https://gitlab.gnome.org/GNOME/mousetweaks/-/issues/

Thank you for your understanding and your help.