help-guix
[Top][All Lists]
Advanced

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

Re: Running graphical apps with guix shell --container


From: Luis Felipe
Subject: Re: Running graphical apps with guix shell --container
Date: Sat, 29 Jan 2022 20:15:39 +0000

On Friday, January 28th, 2022 at 4:01 PM, Luis Felipe 
<luis.felipe.la@protonmail.com> wrote:
> 

> So this worked:
> 

> EXAMPLE:
> guix shell -C -E "^DISPLAY$" -E "^XAUTHORITY$" --expose="$XAUTHORITY" 
> --share=/tmp/.X11-unix/ --share=$HOME/.Xauthority
> END EXAMPLE
> 

> But I'm just typing things without much consideration and hoping for the best 
> :) For example, the application now starts but it has no icons. So I guess 
> I'll go find some information about all the fundamental variables and 
> resources required by GTK apps to run.

I took a shortcut and just added "gnome" package to the manifest. After this, I 
also noticed a dbind-related warning┬╣ when starting the app and lots of 
dconf-related warnings┬▓ when using a file chooser dialog from the app. I got 
rid of the former by exposing the socket mentioned in the warning, while the 
latter went away after exposing the machine-id. So the command now looks like 
this:

EXAMPLE:
guix shell -C -E "^DISPLAY$" -E "^XAUTHORITY$" --expose="$XAUTHORITY" 
--expose=/tmp/.X11-unix/ --expose=$HOME/.Xauthority 
--expose=/tmp/dbus-P03C3WeCs0 --expose=/etc/machine-id
END EXAMPLE

At this point, the app is displayed and works as expected :)


1. dbind-WARNING **: 19:19:29.619: Couldn't connect to accessibility bus: 
Failed to connect to socket /tmp/dbus-P03C3WeCs0: No such file or director
2. dconf-WARNING **: 19:39:19.279: failed to commit changes to dconf: Cannot 
spawn a message bus without a machine-id: Unable to load 
/gnu/store/qqs98rxwjrji6aaf6dqwp7q4m545g2sn-glib-2.70.0/var/lib/dbus/machine-id 
or /etc/machine-id: Failed to open file 
?/gnu/store/qqs98rxwjrji6aaf6dqwp7q4m545g2sn-glib-2.70.0/var/lib/dbus/machine-id?:
 No such file or directory

Attachment: publickey - luis.felipe.la@protonmail.com - 0x12DE1598.asc
Description: application/pgp-keys

Attachment: signature.asc
Description: OpenPGP digital signature


reply via email to

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