is developed because nokia messed up tracker, so that many users lost ability to "update" images and music, even messages and contacts.
This is due to error in tracker, and tracker would corrupt databases so that each section had to be reseted.
Since nokia never introduced fix for this, we had to make workaround because only solution was to reflash phone with removal of all data on device.
Luckily Ibrakhalifa from TMO claimed that old clean backup will fix problem, and yes, I asked for it, so, I've found that user-dirs.dirs are different in corrupted and in fixed version, so, I extracted file from his backup and made it sort-of available for all users...
But, there was need for slightly better version of it, easier to install...so, I wrote this app.
/*code is released in intention to be useful.
it comes with no warranty of any kind.
Author can't be held for any damage that this code can cause.*/
const char *filex =
"# This file is written by xdg-user-dirs-update\n"
"# If you want to change or add directories, just edit the line you're\n"
"# interested in. All local changes will be retained on the next run\n"
"# Format is XDG_xxx_DIR=\"$HOME/yyy\", where yyy is a shell-escaped\n"
"# homedir-relative path, or XDG_xxx_DIR=\"/yyy\", where /yyy is an\n"
"# absolute path. No other format is supported.\n"
FILE * mFle;
mFle = fopen("/home/user/.config/user-dirs.dirs", "w");
fwrite(filex, 1, strlen(filex), mFle);
printf("there u go :D\n");
printf("i failed due unknown reason :-O\n");
Since code is pretty much simple like this, I didn't wanted to complicate it any more with adding some things that don't really need to be there.
Later on I find out that somewhere in /etc/ (/etc/xdg/) there's backup of this file, so...even this code could be simpler with cp
It's important to mention that file /home/user/user-dirs.dirs needs to be owned by user and not by root.
you're using it at your own risk!!!
download: gallerybugx 0.0.1 armel deb