# Beginner question - Error with app integration with Distrobox \[dpscreenocr\]

**URL:** <https://universal-blue.discourse.group/t/beginner-question-error-with-app-integration-with-distrobox-dpscreenocr/494>\
**Category:** Bluefin\
**Tags:** developer-experience\
**Created:** [January 25, 2024, 11:22pm UTC](https://universal-blue.discourse.group/t/beginner-question-error-with-app-integration-with-distrobox-dpscreenocr/494 "2024-01-25T23:22:11Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Bambiraptor](https://yyz2.discourse-cdn.com/free1/user_avatar/universal-blue.discourse.group/bambiraptor/32/333_2.png) [@Bambiraptor](https://universal-blue.discourse.group/u/Bambiraptor)\
**Post date:** [January 25, 2024, 11:22pm UTC](https://universal-blue.discourse.group/t/beginner-question-error-with-app-integration-with-distrobox-dpscreenocr/494/1 "2024-01-25T23:22:11Z")

</div>

I’m having a hard time integrating apps installed in my ubuntu disrobox…

For example I installed [dpscreenocr](https://launchpad.net/~daniel.p/+archive/ubuntu/dpscreenocr) following this link and created a shortcut the way @Casserole97 explained with:  
`distrobox-export --app dpscreenocr`  
Now when I click the shortcut I get this error:  
`Can't create backend: Wayland is not supported. Please switch to the X11/Xorg session.`…

I would know how to do it with a login screen but how does it work in an ubuntu distrobox? thanks

* * *

tried the following (but no /etc/gdm3/custom.conf):

- **Edit the GDM Configuration File:** Run the following command to edit the GDM configuration file:

```auto
sudo nano /etc/gdm3/custom.conf

```

Here, `sudo` gives you superuser privileges, `nano` is a text editor, and `/etc/gdm3/custom.conf` is the path to the GDM configuration file.

- **Modify the File:** In the file, find the line that starts with `#WaylandEnable=false`. Remove the `#` symbol at the beginning of the line to uncomment it. This will disable Wayland and enable Xorg.
- **Save and Exit:** Save the changes to the file by pressing `Ctrl+O`, then exit the editor by pressing `Ctrl+X`.
- **Restart Your Computer:** For the changes to take effect, you will need to restart your computer.

---

<div class="post-metadata">

**Author:** ![stego](https://yyz2.discourse-cdn.com/free1/user_avatar/universal-blue.discourse.group/stego/32/866_2.png) [@stego](https://universal-blue.discourse.group/u/stego)\
**Post date:** [January 26, 2024, 9:52pm UTC](https://universal-blue.discourse.group/t/beginner-question-error-with-app-integration-with-distrobox-dpscreenocr/494/2 "2024-01-26T21:52:24Z")

</div>

It should not be necessary to edit the gdm configuration.

> I would know how to do it with a login screen but how does it work in an ubuntu distrobox? thanks

If you pick a X11 session at the GDM login screen, then the dpscreenocr software will also work. At least that’s my experience when I tried it myself. The software needs an X11-server to work and spinning up a XWayland instance is not something you can easily do on Bluefin.

The following worked for me after I logged in to a X11 Gnome session:

```auto
distrobox create --name dpscreen --image ubuntu:latest

distrobox enter dpscreen

cd some/directory/where/I/can/write

wget "https://github.com/danpla/dpscreenocr/releases/download/v1.4.1/dpScreenOCR-1.4.1-linux-x86_64.tar.xz"

tar xf dpScreenOCR-1.4.1-linux-x86_64.tar.xz

cd dpScreenOCR-1.4.1-linux-x86_64/

./dpscreenocr

```
