Re: Discovering the package of an open window

2013-01-18 Thread Michael Spencer
On 01/18/2013 01:07 PM, Colin Watson wrote:
> On Fri, Jan 18, 2013 at 11:32:16AM -0600, Michael Spencer wrote:
>> 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, https://launchpad.net/ubuntu/+source/libreoffice. Is
>> there an easy way to find the Launchpad entry for a particular package?
> Launchpad generally organises binary packages (e.g. libreoffice-core,
> etc.) by the source package that built them (e.g. libreoffice).  The
> Package: line of 'apt-cache showsrc BINARY-PACKAGE-NAME' shows you the
> source package name.
>

Perfect! Thank you!

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


-- 
Ubuntu-devel-discuss mailing list
Ubuntu-devel-discuss@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-devel-discuss


Re: Discovering the package of an open window

2013-01-18 Thread Colin Watson
On Fri, Jan 18, 2013 at 11:32:16AM -0600, Michael Spencer wrote:
> 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, https://launchpad.net/ubuntu/+source/libreoffice. Is
> there an easy way to find the Launchpad entry for a particular package?

Launchpad generally organises binary packages (e.g. libreoffice-core,
etc.) by the source package that built them (e.g. libreoffice).  The
Package: line of 'apt-cache showsrc BINARY-PACKAGE-NAME' shows you the
source package name.

-- 
Colin Watson   [cjwat...@ubuntu.com]

-- 
Ubuntu-devel-discuss mailing list
Ubuntu-devel-discuss@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-devel-discuss


Re: Discovering the package of an open window

2013-01-18 Thread Michael Spencer
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//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, https://launchpad.net/ubuntu/+source/libreoffice. Is
there an easy way to find the Launchpad entry for a particular package?

Thanks,

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


-- 
Ubuntu-devel-discuss mailing list
Ubuntu-devel-discuss@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-devel-discuss


Re: Discovering the package of an open window

2013-01-18 Thread Martin Pitt
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//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)

-- 
Ubuntu-devel-discuss mailing list
Ubuntu-devel-discuss@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-devel-discuss


Re: Discovering the package of an open window

2013-01-18 Thread Jonathan Lange
On 18 January 2013 16:39, Michael Spencer  wrote:
> 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//exe points too, and then running apt-file search on that.
>
> However, for some programs, like LibreOffice Writer, I get
> libreoffice-core, not libreoffice-writer.
>
> For the program I'm writing, Contributor Console (written in python),
> the executable is /usr/bin/python2.7, even though I launched it with the
> command contributor-console.
>
> So, what is the best way to accurately discover the package a program is
> in by clicking on an open window?
>

I have a really crappy program that already does this at:
https://launchpad.net/start-hacking

A quick look at the code should answer your question.

cheers,
jml

-- 
Ubuntu-devel-discuss mailing list
Ubuntu-devel-discuss@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-devel-discuss


Discovering the package of an open window

2013-01-18 Thread Michael Spencer
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//exe points too, and then running apt-file search on that.

However, for some programs, like LibreOffice Writer, I get
libreoffice-core, not libreoffice-writer.

For the program I'm writing, Contributor Console (written in python),
the executable is /usr/bin/python2.7, even though I launched it with the
command contributor-console.

So, what is the best way to accurately discover the package a program is
in by clicking on an open window?

Thank you,

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


-- 
Ubuntu-devel-discuss mailing list
Ubuntu-devel-discuss@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-devel-discuss