Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package emacs for openSUSE:Factory checked in at 2022-11-10 14:19:27 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/emacs (Old) and /work/SRC/openSUSE:Factory/.emacs.new.1597 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "emacs" Thu Nov 10 14:19:27 2022 rev:168 rq:1034852 version:28.1 Changes: -------- --- /work/SRC/openSUSE:Factory/emacs/emacs.changes 2022-10-27 13:52:48.528150764 +0200 +++ /work/SRC/openSUSE:Factory/.emacs.new.1597/emacs.changes 2022-11-10 14:19:30.837414302 +0100 @@ -1,0 +2,6 @@ +Wed Nov 9 13:46:06 UTC 2022 - Dr. Werner Fink <wer...@suse.de> + +- Add workaround for boo#1205109, that is started with sudo there + is maybe no active user session for root hence no dbus + +------------------------------------------------------------------- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ emacs.sh ++++++ --- /var/tmp/diff_new_pack.1yo4cx/_old 2022-11-10 14:19:31.937420365 +0100 +++ /var/tmp/diff_new_pack.1yo4cx/_new 2022-11-10 14:19:31.937420365 +0100 @@ -47,14 +47,30 @@ echo "no emacs binary found" exit 1 fi +if [[ "$1" =~ .*-nox ]] ; then + exec -a $arg0 ${1+"$@"} "${argv[@]}" +fi dbusdaemon=$(type -p dbus-daemon 2>/dev/null) # # Now check for valid dbus, e.g. after su/sudo/slogin # if test -n "$dbusdaemon" ; then + # + # Workaround for boo#1205109 + # + if test "$EUID" = 0 -a "$XDG_RUNTIME_DIR" != /run/user/0; then + unset XDG_CONFIG_HOME XDG_CACHE_HOME XDG_DESKTOP_DIR XDG_RUNTIME_DIR XDG_DATA_DIRS +# unset DBUS_SESSION_BUS_ADDRESS + if test ! -d /run/user/0; then + systemctl start user@0 >/dev/null 2>&1 + fi + if test -S /run/user/0/bus; then + DBUS_SESSION_BUS_ADDRESS=unix:/run/user/0/bus + fi + fi # Standard on modern systems - : ${XDG_RUNTIME_DIR:=/run/user/${UID}} + : ${XDG_RUNTIME_DIR:=/run/user/${EUID}} export XDG_RUNTIME_DIR # Oops ... no dbus-daemon then launch a new session