Discovering the package of an open window

Michael Spencer spencers1993 at
Fri Jan 18 17:32:16 UTC 2013

On 01/18/2013 10:54 AM, Martin Pitt wrote:
> 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
Okay, that makes sense. What I'm trying to do is identify the package
and then access the Launchpad entry for the package. But for example,
Libreoffice seems to lump all the libreoffice packages into one
Launchpad entry, Is
there an easy way to find the Launchpad entry for a particular package?


Michael Spencer

If thou shalt confess with thy mouth the Lord Jesus, and shalt believe in thine heart that God hath raised him from the dead, thou shalt be saved.
- Romans 10:9

Whatsoever ye do in word or deed, do all in the name of the Lord Jesus, giving thanks to God and the Father by him.
- Colossians 3:17

More information about the Ubuntu-devel-discuss mailing list