tazweb diff src/main.c @ rev 149
Fix user bookmarks on first run
author | Christophe Lincoln <pankso@slitaz.org> |
---|---|
date | Sun Apr 13 02:30:09 2014 +0200 (2014-04-13) |
parents | b499c4de5634 |
children | c4208ff6513f |
line diff
1.1 --- a/src/main.c Sat Apr 05 18:51:42 2014 +0200 1.2 +++ b/src/main.c Sun Apr 13 02:30:09 2014 +0200 1.3 @@ -522,11 +522,11 @@ 1.4 if (!g_thread_supported()) 1.5 g_thread_init(NULL); 1.6 1.7 - /* Get a default home.html if missing */ 1.8 - if (! g_file_test(CONFIG, G_FILE_TEST_EXISTS)) { 1.9 - system("install -m 0777 $HOME/.config/tazweb"); 1.10 + /* Get a default bookmarks.txt if missing */ 1.11 + if (! g_file_test(BMTXT, G_FILE_TEST_EXISTS)) { 1.12 + system("install -m 0777 -d $HOME/.config/tazweb"); 1.13 system("install -m 0666 /usr/share/tazweb/bookmarks.txt \ 1.14 - $HOME/.config/tazweb"); 1.15 + $HOME/.config/tazweb/bookmarks.txt"); 1.16 } 1.17 1.18 /* Load the start page file or the url in argument */