Results 1 to 7 of 7

Thread: ssh -X and plasma

  1. #1
    Join Date
    Jul 2012
    Location
    Belgium
    Posts
    204

    Default ssh -X and plasma

    If i ssh to with

    Code:
    ssh -X user@ip dolphin
    then i get this:
    http://users.telenet.be/photo-memori...no%20icons.png

    A workaround for that is installing qt5ct and use another icon theme.


    But if i'm on ssh -X with dolphin and want open a txt file then opens kwrite or kate on the screen of the host computer.
    not on the screen where ssh dolphin opened. this is on tumbleweed 20170707 20170730 (and not on leap 42.2)
    where do i start to find out where the problem is, it happens with kwrite, kate, gwenview, okular, the info of copy files, .... (probly the hole plasma stuff)

  2. #2

    Default Re: ssh -X and plasma

    This happens because the remote application does not notice it is running in a KDE session, and so the KDE/Plasma platform plugin is not loaded (which loads e.g. the theme settings from the KDE config).

    Workaround: set XDG_CURRENT_DESKTOP=KDE to force it running in "KDE mode".

  3. #3
    Join Date
    Jul 2012
    Location
    Belgium
    Posts
    204

    Default Re: ssh -X and plasma

    Quote Originally Posted by wolfi323 View Post
    This happens because the remote application does not notice it is running in a KDE session, and so the KDE/Plasma platform plugin is not loaded (which loads e.g. the theme settings from the KDE config).

    Workaround: set XDG_CURRENT_DESKTOP=KDE to force it running in "KDE mode".

    not working, no correct icons and still open programs on host computer from dolphin. (tumbleweed 20170730)

    what i did:

    Code:
    ssh -X user@ip
    set XDG_CURRENT_DESKTOP=KDE
    dolphin

    output of konsole:
    Code:
    user@user-openSUSE:~> ssh -X user@ip
    Password: 
    Last login: Wed Aug  2 17:25:52 2017 from ip
    Have a lot of fun...
    user@user-openSUSE:~> set XDG_CURRENT_DESKTOP=KDE
    user@user-openSUSE:~> dolphin
    kf5.kio.core: Refilling KProtocolInfoFactory cache in the hope to find "stash"
    qt.accessibility.core: Cannot create accessible child interface for object:  PlacesView(0x55b483598050)  index:  25
    QPixmap::scaled: Pixmap is a null pixmap
    QPixmap::scaled: Pixmap is a null pixmap
    QPixmap::scaled: Pixmap is a null pixmap
    QPixmap::scaled: Pixmap is a null pixmap
    QPixmap::scaled: Pixmap is a null pixmap
    QPixmap::scaled: Pixmap is a null pixmap
    QPixmap::scaled: Pixmap is a null pixmap
    QPixmap::scaled: Pixmap is a null pixmap
    QPixmap::scaled: Pixmap is a null pixmap
    QPixmap::scaled: Pixmap is a null pixmap
    QPixmap::scaled: Pixmap is a null pixmap
    QPixmap::scaled: Pixmap is a null pixmap
    QPixmap::scaled: Pixmap is a null pixmap
    QPixmap::scaled: Pixmap is a null pixmap
    QPixmap::scaled: Pixmap is a null pixmap
    QPixmap::scaled: Pixmap is a null pixmap
    QPixmap::scaled: Pixmap is a null pixmap
    QPixmap::scaled: Pixmap is a null pixmap
    QPixmap::scaled: Pixmap is a null pixmap
    QPixmap::scaled: Pixmap is a null pixmap
    QPixmap::scaled: Pixmap is a null pixmap
    QPixmap::scaled: Pixmap is a null pixmap
    QPixmap::scaled: Pixmap is a null pixmap
    QPixmap::scaled: Pixmap is a null pixmap
    QPixmap::scaled: Pixmap is a null pixmap
    QPixmap::scaled: Pixmap is a null pixmap
    QPixmap::scaled: Pixmap is a null pixmap
    QPixmap::scaled: Pixmap is a null pixmap
    QPixmap::scaled: Pixmap is a null pixmap
    QPixmap::scaled: Pixmap is a null pixmap
    QPixmap::scaled: Pixmap is a null pixmap
    QPixmap::scaled: Pixmap is a null pixmap
    QPixmap::scaled: Pixmap is a null pixmap
    QPixmap::scaled: Pixmap is a null pixmap
    QPixmap::scaled: Pixmap is a null pixmap
    QPixmap::scaled: Pixmap is a null pixmap
    QPixmap::scaled: Pixmap is a null pixmap
    QPixmap::scaled: Pixmap is a null pixmap
    QPixmap::scaled: Pixmap is a null pixmap
    kf5.kio.core: We got some errors while running 'net usershare info'
    kf5.kio.core: "Failed to init messaging context\n"
    QPixmap::scaled: Pixmap is a null pixmap
    QPixmap::scaled: Pixmap is a null pixmap
    QPixmap::scaled: Pixmap is a null pixmap
    QPixmap::scaled: Pixmap is a null pixmap
    QPixmap::scaled: Pixmap is a null pixmap
    QPixmap::scaled: Pixmap is a null pixmap
    QPixmap::scaled: Pixmap is a null pixmap
    QPixmap::scaled: Pixmap is a null pixmap
    QPixmap::scaled: Pixmap is a null pixmap
    QPixmap::scaled: Pixmap is a null pixmap
    QPixmap::scaled: Pixmap is a null pixmap
    QPixmap::scaled: Pixmap is a null pixmap
    QPixmap::scaled: Pixmap is a null pixmap
    QPixmap::scaled: Pixmap is a null pixmap
    QPixmap::scaled: Pixmap is a null pixmap
    QPixmap::scaled: Pixmap is a null pixmap
    QPixmap::scaled: Pixmap is a null pixmap
    QPixmap::scaled: Pixmap is a null pixmap
    QPixmap::scaled: Pixmap is a null pixmap
    QPixmap::scaled: Pixmap is a null pixmap
    QPixmap::scaled: Pixmap is a null pixmap
    QPixmap::scaled: Pixmap is a null pixmap
    QPixmap::scaled: Pixmap is a null pixmap
    QPixmap::scaled: Pixmap is a null pixmap
    QPixmap::scaled: Pixmap is a null pixmap
    QPixmap::scaled: Pixmap is a null pixmap
    QPixmap::scaled: Pixmap is a null pixmap
    QPixmap::scaled: Pixmap is a null pixmap
    QPixmap::scaled: Pixmap is a null pixmap
    QPixmap::scaled: Pixmap is a null pixmap
    QPixmap::scaled: Pixmap is a null pixmap
    QPixmap::scaled: Pixmap is a null pixmap
    QPixmap::scaled: Pixmap is a null pixmap
    QPixmap::scaled: Pixmap is a null pixmap
    QPixmap::scaled: Pixmap is a null pixmap
    QPixmap::scaled: Pixmap is a null pixmap
    QPixmap::scaled: Pixmap is a null pixmap
    QPixmap::scaled: Pixmap is a null pixmap
    QPainter::begin: Paint device returned engine == 0, type: 2
    QPainter::setOpacity: Painter not active
    QPainter::begin: Paint device returned engine == 0, type: 2
    QPainter::setOpacity: Painter not active
    QPainter::begin: Paint device returned engine == 0, type: 2
    QPainter::setCompositionMode: Painter not active
    QPixmap::scaled: Pixmap is a null pixmap
    QPainter::begin: Paint device returned engine == 0, type: 2
    QPainter::setOpacity: Painter not active
    QPainter::begin: Paint device returned engine == 0, type: 2
    QPainter::setOpacity: Painter not active
    QPainter::begin: Paint device returned engine == 0, type: 2
    QPainter::setCompositionMode: Painter not active
    QPixmap::scaled: Pixmap is a null pixmap
    QPainter::begin: Paint device returned engine == 0, type: 2
    QPainter::setOpacity: Painter not active
    QPainter::begin: Paint device returned engine == 0, type: 2
    QPainter::setOpacity: Painter not active
    QPainter::begin: Paint device returned engine == 0, type: 2
    QPainter::setCompositionMode: Painter not active
    QPixmap::scaled: Pixmap is a null pixmap
    QPainter::begin: Paint device returned engine == 0, type: 2
    QPainter::setOpacity: Painter not active
    QPainter::begin: Paint device returned engine == 0, type: 2
    QPainter::setOpacity: Painter not active
    QPainter::begin: Paint device returned engine == 0, type: 2
    QPainter::setCompositionMode: Painter not active
    QPixmap::scaled: Pixmap is a null pixmap
    QPainter::begin: Paint device returned engine == 0, type: 2
    QPainter::setOpacity: Painter not active
    QPainter::begin: Paint device returned engine == 0, type: 2
    QPainter::setOpacity: Painter not active
    QPainter::begin: Paint device returned engine == 0, type: 2
    QPainter::setCompositionMode: Painter not active
    QPixmap::scaled: Pixmap is a null pixmap
    QPainter::begin: Paint device returned engine == 0, type: 2
    QPainter::setOpacity: Painter not active
    QPainter::begin: Paint device returned engine == 0, type: 2
    QPainter::setOpacity: Painter not active
    QPainter::begin: Paint device returned engine == 0, type: 2
    QPainter::setCompositionMode: Painter not active
    QPixmap::scaled: Pixmap is a null pixmap
    QPainter::begin: Paint device returned engine == 0, type: 2
    QPainter::setOpacity: Painter not active
    QPainter::begin: Paint device returned engine == 0, type: 2
    QPainter::setOpacity: Painter not active
    QPainter::begin: Paint device returned engine == 0, type: 2
    QPainter::setCompositionMode: Painter not active
    QPixmap::scaled: Pixmap is a null pixmap
    QPainter::begin: Paint device returned engine == 0, type: 2
    QPainter::setOpacity: Painter not active
    QPainter::begin: Paint device returned engine == 0, type: 2
    QPainter::setOpacity: Painter not active
    QPainter::begin: Paint device returned engine == 0, type: 2
    QPainter::setCompositionMode: Painter not active
    QPixmap::scaled: Pixmap is a null pixmap
    QPainter::begin: Paint device returned engine == 0, type: 2
    QPainter::setOpacity: Painter not active
    QPainter::begin: Paint device returned engine == 0, type: 2
    QPainter::setOpacity: Painter not active
    QPainter::begin: Paint device returned engine == 0, type: 2
    QPainter::setCompositionMode: Painter not active
    QPixmap::scaled: Pixmap is a null pixmap
    QPainter::begin: Paint device returned engine == 0, type: 2
    QPainter::setOpacity: Painter not active
    QPainter::begin: Paint device returned engine == 0, type: 2
    QPainter::setOpacity: Painter not active
    QPainter::begin: Paint device returned engine == 0, type: 2
    QPainter::setCompositionMode: Painter not active
    QPixmap::scaled: Pixmap is a null pixmap
    QPainter::begin: Paint device returned engine == 0, type: 2
    QPainter::setOpacity: Painter not active
    QPainter::begin: Paint device returned engine == 0, type: 2
    QPainter::setOpacity: Painter not active
    QPainter::begin: Paint device returned engine == 0, type: 2
    QPainter::setCompositionMode: Painter not active
    QPixmap::scaled: Pixmap is a null pixmap
    QPainter::begin: Paint device returned engine == 0, type: 2
    QPainter::setOpacity: Painter not active
    QPainter::begin: Paint device returned engine == 0, type: 2
    QPainter::setOpacity: Painter not active
    QPainter::begin: Paint device returned engine == 0, type: 2
    QPainter::setCompositionMode: Painter not active
    QPixmap::scaled: Pixmap is a null pixmap
    QPainter::begin: Paint device returned engine == 0, type: 2
    QPainter::setOpacity: Painter not active
    QPainter::begin: Paint device returned engine == 0, type: 2
    QPainter::setOpacity: Painter not active
    QPainter::begin: Paint device returned engine == 0, type: 2
    QPainter::setCompositionMode: Painter not active
    QPixmap::scaled: Pixmap is a null pixmap
    QPixmap::scaled: Pixmap is a null pixmap
    QPixmap::scaled: Pixmap is a null pixmap
    QPixmap::scaled: Pixmap is a null pixmap
    QPixmap::scaled: Pixmap is a null pixmap
    QPixmap::scaled: Pixmap is a null pixmap
    QPixmap::scaled: Pixmap is a null pixmap
    QPixmap::scaled: Pixmap is a null pixmap
    QPixmap::scaled: Pixmap is a null pixmap
    QPixmap::scaled: Pixmap is a null pixmap
    QPixmap::scaled: Pixmap is a null pixmap
    QPixmap::scaled: Pixmap is a null pixmap
    QPixmap::scaled: Pixmap is a null pixmap
    QPixmap::scaled: Pixmap is a null pixmap
    QPixmap::scaled: Pixmap is a null pixmap
    QPixmap::scaled: Pixmap is a null pixmap
    QPixmap::scaled: Pixmap is a null pixmap
    QPixmap::scaled: Pixmap is a null pixmap
    QPixmap::scaled: Pixmap is a null pixmap
    QPixmap::scaled: Pixmap is a null pixmap
    QPixmap::scaled: Pixmap is a null pixmap
    QPixmap::scaled: Pixmap is a null pixmap
    QPixmap::scaled: Pixmap is a null pixmap
    QPixmap::scaled: Pixmap is a null pixmap
    QPixmap::scaled: Pixmap is a null pixmap
    QPixmap::scaled: Pixmap is a null pixmap
    QPixmap::scaled: Pixmap is a null pixmap
    QPixmap::scaled: Pixmap is a null pixmap
    QPixmap::scaled: Pixmap is a null pixmap
    QPixmap::scaled: Pixmap is a null pixmap
    QPixmap::scaled: Pixmap is a null pixmap
    QPixmap::scaled: Pixmap is a null pixmap
    QPixmap::scaled: Pixmap is a null pixmap
    QPixmap::scaled: Pixmap is a null pixmap
    QPixmap::scaled: Pixmap is a null pixmap
    QPixmap::scaled: Pixmap is a null pixmap
    QPixmap::scaled: Pixmap is a null pixmap
    QPixmap::scaled: Pixmap is a null pixmap
    QPixmap::scaled: Pixmap is a null pixmap
    QPixmap::scaled: Pixmap is a null pixmap
    QPixmap::scaled: Pixmap is a null pixmap
    QPixmap::scaled: Pixmap is a null pixmap
    QPixmap::scaled: Pixmap is a null pixmap
    QPixmap::scaled: Pixmap is a null pixmap
    QPixmap::scaled: Pixmap is a null pixmap
    QPixmap::scaled: Pixmap is a null pixmap
    QPixmap::scaled: Pixmap is a null pixmap
    QPixmap::scaled: Pixmap is a null pixmap
    QPixmap::scaled: Pixmap is a null pixmap
    QPixmap::scaled: Pixmap is a null pixmap

  4. #4

    Default Re: ssh -X and plasma

    Quote Originally Posted by heelstraf View Post
    not working, no correct icons and still open programs on host computer from dolphin. (tumbleweed 20170730)

    what i did:

    Code:
    ssh -X user@ip
    set XDG_CURRENT_DESKTOP=KDE
    dolphin
    Try "export XDG_CURRENT_DESKTOP=KDE" or run dolphin like this:
    Code:
    XDG_CURRENT_DESKTOP=KDE dolphin
    And make sure that plasma5-integration-plugin is installed (on the remote system).

    Btw, this will only work if qt5ct is *not* installed, as qt5ct overrides the Qt platform plugin to be used.

    Alternatively, you can also try to set QT_QPA_PLATFORMTHEME instead:
    Code:
    export QT_QPA_PLATFORMTHEME='kde'
    That should also work with qt5ct installed I think.
    Last edited by wolfi323; 02-Aug-2017 at 09:38.

  5. #5
    Join Date
    Jul 2012
    Location
    Belgium
    Posts
    204

    Default Re: ssh -X and plasma

    Quote Originally Posted by wolfi323 View Post
    Try "export XDG_CURRENT_DESKTOP=KDE" or run dolphin like this:
    Code:
    XDG_CURRENT_DESKTOP=KDE dolphin
    this works, only for correct icons (not open files)


    Quote Originally Posted by wolfi323 View Post

    Alternatively, you can also try to set QT_QPA_PLATFORMTHEME instead:
    Code:
    export QT_QPA_PLATFORMTHEME='kde'
    this is also correct for the icons but not for opening files, still opens on the host

    thx, for one problem there is a workaround :-)
    that's better than thinking to switch to gnome (nautilus) after using kde for 13 years now.

    note: qt5ct is not installed on my tumbleweed
    the workaround for the leap 42.2 (not tested on 42.3 yet) is with qt5ct,
    There is no problem with open file over ssh dolphin on leap 42.x at the moment, but i'm afraid about leap 15.x
    And i'm trying to switch to tumbleweed ;-)

  6. #6

    Default Re: ssh -X and plasma

    Quote Originally Posted by heelstraf View Post
    this is also correct for the icons but not for opening files, still opens on the host
    Hm, maybe DISPLAY is not set correctly?

    Try "ssh -Y" instead of "ssh -X" maybe.

  7. #7
    Join Date
    Jul 2012
    Location
    Belgium
    Posts
    204

    Default Re: ssh -X and plasma

    Quote Originally Posted by wolfi323 View Post
    Hm, maybe DISPLAY is not set correctly?

    Try "ssh -Y" instead of "ssh -X" maybe.
    with ssh -Y also not correct.
    it's dolphins problem it think because if you open ssh nautilus and then open files with kwrite or other kde apps then it works.


    offtopic:
    is there a lightweight kde file browser that can add servicemenu's? didn't find it in pcmanfm(LXQT)

Posting Permissions

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