Results 1 to 3 of 3

Thread: Problems using applications on VNC

  1. #1
    Join Date
    Sep 2007
    Location
    Hungary
    Beans
    103
    Distro
    Xubuntu 20.04 Focal Fossa

    Problems using applications on VNC

    Hi,
    I have a lot of problems when using VNC. Some programs do not appear but they are starting up. Others do work but then when they do say, a popup window, that doesn't appear. For example, thunderbird starts and appears, but the popup window where it asks for my password doesn't appear.
    Looking at the processes, I'm pretty sure the problem is that those apps try to show these popups or themselves on screen :0, whereas I'm using screen :1 with VNC. Sometimes I see dbus errors mentioning :0 too.
    Is there a way to start applications on a specific screen? Is this a window manager thing? I'm using XFCE. 18.04 and 20.04
    Last edited by bsh; September 10th, 2021 at 06:38 AM.

  2. #2
    Join Date
    Oct 2005
    Location
    Lab, Slovakia
    Beans
    10,465

    Re: Problems using applications on VNC

    VNC is mostly a Windows thing. On Linux systems, you will have better luck and better security with SSH.

  3. #3
    Join Date
    May 2006
    Location
    Switzerland
    Beans
    2,907
    Distro
    Ubuntu 20.04 Focal Fossa

    Re: Problems using applications on VNC

    Quote Originally Posted by bsh View Post
    I'm pretty sure the problem is that those apps try to show these popups or themselves on screen :0
    You are trying to run e.g. 2 x instances of XFCE (:0 and :1) at the same time? When you are in VNC on :1 please check your DISPLAY= environment variable, e.g.
    Code:
    env | grep DISPLAY
    Quote Originally Posted by bsh View Post
    Is there a way to start applications on a specific screen?
    Yes, by setting the DISPLAY variable.

    Code:
    export DISPLAY=:0
    xterm &
    ... should launch an instance of "xterm" on the physical X.org session (if you are authorized to even open applications on that screen). The problem is that it is easy to accidentally set that variable to an incorrect value which would cause the symptoms you describe.

    While we're at it: What settings do you have in your ~/.vnc/xstartup file? Can you post it here (in CODE tags please!) or on a PasteBin site?
    Last edited by scorp123; September 11th, 2021 at 06:09 AM.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •