Public bug reported: [ Impact ]
`pkcon` is configured to launch the Gtk debconf helper to ask debconf questions graphically. This works in Xorg desktop sessions, but does not work in Wayland desktop sessions. That is because it starts the Gtk program with a blank environment and only adds the DISPLAY environment variable, but not WAYLAND_DISPLAY nor XAUTHORITY which would at least have allowed it to display over XWayland. This is fixed by exposing the WAYLAND_DISPLAY and/or XAUTHORITY environment variables to the Gtk program. [ Test Case ] 1. Download `noisy-fake-driver_0.6_amd64.deb` from the attachments. 2. Run `pkcon install-local ~/Downloads/noisy-fake-driver_0.6_amd64.deb` 3. Complete the installation 4. Verify that you saw the "Do you see this message?" question [ Where problems could occur ] It's fair to assume that the graphical debconf helper hasn't received much testing recently, with `apt` defaulting to the text-base helper and `pkcon` failing to show it in Wayland; so it's possible that it doesn't work well. ** Affects: packagekit (Ubuntu) Importance: Undecided Assignee: Alessandro Astone (aleasto) Status: In Progress ** Affects: packagekit (Ubuntu Jammy) Importance: Undecided Assignee: Alessandro Astone (aleasto) Status: New ** Affects: packagekit (Ubuntu Noble) Importance: Undecided Assignee: Alessandro Astone (aleasto) Status: New ** Affects: packagekit (Ubuntu Oracular) Importance: Undecided Assignee: Alessandro Astone (aleasto) Status: New ** Also affects: packagekit (Ubuntu Jammy) Importance: Undecided Status: New ** Also affects: packagekit (Ubuntu Noble) Importance: Undecided Status: New ** Also affects: packagekit (Ubuntu Oracular) Importance: Undecided Status: New ** Changed in: packagekit (Ubuntu) Status: New => In Progress ** Changed in: packagekit (Ubuntu) Assignee: (unassigned) => Alessandro Astone (aleasto) ** Changed in: packagekit (Ubuntu Noble) Assignee: (unassigned) => Alessandro Astone (aleasto) ** Changed in: packagekit (Ubuntu Oracular) Assignee: (unassigned) => Alessandro Astone (aleasto) ** Changed in: packagekit (Ubuntu Jammy) Assignee: (unassigned) => Alessandro Astone (aleasto) -- You received this bug notification because you are a member of Ubuntu Touch seeded packages, which is subscribed to packagekit in Ubuntu. https://bugs.launchpad.net/bugs/2086773 Title: pkcon does not ask debconf questions in Wayland Status in packagekit package in Ubuntu: In Progress Status in packagekit source package in Jammy: New Status in packagekit source package in Noble: New Status in packagekit source package in Oracular: New Bug description: [ Impact ] `pkcon` is configured to launch the Gtk debconf helper to ask debconf questions graphically. This works in Xorg desktop sessions, but does not work in Wayland desktop sessions. That is because it starts the Gtk program with a blank environment and only adds the DISPLAY environment variable, but not WAYLAND_DISPLAY nor XAUTHORITY which would at least have allowed it to display over XWayland. This is fixed by exposing the WAYLAND_DISPLAY and/or XAUTHORITY environment variables to the Gtk program. [ Test Case ] 1. Download `noisy-fake-driver_0.6_amd64.deb` from the attachments. 2. Run `pkcon install-local ~/Downloads/noisy-fake-driver_0.6_amd64.deb` 3. Complete the installation 4. Verify that you saw the "Do you see this message?" question [ Where problems could occur ] It's fair to assume that the graphical debconf helper hasn't received much testing recently, with `apt` defaulting to the text-base helper and `pkcon` failing to show it in Wayland; so it's possible that it doesn't work well. To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/packagekit/+bug/2086773/+subscriptions -- Mailing list: https://launchpad.net/~touch-packages Post to : touch-packages@lists.launchpad.net Unsubscribe : https://launchpad.net/~touch-packages More help : https://help.launchpad.net/ListHelp