Discovering the package of an open window
Martin Pitt
martin.pitt at ubuntu.com
Fri Jan 18 16:54:09 UTC 2013
Michael Spencer [2013-01-18 10:39 -0600]:
> What is the best way to discover the package a program is in by clicking
> on an open window?
>
> So far I've been using xprop to get the PID of the window, reading where
> /proc/<PID>/exe points too, and then running apt-file search on that.
That's by and large how I do it, although dpkg -S /path/to/program
doesn't require apt-file to be installed.
> However, for some programs, like LibreOffice Writer, I get
> libreoffice-core, not libreoffice-writer.
That's actually correct. LibreOffice is really by and large one big
binary with different "modes" for Writer, etc., and it is indeedn
libreoffice-core which ships /usr/lib/libreoffice/program/soffice.bin.
Martin
--
Martin Pitt | http://www.piware.de
Ubuntu Developer (www.ubuntu.com) | Debian Developer (www.debian.org)
More information about the Ubuntu-devel-discuss
mailing list