Fix detection of running of recent Claws Mail
authorRicardo Mones <ricardo@mones.org>
Sun, 7 Feb 2021 18:33:04 +0000 (19:33 +0100)
committerRicardo Mones <ricardo@mones.org>
Sun, 7 Feb 2021 18:33:04 +0000 (19:33 +0100)
commit69775d272a8dcb9cbc7945fc288e939685651598
tree804fc0c389fbb78db9fb09b51bdc6a109639d00f
parent8b385099a7dbccf4cedaaf7fe6d5e5658659705e
Fix detection of running of recent Claws Mail

Starting in version 3.17.8-15-ge56346845 the socket path is built using
g_get_user_runtime_dir¹ insead of g_get_tmp_dir².

This change rendered the  current detection scheme invalid, though it's
still available as fallback to detect older Claws Mail versions.

This fix hopefully emulates that function by reading the same
environment variables.

¹ https://developer.gnome.org/glib/stable/glib-Miscellaneous-Utility-Functions.html#g-get-user-runtime-dir
² https://developer.gnome.org/glib/stable/glib-Miscellaneous-Utility-Functions.html#g-get-tmp-dir
clawsker