> It would appear the issue is that a gdebi instance opened from the
context menu on a desktop item is unable to do any action on any .deb
file located anywhere. In other words it's doomed to fail upon simply
opening.

I am experiencing this behavior on Xubuntu 24.04.2 also, with not just
opening files from the desktop, but seemingly GUI "open-with"ing in
general (double-click on deb file in Thunar/on desktop, Gnome Web open
deb file after download)

Opening a deb file with GDebi in such a way (optionally changing to a
different deb file), then clicking "Install" exits immeidately. From
`strace` it seems like `pkexec` is exiting with code 127 after gdebi-gtk
calls `execv`.

Changing the `gdebi.desktop` file to use `Terminal=true` seems to fix
the issue (but then running gdebi-gtk opens a blank terminal while
running).

Alternately, making a simple script that forwards its arguments to
`/usr/bin/gdebi-gtk` and placing it in PATH also seems to fix the issue.

Looking through `.xsession-errors`, "Refusing to render service to dead
parents." is printed when such a "bad" invocation exits. It seems like
`pkexec` intentionally does not work when directly run with `execv` or
similar? https://lists.ubuntu.com/archives/foundations-
bugs/2012-July/100103.html

It seems like `gdebi-gtk` should either ship a wrapper executable that
calls `pkexec`, or should `execv` to sh/`bash -c pkexec gdebi-gtk ...`
or something instead of `execv`ing to `pkexec gdbi-gtk ...` directly.

-- 
You received this bug notification because you are a member of Ubuntu
Desktop Bugs, which is subscribed to nautilus in Ubuntu.
https://bugs.launchpad.net/bugs/1807761

Title:
  Unable to install deb-file stored on Desktop (which is controlled by
  nautilus-desktop) with GDebi

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/gdebi/+bug/1807761/+subscriptions


-- 
desktop-bugs mailing list
desktop-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/desktop-bugs

Reply via email to