1

I have a desktop application written completely in C with GUI written in Gtk. Currently, it works fine on my Ubuntu desktop.

Now, I want to use the application independent of the OS. Therefore, Docker seems to help with it but as far as I know, it only provides web based UI.

How can I use Docker to deploy standalone desktop applications?

Is there any other container which does the job?

P.S.: The application is written in Gtk 2 hence I cannot use broadway.

too honest for this site
  • 12,050
  • 4
  • 30
  • 52
Saumya Doshi
  • 21
  • 1
  • 3
  • 2
    Have a look at [x11docker](https://github.com/mviereck/x11docker) and at https://stackoverflow.com/questions/16296753/can-you-run-gui-applications-in-a-docker-container/39681017#39681017. – mviereck Aug 05 '18 at 15:08

1 Answers1

0

I haven't done it myself anytime but just suggesting what might seem obvious.

You can try this though:

  • Run XVNC server inside the container
  • Expose the port at which XVNC runs
  • Connect to the XVNC server from the host machine
  • Trigger your gui application from within the XVNC console
piy26
  • 1,574
  • 11
  • 21