> 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
Touch seeded packages, which is subscribed to gdebi 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

Status in gdebi package in Ubuntu:
  Confirmed
Status in nautilus package in Ubuntu:
  Confirmed

Bug description:
  Steps to reproduce:
  1. Install Ubuntu 18.04 LTS or Ubuntu 18.10
  2. Download some deb-file to the desktop - for with help of terminal:

       cd ~/Desktop
       apt-get download meld

  3. Install GDebi package installer with

       sudo apt install gdebi

  4. Select deb-file on desktop, make right click on it, select *Open
  With Other Application* select *GDebi Package Installer*, click
  *Select*, in opened window select *Install Package*

  Expected results:
  * GDebi asks user (sudo-able) password and installs the package

  Actual results:
  * GDebi do not ask user for password and do not install the package

  Notes:
  * first seen on AskUbuntu ( https://askubuntu.com/q/1099387/66509 )
  * you can view my screencast to get first person view :)

  ProblemType: Bug
  DistroRelease: Ubuntu 18.10
  Package: nautilus 1:3.26.4-0ubuntu7
  ProcVersionSignature: Ubuntu 4.18.0-12.13-generic 4.18.17
  Uname: Linux 4.18.0-12-generic x86_64
  ApportVersion: 2.20.10-0ubuntu13.1
  Architecture: amd64
  CurrentDesktop: ubuntu:GNOME
  Date: Mon Dec 10 23:14:16 2018
  GsettingsChanges:

  SourcePackage: nautilus
  UpgradeStatus: No upgrade log present (probably fresh install)
  usr_lib_nautilus:

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/gdebi/+bug/1807761/+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

Reply via email to