Open Bug 1082717 Opened 10 years ago Updated 2 years ago

Desktop folder re-created on startup when XDG_DESKTOP_DIR="$HOME"

Categories

(Toolkit :: Startup and Profile System, defect, P5)

32 Branch
x86
Linux
defect

Tracking

()

UNCONFIRMED

People

(Reporter: julo42, Unassigned)

Details

User Agent: Mozilla/5.0 (X11; Ubuntu; Linux i686; rv:32.0) Gecko/20100101 Firefox/32.0 Build ID: 20140924084714 Steps to reproduce: If I set my desktop folder to my home by writing XDG_DESKTOP_DIR="$HOME" in ~/.config/user-dirs.dirs, a "Desktop" folder is re-created each time I start Firefox. However, if I write XDG_DESKTOP_DIR="/home/user" in the same file, the "Desktop" folder is not created anymore. Actual results: The Desktop folder is created. Expected results: It shouldn't be :)
(In reply to Loic from comment #1) > Does it work for you? > https://support.mozilla.org/en-US/questions/985990 > http://unix.stackexchange.com/questions/37922/how-to-prevent-the-auto- > creation-of-the-desktop-folder No, it doesn't quite work: if I write XDG_DESKTOP_DIR="$HOME" (as per the XDG spec), it keeps re-creating the desktop folder. However, If I write XDG_DESKTOP_DIR="/home/myuser", it works. So, the solution only works partially and doesn't quite respect the XDG spec.
Summary: desktop folder re-created on startup → Desktop folder re-created on startup when XDG_DESKTOP_DIR="$HOME"
Component: Shell Integration → Startup and Profile System
Product: Firefox → Toolkit
Priority: -- → P5
Adding a slash afterwards solves the problem (XDG_DESKTOP_DIR="$HOME/"). It seems Firefox’s support for the standard is simply incomplete, as it expects this unnecessary slash. This also means it should be relatively easy to fix.
Firefox will fallback to $HOME/Desktop if the desktop folder is unavailable from XDG user directory, for compatibility with older versions that did not support XDG. But the fallback would do more harm than good nowadays.
Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.