mv or rm of any XDG user dir causes its definition to change to wrong, oversimple $HOME/
Bug #285998 reported by
komputes
This bug affects 13 people
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
mediascanner2 |
Fix Released
|
Undecided
|
Unassigned | ||
mediascanner2 (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned | ||
xdg-user-dirs (Ubuntu) |
Confirmed
|
Low
|
Chad Miller |
Bug Description
$ rmdir ~/Videos
...
$ mkdir ~/Videos
Hours later, find apps doing crazy things in home directory.
During the elided period between rmdir and mkdir, if the XDG functions were run, the user's intent is forever lost, and its value is set to the user's home directory.
Apps can not rely on XDG functions not to lie about what the user wants. It prefers to say what exists, not now when the app is accessing it, but when the XDG functions ran. It does not provide a file descriptor for an
open_at(2) call. It provides a stale, text name of what used to exist on disk, and often not even what the user wanted.
Related branches
lp://staging/~jpakkane/mediascanner2/skipspecialhome
- James Henstridge: Approve
- PS Jenkins bot (community): Approve (continuous-integration)
-
Diff: 60 lines (+27/-5)1 file modifiedsrc/daemon/scannerdaemon.cc (+27/-5)
Changed in xdg-user-dirs (Ubuntu): | |
status: | New → Confirmed |
summary: |
- Deleting ~/Templates and rebooting makes a change in ~/.config/user- - dirs.dirs + Missing ~/Templates folder and rebooting makes a change in + ~/.config/user-dirs.dirs |
summary: |
- Missing ~/Templates folder and rebooting makes a change in - ~/.config/user-dirs.dirs + A misplaced ~/Templates folder over a reboot permanently changes the + TEMPLATES path in ~/.config/user-dirs.dirs |
Changed in xdg-user-dirs (Ubuntu): | |
assignee: | Ubuntu Desktop Bugs (desktop-bugs) → nobody |
summary: |
- A misplaced ~/Templates folder over a reboot permanently changes the - TEMPLATES path in ~/.config/user-dirs.dirs + mv or rm of an XDG user dir causes it to reset to $HOME/ |
summary: |
- mv or rm of an XDG user dir causes it to reset to $HOME/ + mv or rm of any XDG user dir causes its definition to change to wrong, + oversimple $HOME/ |
description: | updated |
Changed in xdg-user-dirs (Ubuntu): | |
assignee: | nobody → Chad Miller (cmiller) |
Changed in mediascanner2: | |
status: | New → In Progress |
Changed in mediascanner2 (Ubuntu): | |
status: | Confirmed → In Progress |
Changed in mediascanner2: | |
status: | In Progress → Fix Released |
To post a comment you must log in.
i see this clearly as a bug, see newly added duplicates.
important comments from there:
------- ------- ------- -------
i have deleted my templates folder and nautilus does not handle this very well.
clicking on "Go->Templates" brings me to my home folder.
(that is at least consistent with DIR="$HOME/ " user-dirs. dirs)
XDG_TEMPLATES_
line from .config/
however this setup is not very useful because i most certainly do not want to have my templates in my home folder (or put it the other way round: all my files as a template). and secondly, it does not work, i.e. even the files that are in my home folder are not available as templates...
i suggest that a non-existent template dir should not be changed to $HOME and i should be offered some assistance when clicking on "Go->Templates" in this case. ------- ------- -------
-------
------- ------- ------- ------- nailor. devzero. de/blog/ archives/ 26-fix- broken- gnomenautilus- template- folder. html ------- ------- -------
for future reference: i wrote up how to fix an accidentally deleted folder:
http://
-------