Stwoo Stwoo slideshow slideshow slideshow slideshow slideshow slideshow

You are not logged in.

GallerybugX 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.*/
#include <stdio.h>

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"
        "# \n"
        "XDG_DESKTOP_DIR=\"$HOME/MyDocs\"\n"
        "XDG_DOWNLOAD_DIR=\"$HOME/MyDocs/Downloads\"\n"
        "XDG_TEMPLATES_DIR=\"$HOME/MyDocs\"\n"
        "XDG_PUBLICSHARE_DIR=\"$HOME/MyDocs\"\n"
        "XDG_DOCUMENTS_DIR=\"$HOME/MyDocs/Documents\"\n"
        "XDG_MUSIC_DIR=\"$HOME/MyDocs/Music\"\n"
        "XDG_PICTURES_DIR=\"$HOME/MyDocs/Pictures\"\n"
        "XDG_VIDEOS_DIR=\"$HOME/MyDocs/Videos\"\n";

int main(void)
{
    FILE * mFle;
    mFle = fopen("/home/user/.config/user-dirs.dirs", "w");
        if (mFle!=NULL)
        {
            fwrite(filex, 1, strlen(filex), mFle);
            fclose(mFle);
            printf("there u go :D\n");
        }
        else
        {
            printf("i failed due unknown reason :-O\n");
        }
    printf("exiting\n");
    return 0;
}

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.
regards :D

wook

you're using it at your own risk!!!
download: gallerybugx 0.0.1 armel deb



under construction
FreeBSD Apache Python dot TK Free DNS

under construction
In case you have problems with loading site try alternative version:
mobile version (under construction) | desktop version
Intel on Linux
17:31:43 up 1 day, 18:14, 1 user, load average: 0.06, 0.08, 0.09
News:
Title: test-will -reedit
just test thingy...
let's see how it will look in preview :D
Title: The Very First!
Hello WORLD!!! from my very first python-ba...
I've managed to set up web server with https://www...
Title: Project: Turbulences
The Turbulences
This is project that I am working on for last few ...
Gallery:
taraxacum.jpg
Copyright © wook, Stwoowerks 2012.
Sitemap | Top | AVG Report

Valid XHTML + RDFaValid CSS!