lxde / libfm

Core library of PCManFM file manager

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

"XDG_TEMPLATES_DIR is set to invalid path" warning is too noisy

jleclanche opened this issue · comments

From here:

g_warning("XDG_TEMPLATES_DIR is set to invalid path, ignoring it");

This seems to trigger every single time I open any libfm app, even if I properly set the variable.

Googling the warning, it's all over the place in every single pcmanfm startup log etc. Something seems wrong. I'm not sure it ever even worked? Either way, the warning should either be fixed, take a default or go away...

As a workaround, I modify ~/.config/user-dirs.dirs

--- /home/yen/.config/user-dirs.dirs.orig       2017-11-08 22:19:34.022490006 +0800
+++ /home/yen/.config/user-dirs.dirs    2017-11-08 22:19:40.998958987 +0800
@@ -7,7 +7,7 @@
 # 
 XDG_DESKTOP_DIR="$HOME/Documents"
 XDG_DOWNLOAD_DIR="$HOME/Documents"
-XDG_TEMPLATES_DIR="$HOME/"
+XDG_TEMPLATES_DIR="$HOME/Documents"
 XDG_PUBLICSHARE_DIR="$HOME/"
 XDG_DOCUMENTS_DIR="$HOME/Documents"
 XDG_MUSIC_DIR="$HOME/"

Of course ~/Documents should be created beforehand.