Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 489500 - net-analyzer/wireshark-1.11.0 - KDE menu entries missing because of renamed binary due to USE=qt4
Summary: net-analyzer/wireshark-1.11.0 - KDE menu entries missing because of renamed b...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal minor (vote)
Assignee: Gentoo Netmon project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-10-26 18:25 UTC by Markus Wernig
Modified: 2013-10-27 15:16 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
desktop config file for wireshark-qt (wireshark-qt.desktop,3.32 KB, text/plain)
2013-10-26 18:27 UTC, Markus Wernig
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Markus Wernig 2013-10-26 18:25:38 UTC
When choosing USE=qt4 for wireshark, the resulting binary is called "wireshark-qt". Yet the .desktop file in /usr/share/applications/wireshark.desktop still lists:
...
TryExec=wireshark
Exec=wireshark %f
...

Which now (i.e. wiht USE=qt4) should read
...
TryExec=wireshark-qt
Exec=wireshark-qt %f

Else the Wireshark entry will never show up in the KDE menus.
(An alternative would be to symlink /usr/bin/wireshark-qt to /usr/bin/wireshark, but this could obviously have other consequences)

As the experimental Qt version of wireshark is an application quite distinct from the GTK version, it might even make sense to create a distinct .desktop file for Wireshark-Qt with the "-qt" entries. That way either installed version would show up, depending on which binary exists in /usr/bin).

I'm attaching a proposed wireshark-qt.desktop, which can be installed alongside wireshark.desktop if USE=qt4.


Reproducible: Always

Steps to Reproduce:
1. Emerge net-analyzer/wireshark with USE=qt4
2.
3.
Actual Results:  
No wireshark entries in the KDE menus, wireshark-qt needs to be run from the command line

Expected Results:  
Menu entries
Comment 1 Markus Wernig 2013-10-26 18:27:01 UTC
Created attachment 362006 [details]
desktop config file for wireshark-qt

wireshark-qt.desktop to install alongside wireshark.desktop if USE=qt4
Comment 2 Jeroen Roovers (RETIRED) gentoo-dev 2013-10-27 14:44:29 UTC
Comment on attachment 362006 [details]
desktop config file for wireshark-qt

It's probably easier to use sed here to create a new .desktop file. Also, it is not a patch.
Comment 3 Jeroen Roovers (RETIRED) gentoo-dev 2013-10-27 15:16:03 UTC
Should be fixed in -r2. Thanks for the report!