#862566 Pick a package name by clicking on a window

#862566#5
Date:
2017-05-14 16:36:17 UTC
From:
To:
Hello,

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
stdout:

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.


Enrico

#862566#10
Date:
2018-12-21 06:04:24 UTC
From:
To:
Dear Maintainer,

True.
It's quite technical for most users (including me) to know the package name
when reporting a bug. Clicking on a window would really make it simple.

That would eliminate having me to guess the program name (when I don't know
which) through a process manager program.