Bug 453548

Summary: kdiff3 crashes fluxbox-xdg-menu
Product: [Fedora] Fedora Reporter: Rob Lazzurs <rob>
Component: kdiff3Assignee: Neal Becker <ndbecker2>
Status: CLOSED NOTABUG QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: low Docs Contact:
Priority: low    
Version: 9   
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2008-07-01 14:50:49 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Rob Lazzurs 2008-07-01 09:43:40 UTC
Description of problem:

The .desktop file from kdiff3 causes fluxbox-xdg-menu to fail

This is due to the Exec being missing from the file. Adding in the line below
resolved the issue

7d6
< Exec=kdiff3

Version-Release number of selected component (if applicable):


How reproducible:

Everytime

Steps to Reproduce:
1. Install kdiff3 and fluxbox
2. Run fluxbox-xdg-menu

  
Actual results:

Traceback (most recent call last):
  File "/usr/bin/fluxbox-xdg-menu", line 262, in <module>
    main(sys.argv[1:])
  File "/usr/bin/fluxbox-xdg-menu", line 248, in main
    parseMenu(menu,wm,use_icons,theme)
  File "/usr/bin/fluxbox-xdg-menu", line 115, in parseMenu
    parseMenu(entry,wm,use_icons,theme,depth)
  File "/usr/bin/fluxbox-xdg-menu", line 124, in parseMenu
    print "%s[exec] (%s) {%s} " % ( (depth*"\t"), appname,
entry.DesktopEntry.getExec().split()[0] )
IndexError: list index out of range

Expected results:

Menu generated

Additional info:

Comment 1 Rob Lazzurs 2008-07-01 09:44:20 UTC
I forgot to include the version, sorry.

kdiff3-0.9.92-13.fc9.i386

Comment 2 Neal Becker 2008-07-01 11:10:16 UTC
Sorry, I don't understand.  

I have
rpm -q kdiff3
kdiff3-0.9.92-13.fc9.x86_64

/usr/share/applications/fedora-kdiff3.desktop says:
Exec=kdiff3 %i %m -caption "%c"

You don't have this?

Comment 3 Rob Lazzurs 2008-07-01 11:32:39 UTC
I have that file and it is correct however the file fluxbox-xdg-menu is having
an issue with is /usr/share/applications/kde/kdiff3plugin.desktop

Comment 4 Neal Becker 2008-07-01 12:57:08 UTC
This doesn't seem to be the correct fix:

+ desktop-file-install --vendor= --dir /var/tmp/rpm/kdiff3-0.9.92-15.fc10-root-
/var/tmp/rpm/kdiff3-0.9.92-15.fc10-root-
/var/tmp/rpm/kdiff3-0.9.92-15.fc10-root-
present in group "Desktop Entry", but the type is "Service" while this key is
only valid for type "Application"
Error on file "/var/tmp/rpm/kdiff3-0.9.92-15.fc10-root-
created desktop file
error: Bad exit status from /var/tmp/rpm/rpm-tmp.24814 (%install)


Comment 5 Rob Lazzurs 2008-07-01 14:18:18 UTC
Agreed,

I would suggest then that maybe the fluxbox-xdg-menu should be excluding that
type of .desktop file however it is not.

Should this be a bug filled against that package, sorry but I am unaware of the
Fedora menu policy.

Just let me know what I have to do.

Thanks again.

Comment 6 Neal Becker 2008-07-01 14:50:49 UTC
Sorry, I'm no expert.  Could you please ask on fedora-devel list?  If you don't
have access, I could do it for you.