| Summary: | >=gnome-base/gnome-panel 2.26.3 opens Places->Home (and others) with the kde4 file manager if kde4 is installed | ||
|---|---|---|---|
| Product: | Gentoo Linux | Reporter: | Marcello Magaldi <magowiz> |
| Component: | [OLD] GNOME | Assignee: | Gentoo Linux Gnome Desktop Team <gnome> |
| Status: | RESOLVED TEST-REQUEST | ||
| Severity: | normal | ||
| Priority: | High | ||
| Version: | unspecified | ||
| Hardware: | AMD64 | ||
| OS: | Linux | ||
| URL: | https://bugzilla.gnome.org/show_bug.cgi?id=631386 | ||
| Whiteboard: | |||
| Package list: | Runtime testing required: | --- | |
| Attachments: | file manager wrapper script | ||
|
Description
Marcello Magaldi
2009-10-18 10:00:14 UTC
I added also kde@gentoo.org to cc since I really don't know if the cause of this problem is in GNOME or in KDE. I reported this problem on gnome and kde bugzilla : https://bugs.kde.org/show_bug.cgi?id=211090 https://bugzilla.gnome.org/show_bug.cgi?id=598934 This is classical problem I suffered years ago with thunar that is not fixed because no upstream wants to resolve it (xfce blame on gnome, gnome blame on xfce... well, you know...) anyway, I don't think this is a regression over previous gnome-panel versions I think that this is a dupe of: http://bugs.gentoo.org/show_bug.cgi?id=170630 https://bugzilla.gnome.org/show_bug.cgi?id=418760 http://bugzilla.xfce.org/show_bug.cgi?id=3016 well, all of them like to blame on my setup, but I really disagree since I have seen many other people suffering this problem even on different distributions (like mandriva) Seems that, after installing a new file manager, it's "preferred" by gnome-panel over nautilus, and you can workaround the problem simply re-selecting nautilus as default, if I don't misremember you can change application for opening folder simply righ clicking on a folder (In reply to comment #4) > Seems that, after installing a new file manager, it's "preferred" by > gnome-panel over nautilus, and you can workaround the problem simply > re-selecting nautilus as default, if I don't misremember you can change > application for opening folder simply righ clicking on a folder Yes I know that re-selecting nautilus as default can fix this and I think the right click on a folder works only internally to a file-manager, for example if you choose the association to a file-manager to open folders in nautilus by right-clicking on a folder in nautilus, every time you open nautilus and click on a folder it will opens the folder in nautilus (or in gnome desktop that is managed by nautilus), but this doesn't influence Places->Home behaviour. The problem in actual configuration is that there isn't a solution to use on the same profile nautilus as default file manager only for gnome, and dolphin as default file manager only for kde4. The problem that I don't understand is why other file managers take precedence over nautilus :-/, seems that it occurs just after installing new file manager, and I have seen a similar problem with eog and gthumb (getting gthumb as default jus after installing it), but I haven't investigate it :-( (In reply to comment #6) > The problem that I don't understand is why other file managers take precedence > over nautilus :-/, sounds like bug #242460, see dang's explanation of the problem. If the application does not handle user's preferences, then it will always fail to select the proper/sensible program. Good catch, maybe http://bugs.gentoo.org/show_bug.cgi?id=242460#c19 could solve this (In reply to comment #8) > Good catch, maybe http://bugs.gentoo.org/show_bug.cgi?id=242460#c19 could solve > this > that solution had no effects here , I created a file in /usr/share/applications as suggested with : [Default Applications] inode/directory=nautilus but I have the same exactly problem as before. Anyway someone pointed me to xdg-open but xdg-open is a script that accordingly to DE opens a different script, for example gnome-open if the DE is gnome. So the problem could be in gnome-open and the kfmclient exec for kde. I start to think that for having each DE to use their own file manager I should create a file-manager wrapper script .... Created attachment 212393 [details]
file manager wrapper script
I wrote a script that detects the running DE , (I simply copied that method from xdg-open) and read a config file named /etc/fmwrapper.conf and it opens the configured per-desktop file manager accordingly. It is really simple and for now it uses a wide-system settings but it can easily modified to work for per-user settings. I hope that someone will find it useful. To solve mine issue I simply set in kde fav applications this script as my favourite file-manager.
For now it works for GNOME,KDE and XFCE.
Removing KDE, according to comment 4 it is a GNOME prob. CC us back if we can help somehow Yeah, probably both file managers install a .desktop file that claims to handle x-directory/normal and inode/directory, and at that point it's similar to 242460. I wonder if the defaults.list can be applied desktop specifically, so that it will just not end up then KDE having the same problem if we add it to some defaults.list as nautilus-folder-handler.desktop Or maybe gnome-panel could be coerced to use x-directory/gnome-default-handler MIME type for opening folders like that? Like I said when the question prompted on the chan last time, we can apply the debian solution that consists in installing defaults.list in a desktop specific XDG_DATA_DIR, it seems to work fine for the use case, not sure how it would end up for people having multiple desktops on the same machine though, but they get to do some more admin work anyway. http://bugzilla.xfce.org/show_bug.cgi?id=1854 says it was fixed in thunar stopping it from registering x-directory/gnome-default-handler, is KDE4 filemanager registering it? What MIMEs is it registering? People, please try to append: inode/directory=nautilus-folder-handler.desktop to /usr/share/applications/defaults.list and report if it fixes this problem *gnome-session-2.32.1-r1 (27 Mar 2011) 27 Mar 2011; Pacho Ramos <pacho@gentoo.org> +files/15-xdg-data-gnome, +gnome-session-2.32.1-r1.ebuild, +files/defaults.list, files/Gnome: Provide a defaults.list and handle XDG_DATA_DIRS properly. Thanks to Nirbheek for his help. Please retry then on a new created user account with gnome-session-2.32.1-r1 |