[Reportbug-maint] Bug#862566: Pick a package name by clicking on a window

Enrico Zini enrico at debian.org
Sun May 14 16:36:17 UTC 2017

Package: reportbug
Version: 7.1.6
Severity: wishlist


suppose I want to report a bug on a GUI software, but the window title
says "Video Player": what package name should I use?

This "simple" one-liner lets you pick a window and outputs its package name to

dpkg -S $(readlink /proc/$(xwininfo -wm|sed -nre 's/.+Process id: ([0-9]+).+/\1/p')/exe) | cut -d: -f1

Can you add it to reportbug, at least in its GUI interface? Like, when it asks
for the package name, there could be a button saying something like "select on
screen" that does that.

Today when showing people how to report bugs, the issue came out, and it turns
out that technically it could be easily solvable.


-- Package-specific info:
** Environment settings:
DEBEMAIL="enrico at debian.org"
EMAIL="enrico at enricozini.org"

** /home/enrico/.reportbugrc:
mode expert

-- System Information:
Debian Release: 9.0
  APT prefers testing
  APT policy: (500, 'testing')
Architecture: amd64
Foreign Architectures: i386

Kernel: Linux 4.9.0-2-amd64 (SMP w/4 CPU cores)
Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages reportbug depends on:
ii  apt                1.4.1
ii  python3-reportbug  7.1.6
pn  python3:any        <none>

reportbug recommends no packages.

Versions of packages reportbug suggests:
pn  claws-mail                               <none>
ii  debconf-utils                            1.5.60
ii  debsums                                  2.2
ii  dlocate                                  1.07+nmu1
pn  emacs23-bin-common | emacs24-bin-common  <none>
ii  file                                     1:5.29-3
ii  gir1.2-gtk-3.0                           3.22.11-1
ii  gir1.2-vte-2.91                          0.46.1-1
ii  gnupg                                    2.1.18-6
ii  postfix [mail-transport-agent]           3.1.4-4
ii  python3-gi                               3.22.0-2
ii  python3-gi-cairo                         3.22.0-2
pn  python3-gtkspellcheck                    <none>
ii  python3-urwid                            1.3.1-2+b1
ii  xdg-utils                                1.1.1-1

Versions of packages python3-reportbug depends on:
ii  apt                1.4.1
ii  file               1:5.29-3
ii  python3-debian     0.1.30
ii  python3-debianbts  2.6.1
ii  python3-requests   2.12.4-1
pn  python3:any        <none>

python3-reportbug suggests no packages.

-- no debconf information

More information about the Reportbug-maint mailing list