First Last Prev Next    No search results available      Search page      Enter new bug
Bug#: 122758
Alias:
Product:
Component:
Status: RESOLVED
Resolution: FIXED
Assigned To: Printing Team <printing@gentoo.org>
Hardware:
OS:
Version:
Priority:
Severity:
Reporter: Darcy <darcy.parks@gmail.com>
Add CC:
CC:
URL:
Summary:
Status Whiteboard:
Keywords:

Filename Description Type Creator Created Size Actions
Create a New Attachment (proposed patch, testcase, etc.) View All

Bug 122758 depends on: Show dependency tree
Bug 122758 blocks:
Votes: 0    Show votes for this bug    Vote for this bug

Additional Comments: (this is where you put emerge --info)


Not eligible to see or edit group visibility for this bug.






View Bug Activity   |   Format For Printing   |   XML   |   Clone This Bug


Description:   Opened: 2006-02-13 21:54 0000
Steps:
1. Emerge hplip with -qt.
2. Select Applications|Accessories|HP Device Manager in Gnome

Result:
Error: Cannot launch entry

This problem exists in hplip-0.9.7-r3 and hplip-0.9.8-r1.

The .desktop file runs /usr/share/hplip/toolbox, but this file doesn't exist
when the qt use flag is disabled.  In this case, the .desktop file shouldn't be
installed.

Suggested patch:

@@ -112,6 +113,8 @@
                make DESTDIR="${D}" install || die
        fi

-       dodir /usr/share/applications
-       mv "${D}"/usr/share/hplip/data/hplip.desktop
"${D}"/usr/share/applications
+       if use qt; then
+               dodir /usr/share/applications
+               mv "${D}"/usr/share/hplip/data/hplip.desktop
"${D}"/usr/share/applications
+       fi
 }

In the -qt case, the .desktop file could be removed from /usr/share/hplip/data:

@@ -90,6 +90,7 @@
                rm -f "${D}"/usr/bin/hp-toolbox
                rm -f "${D}"/usr/share/hplip/print
                rm -f "${D}"/usr/share/hplip/toolbox
+               rm -f "${D}"/usr/share/hplip/data/hplip.desktop
        fi

        if use ppds; then

------- Comment #1 From Marcelo Goes 2006-02-14 08:17:21 0000 -------
I am fine with removing this entry for -qt, but is there any reason that you
want to both install it conditionally and remove it?

------- Comment #2 From Marcelo Goes 2006-02-14 08:18:13 0000 -------
Never mind.

------- Comment #3 From Marcelo Goes 2006-02-14 08:40:40 0000 -------
Thanks, fixed in cvs.
I'm not doing a revbump because most people will not want to re-compile to have
a desktop entry removed... :-)

Cheers

First Last Prev Next    No search results available      Search page      Enter new bug