From 1a28394b6e472fc6b99a5fd38f87d5df0dadd180 Mon Sep 17 00:00:00 2001 From: skeezix Date: Thu, 15 Apr 2010 11:16:01 -0400 Subject: [PATCH] mm calls EDs new switch-gui script --- minimenu/mmui.c | 25 ++++++------------------- minimenu/skin/default/about.txt | 8 +++++++- minimenu/skin/perty/about.txt | 8 +++++++- 3 files changed, 20 insertions(+), 21 deletions(-) diff --git a/minimenu/mmui.c b/minimenu/mmui.c index 7d2815f..6b80599 100644 --- a/minimenu/mmui.c +++ b/minimenu/mmui.c @@ -1214,13 +1214,12 @@ void ui_process_input ( unsigned char block_p ) { "Cache previews to SD now", "Run xfce4 from Minimenu", "Run a terminal/console", - "Exit and run xfce4", - "Exit and run pmenu", + "Switch preferred GUI", "Quit (<- beware)", "Select a Minimenu skin", "About Minimenu" }; - int sel = ui_modal_single_menu ( opts, 11, "Minimenu", "Enter to select; other to return." ); + int sel = ui_modal_single_menu ( opts, 10, "Minimenu", "Enter to select; other to return." ); char buffer [ 100 ]; if ( sel == 0 ) { @@ -1280,29 +1279,17 @@ void ui_process_input ( unsigned char block_p ) { } } else if ( sel == 6 ) { - // set env to xfce - sprintf ( buffer, "echo startxfce4 > /tmp/gui.load" ); - system ( buffer ); + char buffer [ PATH_MAX ]; + sprintf ( buffer, "%s %s\n", MM_RUN, "/usr/pandora/scripts/op_switchgui.sh" ); emit_and_quit ( buffer ); - //sprintf ( buffer, "sudo poweroff" ); - //system ( buffer ); - exit ( 0 ); } else if ( sel == 7 ) { - // set env to pmenu - sprintf ( buffer, "echo pmenu > /tmp/gui.load" ); - system ( buffer ); - emit_and_quit ( buffer ); - //sprintf ( buffer, "sudo poweroff" ); - //system ( buffer ); - exit ( 0 ); - } else if ( sel == 8 ) { emit_and_quit ( MM_QUIT ); - } else if ( sel == 9 ) { + } else if ( sel == 8 ) { // select skin if ( ui_pick_skin() ) { emit_and_quit ( MM_RESTART ); } - } else if ( sel == 10 ) { + } else if ( sel == 9 ) { // about } diff --git a/minimenu/skin/default/about.txt b/minimenu/skin/default/about.txt index 5eafbf5..3ade66c 100644 --- a/minimenu/skin/default/about.txt +++ b/minimenu/skin/default/about.txt @@ -1,9 +1,14 @@ Thanks to our patient wives and kids! +(I'm old school, not old) minimenu is for DaveC! +EvilDragon +Craigix +mfk +MWeston + Greetz to the unsung heroes! -(I'm old school, not old) DJWillis notaz @@ -11,6 +16,7 @@ vimacs skeezix cpasjuste pickle +squidge mr spiv rlyeh diff --git a/minimenu/skin/perty/about.txt b/minimenu/skin/perty/about.txt index 5eafbf5..3ade66c 100644 --- a/minimenu/skin/perty/about.txt +++ b/minimenu/skin/perty/about.txt @@ -1,9 +1,14 @@ Thanks to our patient wives and kids! +(I'm old school, not old) minimenu is for DaveC! +EvilDragon +Craigix +mfk +MWeston + Greetz to the unsung heroes! -(I'm old school, not old) DJWillis notaz @@ -11,6 +16,7 @@ vimacs skeezix cpasjuste pickle +squidge mr spiv rlyeh -- 2.39.2