Enlightenment CVS committal

Author  : devilhorns
Project : e_modules
Module  : screenshot

Dir     : e_modules/screenshot/src


Modified Files:
        e_mod_main.c 


Log Message:
Set the default folder location to be ~/Desktop so that screenshots will
show on the new users shiny efm desktop :)

===================================================================
RCS file: /cvs/e/e_modules/screenshot/src/e_mod_main.c,v
retrieving revision 1.11
retrieving revision 1.12
diff -u -3 -r1.11 -r1.12
--- e_mod_main.c        23 Jan 2008 23:49:34 -0000      1.11
+++ e_mod_main.c        25 Jan 2008 01:42:07 -0000      1.12
@@ -290,6 +290,8 @@
 static void 
 _cfg_new(void) 
 {
+   char buf[4096];
+
    ss_cfg = E_NEW(Config, 1);
    ss_cfg->version = (MOD_CONFIG_FILE_EPOCH << 16);
 
@@ -306,7 +308,8 @@
    ss_cfg->use_app = 0;
    ss_cfg->use_bell = 1;
    ss_cfg->use_thumb = 0;
-   ss_cfg->location = evas_stringshare_add(e_user_homedir_get());
+   snprintf(buf, sizeof(buf), "%s/Desktop", e_user_homedir_get());
+   ss_cfg->location = evas_stringshare_add(buf);
    ss_cfg->filename = NULL;
    ss_cfg->app = NULL;
    IFMODCFGEND;



-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
enlightenment-cvs mailing list
enlightenment-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs

Reply via email to