Re: Complaints from mousepad.
From: Sascha Silbe <sascha-ml-reply-to-2021-2@silbe.org>
Date: Mon, 07 Jun 2021 11:26:35 +0200
> Have you tried setting the DISPLAY environment variable like the warning
> mentions?
Initially tried the --display parameter of the mousepad command.
Somewhere along the exploration also tried the environment variable
ahead of the command, although it seems more kludgey.
> For example you could place this in your .xsession:
>
> echo export DBUS_SESSION_BUS_ADDRESS="${DBUS_SESSION_BUS_ADDRESS}" > ~/.dbusaddr
>
> And then in your met() function:
>
> ( source ~/.dbusaddr && exec mousepad --display=:0 /home/me/a ) &
>
> The subshell ensures only mousepad sees
> DBUS_SESSION_BUS_ADDRESS.
.dbusaddr now contains one constant line.
peter@joule:/home/peter$ cat .dbusaddr
export DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/1000/bus
Replacement at every start of X shouldn't be necessary. Therefore I
left .xsessionrc containing only comments.
Starting mousepad via the function now gives only the Gtk warning
including "... will be removed in a future version". Definitely an
improvement.
Thx, ... P.
--
tel: +1 604 670 0140
Reply to: