Your message dated Wed, 18 Mar 2020 02:50:51 +0000
with message-id <[email protected]>
and subject line Bug#954062: Removed package(s) from unstable
has caused the Debian Bug report #446811,
regarding sylpheed_claws scriptlet: XAUTHORITY may not be exported
to be marked as done.
This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.
(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)
--
446811: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=446811
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: hibernate
Version: 1.96~pre-svn.r1136-1
Severity: wishlist
Hello
The sylpheed_claws scriptlet makes the implicit assumption that the XAUTHORITY
variable is exported when calling get_env_var_of_process.
Given my poor understanding of the X session mechanism, I might probably be
wrong, but I suspect that XAUTHORITY is not always exported and that even more,
it is not mandatory at all to export it.
Provided the here above assumption is correct, the xauthority variable obtained
thru get_env_var_of_process might sometimes be empty and the commands using the
variable in the scriptlet might fail.
Shouldn't sylpheed_claws scriptlet make the additional checking that xauthority
variable is not empty and fall back to $HOME/.Xauthority to give itself a
chance to succeed? It seems that it is what the main script does within
FindXServer(): it does not rely only on /proc/<pid>/environ and proceeds to
additional checkings.
The proposed patch for sylpheed_claws in attachment is inspired by
FindXServer() and proceeds to the same checkings. It applies to current SVN
upstream trunk (rev. 1161).
In the other hand I might be completely wrong because maybe my
x-session-manager does not behave correctly or because I should always export
XAUTHORITY in my .Xession (I used to export XAUTHORITY as a simple mean to be
able to launch X applications after su to root but I recently dropped it in
favor of pam_xauth...and hibernate is the only drawback I found).
Best regards.
Pascal D.
--- sylpheed_claws 2007-10-15 20:55:33.000000000 +0200
+++ sylpheed_claws.new 2007-10-15 21:37:20.000000000 +0200
@@ -20,11 +20,17 @@
local pid i=0
for pid in `pidof sylpheed-claws`; do
- local user display xauthority
+ local user display xauthority xhome
+
+ [ -d "/proc/$pid/" ] || continue
user=$(get_env_var_of_process $pid USER)
display=$(get_env_var_of_process $pid DISPLAY)
xauthority=$(get_env_var_of_process $pid XAUTHORITY)
+ xhome=$(get_env_var_of_process $pid HOME)
+ [ -z $xauthority ] && [ -n $xhome ] && [ -f $xhome/.Xauthority ] && xauthority=$xhome/.Xauthority
+
+ [ -z $xauthority ] && continue
# using this eval-crap to be POSIX-compliant (arrays are nonstandard)
eval "SYLPHEEDCLAWS_LOGGED_OUT_SESSIONS_USER_$i='$user'"
--- End Message ---
--- Begin Message ---
Version: 2.0+15+g88d54a8-1+rm
Dear submitter,
as the package hibernate has just been removed from the Debian archive
unstable we hereby close the associated bug reports. We are sorry
that we couldn't deal with your issue properly.
For details on the removal, please see https://bugs.debian.org/954062
The version of this package that was in Debian prior to this removal
can still be found using http://snapshot.debian.org/.
Please note that the changes have been done on the master archive and
will not propagate to any mirrors until the next dinstall run at the
earliest.
This message was generated automatically; if you believe that there is
a problem with it please contact the archive administrators by mailing
[email protected].
Debian distribution maintenance software
pp.
Scott Kitterman (the ftpmaster behind the curtain)
--- End Message ---