jlesage / docker-baseimage-gui

A minimal docker baseimage to ease creation of X graphical application containers
MIT License
1.2k stars 179 forks source link

Help Needed! #82

Closed siriostar89 closed 2 years ago

siriostar89 commented 2 years ago

Hello, first of all, thanks for your image, I succesfully made my first docker container using your image! Well I had some hard times to make the app running, at least I had to install xfce4 as depency to succesfully run it! But I write to you because I have a problem with application that I'm "dockerizing", the app is ideaMaker (it's a software for 3d printing), it runs and works fine, but I can't save user options (it says id doesn't have permission to write) so here's what I tried:

  1. In Dockerfile I specified HOME variable and pointing to /home/app (usually ideaMaker save user options inside user home folder in a sub directory .ideamaker), created the complete path, chown to "app" user and chmodded to 0777. Result: Not working
  2. When I open the app, there's a menu item where it says the "configuration path" and it's result in "/.ideamaker/.", made the same steps as above (mkdir, chown, chmod), not working either.

I tried to find a file where I can write my own path for configuration, but didn't find anything, maybe it's hardcoded... The only thing that I can think about at this point it's to execute the app as root in the container, so it doesn't bother with write permissions! What do you think? Do you have any clue on how can I do this? Thanks!

jlesage commented 2 years ago

The home folder should be set to /config. Try to add the following line in your startapp.sh script:

export HOME=/config
siriostar89 commented 2 years ago

IT WORKS!!! Finally! REALLY REALLY THANKS!