Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-95549

-display option not propagated to gtk3 platformtheme

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P3: Somewhat important
    • Resolution: Invalid
    • Affects Version/s: 5.15.2
    • Fix Version/s: None
    • Labels:
      None
    • Platform/s:
      Linux/X11

      Description

      When the DISPLAY environment variable and the -display command-line options differ from eachother, the libqgtk3.so platformtheme may crash, like so:

       $ DISPLAY= QT_QPA_PLATFORMTHEME=gtk3 qdbusviewer -display :0
      
      (qdbusviewer:8735): Gtk-WARNING **: 12:03:09.078: cannot open display: 
      

      This affects the behavior of applications like gpg-agent, that unset the DISPLAY variable, and expect a subprocess to work with just passing the `-display` option. As such, this can also be reproduced with `DISPLAY= QT_QPA_PLATFORMTHEME=gtk3 pinentry-qt --display :0`.

      Note that this probably isn't an issue for wayland thanks to the absence of an equivalent -display option. Unless I'm wrong about this, that is...

        Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

            Assignee:
            mid-kid mid kid
            Reporter:
            mid-kid mid kid
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Gerrit Reviews

                There are no open Gerrit changes