You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@buildstream.apache.org by GitBox <gi...@apache.org> on 2021/02/05 09:51:26 UTC

[GitHub] [buildstream] BuildStream-Migration-Bot opened a new issue #1406: Correct way to export $DISPLAY to bst shell

BuildStream-Migration-Bot opened a new issue #1406:
URL: https://github.com/apache/buildstream/issues/1406


   [See original issue on GitLab](https://gitlab.com/BuildStream/buildstream/-/issues/1406)
   In GitLab by [[Gitlab user @tcanabrava]](https://gitlab.com/tcanabrava) on Oct 13, 2020, 18:58
   
   I'm not really sure if this is a bug or not, probably a misconfiguration, but I have not found any documentation about it.
   I'm trying to compile a Application that uses a X11 socket - the simplest one that I can think of, xorg-xdpyinfo.
   it compiles but does not run with the following error:
   
   ```
   No protocol specified
   xdpyinfo:  unable to open display ":0".
   ```
   
   I'm running on X11 and I can't use wayland currently.
   my project.conf has the following special configuration - extracted from gnome-build-meta - and changed to add the X11 unix socket:
   
   ```
   shell:
     command: ['bash', '--noprofile', '--norc', '-i']
     environment:
       LANG: '$LANG'
       DISPLAY: '$DISPLAY'
       DBUS_SESSION_BUS_ADDRESS: '$DBUS_SESSION_BUS_ADDRESS'
       XDG_RUNTIME_DIR: '$XDG_RUNTIME_DIR'
   
       # Inform applications which use pulseaudio of the server socket
       PULSE_SERVER: 'unix:${XDG_RUNTIME_DIR}/pulse/native'
   
     # Some things to mount into the sandbox
     host-files:
     # Understand user inherited uid/gid
     - '/etc/passwd'
     - '/etc/group'
     # Allow network resolution
     - '/etc/resolv.conf'
   
     - '/tmp/.X11-unix'
   ```
   
   I'm on a graphical session:
   ```
   /data/Projects/Buildstream/kde-build-meta on  master! ⌚ 18:52:42
   $ echo $DISPLAY
   :0
   ```
   
   And /tmp/.X11-unix does exist:
   ```
   /data/Projects/Buildstream/kde-build-meta on  master! ⌚ 18:56:41
   $ ls /tmp/.X11-unix 
   X0
   ```
   
   At first I assumed it was a bug in my configuration, but then I tested with gnome-build-meta and that got me similar results.
   
   So, What's the correct way to use buildstream shell to launch graphical applications in X11 systems?


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [buildstream] gtristan closed issue #1406: Correct way to export $DISPLAY to bst shell

Posted by GitBox <gi...@apache.org>.
gtristan closed issue #1406:
URL: https://github.com/apache/buildstream/issues/1406


   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@buildstream.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [buildstream] gtristan commented on issue #1406: Correct way to export $DISPLAY to bst shell

Posted by GitBox <gi...@apache.org>.
gtristan commented on issue #1406:
URL: https://github.com/apache/buildstream/issues/1406#issuecomment-1042593879


   Closing with NEEDINFO
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@buildstream.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [buildstream] BuildStream-Migration-Bot commented on issue #1406: Correct way to export $DISPLAY to bst shell

Posted by GitBox <gi...@apache.org>.
BuildStream-Migration-Bot commented on issue #1406:
URL: https://github.com/apache/buildstream/issues/1406#issuecomment-773068256


   In GitLab by [[Gitlab user @tristanvb]](https://gitlab.com/tristanvb) on Nov 6, 2020, 10:12
   
   [[Gitlab user @tcanabrava]](https://gitlab.com/tcanabrava) is this indeed still an issue ? I thought you found out it was a problem with your configuration.
   
   Can you please update or close this issue ?


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org