Enlightenment CVS committal Author : raster Project : e17 Module : apps/e
Dir : e17/apps/e/src/bin Modified Files: e_main.c Log Message: i couldn't resist! =================================================================== RCS file: /cvsroot/enlightenment/e17/apps/e/src/bin/e_main.c,v retrieving revision 1.75 retrieving revision 1.76 diff -u -3 -r1.75 -r1.76 --- e_main.c 7 May 2005 13:50:38 -0000 1.75 +++ e_main.c 9 May 2005 06:50:36 -0000 1.76 @@ -34,6 +34,8 @@ E_Path *path_init = NULL; E_Path *path_icons = NULL; int restart = 0; +int good = 0; +int evil = 0; /* local subsystem globals */ #define MAX_LEVEL 32 @@ -72,12 +74,8 @@ if (getenv("NOSPLASH")) nosplash = 1; if (getenv("NOSTARTUP")) nostartup = 1; + if (getenv("RESTART")) after_restart = 1; - if (getenv("RESTART")) - { - printf("after restart!!!\n"); - after_restart = 1; - } e_util_env_set("RESTART", "1"); e_intl_init(); @@ -100,12 +98,28 @@ if (sscanf(argv[i], "%ix%i+%i+%i", &w, &h, &x, &y) == 4) e_xinerama_fake_screen_add(x, y, w, h); } + else if (!strcmp(argv[i], "-good")) + { + good = 1; + evil = 0; + } + else if (!strcmp(argv[i], "-evil")) + { + good = 0; + evil = 1; + } + else if (!strcmp(argv[i], "-psychotic")) + { + good = 1; + evil = 1; + } else if ((!strcmp(argv[i], "-h")) || (!strcmp(argv[i], "-help")) || (!strcmp(argv[i], "--help"))) { printf - (_("Options:\n" + (_( + "Options:\n" "\t-display DISPLAY\n" "\t\tConnect to display named DISPLAY.\n" "\t\tEG: -display :1.0\n" @@ -114,7 +128,14 @@ "\t\tgiven the geometry. Add as many as you like. They all\n" "\t\treplace the real xinerama screens, if any. This can\n" "\t\tbe used to simulate xinerama.\n" - "\t\tEG: -fake-xinerama-screen 800x600+0+0 -fake-xinerama-screen 800x600+800+0\n") + "\t\tEG: -fake-xinerama-screen 800x600+0+0 -fake-xinerama-screen 800x600+800+0\n" + "\t-good\n" + "\t\tBe good.\n" + "\t-evil\n" + "\t\tBe evil.\n" + "\t-psychotic\n" + "\t\tBe psychotic.\n" + ) ); exit(0); } ------------------------------------------------------- This SF.Net email is sponsored by: NEC IT Guy Games. Get your fingers limbered up and give it your best shot. 4 great events, 4 opportunities to win big! Highest score wins.NEC IT Guy Games. Play to win an NEC 61 plasma display. Visit http://www.necitguy.com/?r=20 _______________________________________________ enlightenment-cvs mailing list enlightenment-cvs@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs