emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Unable to get dbus.el to work with the Gentoo OpenRC 'emacs' service


From: Robert Pluim
Subject: Re: Unable to get dbus.el to work with the Gentoo OpenRC 'emacs' service
Date: Mon, 12 Jun 2023 10:25:41 +0200

>>>>> On Sat, 10 Jun 2023 18:16:36 +0200, Michael Albinus 
>>>>> <michael.albinus@gmx.de> said:
    Michael> diff --git a/src/dbusbind.c b/src/dbusbind.c
    Michael> index d96b735c79a..96f9329a97e 100644
    Michael> --- a/src/dbusbind.c
    Michael> +++ b/src/dbusbind.c
    Michael> @@ -276,7 +276,9 @@ XD_OBJECT_TO_STRING (Lisp_Object object)

    Michael>  #define XD_DBUS_VALIDATE_BUS_ADDRESS(bus)                         
\
    Michael>    do {                                                            
        \
    Michael> -    char const *session_bus_address = getenv 
("DBUS_SESSION_BUS_ADDRESS"); \
    Michael> +    Lisp_Object session_bus_address                               
        \
    Michael> +      = Fgetenv_internal (build_string 
("DBUS_SESSION_BUS_ADDRESS"),      \
    Michael> +                    Qnil);
    Michael>    \

Since youʼre already at the C level, perhaps you could use `egetenv'
instead and avoid the C<->lisp string changes.

Robert
-- 



reply via email to

[Prev in Thread] Current Thread [Next in Thread]