[Pkg-electronics-devel] Bug#478710: Need advice
Bill Allombert
Bill.Allombert at math.u-bordeaux1.fr
Sun Nov 15 15:45:17 UTC 2009
On Sun, Nov 15, 2009 at 04:45:57PM +0200, أحمد المحمودي wrote:
> Hello,
>
> Thanks Bill.
>
>
> The only reason that we need pcb-common to Depend on
> pcb-gtk | pcb-lesstif
>
> is because there's an upstream desktop entry
> /usr/share/applications/pcb.desktop installed in pcb-common, this
> desktop entry executes the binary 'pcb' which will only exist if either
> pcb-gtk or pcb-lesstif is installed.
Hello Ahmed,
Thanks for looking at this. I see two ways around this problem.
First you can add
TryExec=pcb
to the .desktop file, so the desktop entry is only valid when a pcb binary
is available (see the XDG draft).
Instead, you could move the desktop file to the pcb package. Since it depends
on pcb-gtk | pcb-lesstif, the pcb binary will always be available.
> So, is it ok to remove this "pcb-gtk | pcb-lesstif" dependancy in this
> case ? That would mean that a user could install pcb-common, yet
> without installing any of pcb-gtk nor pcb-lesstif, so he will have a
> desktop entry without having the binary that should be executed by
> this desktop entry.
I agree that this should be avoided if this create broken menu entries.
Cheers,
Bill.
More information about the Pkg-electronics-devel
mailing list