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 134022 - Start here link gets wrong permissions on creation
Start here link gets wrong permissions on creation
Status: RESOLVED FIXED
Product: nautilus
Classification: Core
Component: general
0.x.x [obsolete]
Other other
: Normal minor
: ---
Assigned To: Nautilus Maintainers
Nautilus Maintainers
Depends on:
Blocks:
 
 
Reported: 2004-02-10 18:10 UTC by Julio Merino
Modified: 2004-12-22 21:47 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Sample patch (377 bytes, patch)
2004-02-10 18:10 UTC, Julio Merino
none Details | Review

Description Julio Merino 2004-02-10 18:10:11 UTC
When starting nautilus for the first time, it creates the ~/Desktop folder
and copies the starthere.desktop file inside it.  The problem is that the
copy gets the same permissions as the original file.  In (at least) the
pkgsrc packaging system, system wide files get installed with restrictive
permissions (no write), so starthere.desktop gets 444 mode when copied in
~/Desktop.

This results in the "Start Here" icon having the "write denied" icon over
it, which looks ugly after the first bootup.  The solution is to change the
permissions of the copied file to 644, to ensure we get something sane.

At first, I used system(2) to call /bin/chmod, but then though that
directly using chmod(2) could be better.  So, the attached patch does the
later.
Comment 1 Julio Merino 2004-02-10 18:10:30 UTC
Created attachment 24281 [details] [review]
Sample patch
Comment 2 Dave Camp 2004-04-12 19:26:41 UTC
we don't create desktop files anymore.
Comment 3 Julio Merino 2004-06-09 16:10:40 UTC
Really?  The starthere.desktop file _still_ gets copied into ~/Desktop in GNOME
2.6.1, even when starting with a completely clean home directory.

FWIW, I also tried with Fedora Core 2, aside NetBSD, and it gets copied too.
Comment 4 Julio Merino 2004-09-03 16:05:07 UTC
Oh well, just for the record, now I see that this is fixed in 2.7.92 as you said...