Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 96028 - Incorrect icon launchers in XFCE menus
Summary: Incorrect icon launchers in XFCE menus
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: XFCE Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-06-13 19:33 UTC by Evan Goldenberg
Modified: 2006-02-17 13:00 UTC (History)
2 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Evan Goldenberg 2005-06-13 19:33:09 UTC
When installing OpenOffice.org 2.0 Beta, the icons are places int he XFCE menus.
However, each icon is set to launch the default OOo startup screen, rather than
their individual applications. Clicking the Writer icon does not launch writer,
but rather the standard OOo screen. The same goes for all icons in the XFCE menus.

Reproducible: Didn't try
Steps to Reproduce:
1.
2.
3.



Expected Results:  
Each individual icon in the menu should launch its specified application. For
example, the OO Impress icon should launch OO Impress, not the OOo default screen.
Comment 1 basic 2005-10-12 03:11:38 UTC
the trouble here is caused by this function in xfdestop:
line 89 of modules/menu/desktop-menu-dentry.c
/* we don't want most command-line parameters if they're given. */
gchar *
_sanitise_dentry_cmd(gchar *cmd)
{
	gchar *p;
	
	/* this is the naive approach: if there's a '%' character in there, we're
	 * going to strip all parameters.  this may not be the best thing to do,
	 * but anything smarter is non-trivial and slow. */
	if(cmd && strchr(cmd, '%') && (p=strchr(cmd, ' ')))
		*p = 0;
	
	return cmd;
}


the easy way around it is to get openoffice/openoffice-bin to use "oowriter2 %U"
rather than "ooffice2 -writer %U" in the .desktop files. The proper fix is to do
proper filtering out parameters listed in
http://standards.freedesktop.org/desktop-entry-spec/latest/ar01s06.html .
Comment 2 Congtat Cia 2006-02-09 14:14:14 UTC
I had this problem before but it seems to start the correct application now with xfce-4.2.3 & OOo-2.0.1. Maybe this bug has been solved in the latest version.
Comment 3 Brad Cowan (RETIRED) gentoo-dev 2006-02-17 13:00:54 UTC
please try latest version and reopen if still a problem, thanks