Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 164034 - New KDE environment variables handling breaks GNOME menus.
Summary: New KDE environment variables handling breaks GNOME menus.
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] KDE (show other bugs)
Hardware: All Linux
: High major (vote)
Assignee: Gentoo KDE team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-01-27 10:00 UTC by Christoph Brill (egore) (RESIGNED)
Modified: 2007-01-28 18:28 UTC (History)
2 users (show)

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


Attachments
kdelibs-3.5.6.ebuild (kdelibs-3.5.6.ebuild,5.81 KB, text/plain)
2007-01-27 23:26 UTC, Pacho Ramos
Details
Gnome menu after emerging only krusader (menu-emerge-krusader.png,25.50 KB, image/png)
2007-01-28 10:02 UTC, Christoph Brill (egore) (RESIGNED)
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Christoph Brill (egore) (RESIGNED) 2007-01-27 10:00:20 UTC
As of KDE 3.5.6 the applications of KDE appear in Gnome's menu. That sounds like a good idea but for me it isn't. Because:
- it completely changes the behaviour of Gnome's menu (Settings are found in the normal menu, no longer in the System->Settings; many subcategories added to menus; menus categories are renamed; etc.). It forces the KDE menu in Gnome which is a bad thing (at least for me).
- I have entries in my menu I will never use (i.e. kwin controls)
- If I "emerge -C kde-base/*" I have no entries in my gnome menu any more

All of this leads me to the idea: We need a USE flag for that! KDE users might want to have KDE's applications in Gnome and want the Gnome menu to look like KDE, but Gnome user might not want it. The cleanest way would be to handle it by a USE flag (i.e. "kde-menu-in-gnome"). I don't think that USE flags like "gnome" or "kde" would cover that correctly.

If, for example, I want to emerge kwrite and don't want it to show up in my Gnome menu, I'd have to set "-gnome" or such for every KDE package in my /etc/portage/package.use. Otherwise I would just have to say USE="-kde-menu-in-gnome" emerge kwrite.

Reproducible: Always

Steps to Reproduce:
Comment 1 Rémi Cardona (RETIRED) gentoo-dev 2007-01-27 10:05:43 UTC
dupe of 164034 ...
Comment 2 Jakub Moc (RETIRED) gentoo-dev 2007-01-27 10:13:07 UTC

*** This bug has been marked as a duplicate of bug 139697 ***
Comment 3 Christoph Brill (egore) (RESIGNED) 2007-01-27 13:40:15 UTC
This is not a duplicate since I "DON'T" want KDE stuff in Gnome. Therefore I think we need a useflag if this is done or not.
Comment 4 Richard Connon 2007-01-27 14:51:41 UTC
Hmm. At the very least GNOME needs to interpret the KDE menu items well and not include empty categories etc.
Comment 5 Christoph Brill (egore) (RESIGNED) 2007-01-27 14:56:53 UTC
Right, but I only got kwrite installed and updating it from 3.5.5 to 3.5.6 lead to many empty folders. That might be a bug in Gnome ... or in the way KDE handles it's menus. I.e. every category had an empty entry "More Apllications" (not sure about the name, I had a german translation).
Comment 6 Diego Elio Pettenò (RETIRED) gentoo-dev 2007-01-27 15:02:51 UTC
This sounds like a problem with GNOME, rather than with KDE.
Comment 7 Richard Connon 2007-01-27 15:15:21 UTC
I also have empty categories called things like "Edutainment" which are very annoying.
Comment 8 Rémi Cardona (RETIRED) gentoo-dev 2007-01-27 17:08:56 UTC
Duping ... again ...

It's actually a "bug" in how kde handles its own menus. They don't use fd.o mandated paths but use their own instead. A workaround has been found in the other bug. Please comment there instead.

Thanks

*** This bug has been marked as a duplicate of bug 139697 ***
Comment 9 Diego Elio Pettenò (RETIRED) gentoo-dev 2007-01-27 17:20:51 UTC
Rémi, care to _read_ the bug first please? It is not a dupe _of that one_.

I *fixed* that problem with 3.5.6, but fixed that, appeared this one.
Comment 10 Pacho Ramos gentoo-dev 2007-01-27 18:09:07 UTC
Please, attach a screenshot with your problem

Comment 11 Jakub Moc (RETIRED) gentoo-dev 2007-01-27 19:15:00 UTC
Stop bugging us with nonsense; you can revert this perfectly fine by setting XDG_DATA_DIRS environment variable.

*** This bug has been marked as a duplicate of bug 139697 ***
Comment 12 Jakub Moc (RETIRED) gentoo-dev 2007-01-27 19:17:42 UTC
(In reply to comment #7)
> I also have empty categories called things like "Edutainment" which are very
> annoying.

So emerge dev-util/desktop-file-utils and check the offending .desktop entried with desktop-file-validate; this bug is a nonsense and there's nothing to fix here.
Comment 13 Pacho Ramos gentoo-dev 2007-01-27 23:24:54 UTC
Reading kdelibs-3.5.6.ebuild I have viewed that two variables are being exported:
XDG_DATA_DIRS="/usr/share:${PREFIX}/share:/usr/local/share"
XDG_CONFIG_DIRS="${PREFIX}/etc/xdg"


But XDG_CONFIG_DIRS mustn't be exported, adding this variable to /etc/env.d/ causes gnome/xfce menus be desorganized.

Please, only export XDG_DATA_DIRS variable, I attach an ebuild that should work
Comment 14 Pacho Ramos gentoo-dev 2007-01-27 23:26:08 UTC
Created attachment 108323 [details]
kdelibs-3.5.6.ebuild

Please, try to re-emerge kdelibs with this ebuild, your problem should be fixed
Comment 15 Diego Elio Pettenò (RETIRED) gentoo-dev 2007-01-28 00:29:50 UTC
Thanks Pablo
Comment 16 Diego Elio Pettenò (RETIRED) gentoo-dev 2007-01-28 00:30:15 UTC
I copied the content of xdg.sh last time, that's why it was there.
Comment 17 Diego Elio Pettenò (RETIRED) gentoo-dev 2007-01-28 00:31:26 UTC
Unfortunately now I'm on my bed ready to sleep, so I'll have to fix this first time tomorrow.

And of course s/Pablo/Pacho/ because I'm too sleepy to read my mail straight ^^;
Comment 18 Pacho Ramos gentoo-dev 2007-01-28 00:43:10 UTC
(In reply to comment #17)
> And of course s/Pablo/Pacho/ because I'm too sleepy to read my mail straight
> ^^;
> 


Don't worry :-)

Thanks for fixing it :-)
Comment 19 Christoph Brill (egore) (RESIGNED) 2007-01-28 10:02:30 UTC
Created attachment 108358 [details]
Gnome menu after emerging only krusader

For those interested: This is a shot of my menu after plain emerging krusader.

PS: Thanks Diego for looking into this bug :-)
Comment 20 Diego Elio Pettenò (RETIRED) gentoo-dev 2007-01-28 11:36:47 UTC
Thanks Christoph and Pacho, it's now fixed as of kdelibs-3.5.6-r1, kdebase-3.5.6-r1 and kdebase-startkde-3.5.6-r1 (the latter only needed for who use a KDE session).
Comment 21 Gerald Normandin (RETIRED) 2007-01-28 18:01:38 UTC
Heh, i've got a rather different issue. I've not nothing as far as menus go in both Gnome and KDE. It does however seem as if Gnome is reading its menu from /usr/kde/3.5/xdg , however, nothing is in there...


All my .desktop files are, AFAIK in /usr/share/applications

A fix is much appreciated, and it should be noted that stuff like this really should be tested in ~ARCH.
Comment 22 Diego Elio Pettenò (RETIRED) gentoo-dev 2007-01-28 18:11:19 UTC
Gerald, you smoking? Because if you're trying to say that you got this problem on stable, then you don't have this problem. *Only ~arch was affected by this* and it lasted what, a couple of days?
Comment 23 Gerald Normandin (RETIRED) 2007-01-28 18:14:34 UTC
Actually, I apologize for the above comment, seems I had kde unmasked, I'll try your above fix, no alarm 8-)
Comment 24 Pacho Ramos gentoo-dev 2007-01-28 18:28:33 UTC
Please,:
emerge --sync
emerge -avuDN world

kdelibs and startks 3.5.6-r1 should correct this

Good luck!