subuser icon indicating copy to clipboard operation
subuser copied to clipboard

Cannot start xpra on Fedora 25

Open colinemonds opened this issue 7 years ago • 0 comments

Hello,

I'm trying to create a container for the proprietary software suite WPS Office. I am able to build the Ubuntu container successfully. Unfortunately, when I try to launch it on the Fedora 25 host, I get the message "Starting xpra server..." and then it hangs forever. The subuser docs say that XPRA problems can be debugged by setting an environment variable, so here is the output for your pleasure:

cemonds:~/subuser-images$ SUBUSER_DEBUG_XPRA= subuser run wps-office
Starting xpra server...
xpra initialization error:
 failed to create the Xorg log directory '/home/subuser//.xpra': [Errno 13] Permission denied:
'/home/subuser//.xpra'
[Errno 13] Permission denied: '/home/subuser//.xpra'
Error: failed to write script file in '/home/subuser/.xpra':
 [Errno 13] Permission denied: '/home/subuser/.xpra'
Error trying to create XAUTHORITY file /home/subuser/.Xauthority: [Errno 13] Permission denied:
 '/home/subuser/.Xauthority'

There are no additional log files, not even in the directory that the docs name (~/.subuser/volumes/xpra/wps-office/xpra-home), even though the directory does get created. In case you want to try it yourself, the dockerfile is as such:

FROM ubuntu
RUN mkdir /usr/share/desktop-directories && echo ttf-mscorefonts-installer msttcorefonts/accepted-mscorefonts-eula select true|debconf-set-selections && apt-get update && apt install -y wget xdg-utils apt-transport-https && wget http://kdl1.cache.wps.com/ksodl/download/linux/a21//wps-office_10.1.0.5707~a21_amd64.deb -O wpsoffice.deb && apt install -y ./wpsoffice.deb

and these are the permissions I set:

{
    "description":"WPS Office suite Alpha21"
    ,"maintainer":"-"
    ,"executable":"/usr/bin/wps"
    ,"gui":{"clipboard":true}
    ,"user-dirs":["Documents"]
    ,"sound-card":false
    ,"allow-network-access":false
    ,"basic-common-permissions":true
}

Thank you for your support and for developing this great software!

colinemonds avatar Mar 18 '18 00:03 colinemonds