After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 649074 - Nautilus needs X-Gnome-Provides=filemanager
Nautilus needs X-Gnome-Provides=filemanager
Status: RESOLVED WONTFIX
Product: nautilus
Classification: Core
Component: Desktop
0.x.x [obsolete]
Other Linux
: Normal normal
: ---
Assigned To: Nautilus Maintainers
Nautilus Maintainers
Depends on:
Blocks:
 
 
Reported: 2011-05-01 10:39 UTC by Jeremy Bicha
Modified: 2011-05-02 13:08 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
X-Gnome-Provides.patch (765 bytes, patch)
2011-05-01 10:39 UTC, Jeremy Bicha
none Details | Review

Description Jeremy Bicha 2011-05-01 10:39:26 UTC
Created attachment 186969 [details] [review]
X-Gnome-Provides.patch

According to https://live.gnome.org/SessionManagement/RequiredComponents , Nautilus should have a X-Gnome-Provides=filemanager field in its .desktop file. It looks to me like this is required for Nautilus to be able to draw the desktop icons. Even though Nautilus now does not do that by default, it should be possible by editing the gsetting without needing to also edit the .desktop file.
Comment 1 Matthias Clasen 2011-05-01 14:10:54 UTC
the provides is unrelated to drawing desktop icons
Comment 2 Jeremy Bicha 2011-05-01 21:05:56 UTC
Matthias, please correct me if I'm wrong. I've not been able to find documentation for this yet. The only way I know to get Nautilus to draw the desktop icons is to:

1. gsettings set org.gnome.desktop.background show-desktop-icons true
2. Add this line to nautilus.desktop
X-Gnome-Provides=filemanager
3. Edit /usr/share/gnome-session/sessions/gnome.desktop or
gnome-fallback.desktop and add this line
DefaultProvider-filemanager=nautilus
And add filemanager to the end of the RequiredProviders line.
4. Log out and log back in.

Step 3 requires step 2. If you have an  alternate easier way, let me know.

The X-Gnome-Provides is already built into the .desktop's for gnome-shell, gnome-panel, compiz, etc.
Comment 3 Cosimo Cecchi 2011-05-02 02:49:30 UTC
(In reply to comment #2)
> Matthias, please correct me if I'm wrong. I've not been able to find
> documentation for this yet. The only way I know to get Nautilus to draw the
> desktop icons is to:

Nautilus 3.0 is not a session component anymore so there's no point in it using defining that provide (filemanager is not part of any default session anyway); it seems what you want is just adding a nautilus.desktop file in your ~/.config/autostart directory, which calls into `nautilus --no-default-window`. This is what e.g. gnome-tweak-tool already does if you use it to set this option.
Comment 4 Jeremy Bicha 2011-05-02 06:43:12 UTC
Thank you! As it turns out gnome-tweak-tool does not create the autostart file and it should. But I verified that with that file, nautilus draws the desktop icons.
Comment 5 Cosimo Cecchi 2011-05-02 13:08:51 UTC
*** Bug 649063 has been marked as a duplicate of this bug. ***