Enlightenment CVS committal
Author : lordchaos
Project : e17
Module : proto
Dir : e17/proto/entropy/src/plugins
Modified Files:
layout_etk_simple.c
Log Message:
* Oops - not everyone's home directory is /home/chaos
===================================================================
RCS file:
/cvsroot/enlightenment/e17/proto/entropy/src/plugins/layout_etk_simple.c,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -3 -r1.3 -r1.4
--- layout_etk_simple.c 20 Feb 2006 06:48:36 -0000 1.3
+++ layout_etk_simple.c 20 Feb 2006 07:42:51 -0000 1.4
@@ -206,6 +206,8 @@
entropy_generic_file* file;
Etk_Tree_Col* col;
Etk_Tree_Row* row;
+ char* home = getenv("HOME");
+ char* pos;
/*Entropy related init */
@@ -250,8 +252,13 @@
dlsym (structure->dl_ref, "entropy_plugin_init");
file = entropy_generic_file_new();
- strcpy(file->path, "/home");
- strcpy(file->filename, "chaos");
+
+ pos = strrchr(home, '/');
+ *pos = '\0';
+ pos++;
+
+ strcpy(file->path, home);
+ strcpy(file->filename, pos);
strcpy(file->uri_base, "posix");
strcpy(file->mime_type, "file/folder");
@@ -272,6 +279,7 @@
dlsym (structure->dl_ref, "entropy_plugin_init");
file = entropy_generic_file_new();
+
strcpy(file->path, "/");
strcpy(file->filename, "/");
strcpy(file->uri_base, "posix");
-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems? Stop! Download the new AJAX search engine that makes
searching your log files as easy as surfing the web. DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642
_______________________________________________
enlightenment-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs