From bf1016ccbfb7c04a4b1ffb0c09ccba068e73a9dd Mon Sep 17 00:00:00 2001
From: James Meyer <james.meyer@operamail.com>
Date: Thu, 4 Oct 2012 20:25:04 -0500
Subject: wmaker_settings:  add sudo to mythvantage calls

---
 abs/core/wmaker_settings/GNUstep/Defaults/WMRootMenu  | 11 ++++++++++-
 abs/core/wmaker_settings/GNUstep/Defaults/myth_menu   | 17 -----------------
 abs/core/wmaker_settings/GNUstep/Defaults/system_menu | 16 ++++++++++++++++
 3 files changed, 26 insertions(+), 18 deletions(-)
 create mode 100644 abs/core/wmaker_settings/GNUstep/Defaults/system_menu

diff --git a/abs/core/wmaker_settings/GNUstep/Defaults/WMRootMenu b/abs/core/wmaker_settings/GNUstep/Defaults/WMRootMenu
index c09c64f..46c4f5b 100644
--- a/abs/core/wmaker_settings/GNUstep/Defaults/WMRootMenu
+++ b/abs/core/wmaker_settings/GNUstep/Defaults/WMRootMenu
@@ -2,6 +2,11 @@
   "Window Maker",
   (Applications, OPEN_MENU, "/usr/share/wm_data/GNUstep/Defaults/aux_menu"),
   (MythTV, OPEN_MENU, "/usr/share/wm_data/GNUstep/Defaults/myth_menu"),
+  (
+    "System Configuration",
+    OPEN_MENU,
+    "/usr/share/wm_data/GNUstep/Defaults/system_menu"
+  ),
   (Run..., EXEC, "%A(Run, Type command:)"),
   (
     Appearance,
@@ -135,7 +140,11 @@
     ("Save Session", SAVE_SESSION),
     ("Clear Session", CLEAR_SESSION)
   ),
-  ("Regenerate application menu", EXEC, "/usr/share/wm_data/GNUstep/wm_menu.sh"),
+  (
+    "Regenerate application menu",
+    EXEC,
+    "/usr/share/wm_data/GNUstep/wm_menu.sh"
+  ),
   ("Configure Window Maker", EXEC, WPrefs),
   ("Info Panel", INFO_PANEL),
   ("Restart Window Maker", RESTART),
diff --git a/abs/core/wmaker_settings/GNUstep/Defaults/myth_menu b/abs/core/wmaker_settings/GNUstep/Defaults/myth_menu
index 444f9f1..e626aea 100644
--- a/abs/core/wmaker_settings/GNUstep/Defaults/myth_menu
+++ b/abs/core/wmaker_settings/GNUstep/Defaults/myth_menu
@@ -1,21 +1,4 @@
 "Applications" MENU
   "MythFrontend" EXEC mythfrontend
   "MythTV setup" EXEC mythtv-setup
- "System configuration" MENU
-  "Access " EXEC mythinstall -s accesscontrol 
-  "Network " EXEC mythinstall -s network
-  "System Type " EXEC mythinstall -s hostype
-  "Screensaver " EXEC mythinstall -s screensaver
-  "Remotes " EXEC mythinstall -s ir 
-  "Add/Remove software " EXEC mythinstall -s plugins,software
-  "Shutdown settings " EXEC mythinstall -s sleep
-  "Display " EXEC mythinstall -s advancedX
-  "Advanced" EXEC mythinstall -s advanced 
-  "User accounts" EXEC mythinstall -s user
-  "Web security" EXEC mythinstall -s webuser 
-  "vnc service " EXEC mythinstall -s vnc 
-  "User accounts" EXEC mythinstall -s user
-  "File shares" EXEC mythinstall -s fileshare
- "System Configuration" END
-
 "Applications" END
diff --git a/abs/core/wmaker_settings/GNUstep/Defaults/system_menu b/abs/core/wmaker_settings/GNUstep/Defaults/system_menu
new file mode 100644
index 0000000..f810637
--- /dev/null
+++ b/abs/core/wmaker_settings/GNUstep/Defaults/system_menu
@@ -0,0 +1,16 @@
+"System Configuration" MENU
+  "Access " EXEC sudo mythinstall -s accesscontrol
+  "Network " EXEC sudo mythinstall -s network:
+  "System Type " EXEC sudo mythinstall -s hostype
+  "Screensaver " EXEC sudo mythinstall -s screensaver
+  "Remotes " EXEC sudo mythinstall -s ir
+  "Add/Remove software " EXEC sudo mythinstall -s plugins,software
+  "Shutdown settings " EXEC sudo mythinstall -s sleep
+  "Display " EXEC sudo mythinstall -s advancedX
+  "Advanced" EXEC sudo mythinstall -s advanced
+  "User accounts" EXEC sudo mythinstall -s user
+  "Web security" EXEC sudo mythinstall -s webuser
+  "vnc service " EXEC sudo mythinstall -s vnc
+  "User accounts" EXEC sudo mythinstall -s user
+  "File shares" EXEC sudo mythinstall -s fileshare
+"System Configuration" END
-- 
cgit v0.12