Thus I created a script which would ask for a password before opening simpleui.rc for editing.
- Steps:
- Press Ctrl-Alt-T to open the terminal console.
- Type "sudo nano /usr/bin/MenuEdit-script" to create a new bash script.
- Type the following:
#!/bin/bash
password=$(kdialog --password "Please enter password to edit menu:")
if [ $password = "mypassword" ]
then
/usr/bin/sudo /usr/bin/kwrite /home/user/.AsusLauncher/simpleui.rc
fi
exit 0 - Press Ctrl-O to save and Ctrl-X to exit.
- Type "sudo chmod 755 /usr/bin/MenuEdit-script" to set the permissions for executing it.
- Edit your Easy Mode GUI to add or edit the following desktop shortcut (if you do not know how, pls read the earlier posts on customising your Easy Mode GUI):
<parcel simplecat="Favorites" extraargs="/usr/bin/MenuEdit-script"
icon="asus_norm.png"
selected_icon="asus_hi.png">
<name lang="en">Menu Edit</name>
</parcel> - Press Ctrl-Alt-Backspace to refresh your XTerm display. The following dialog will pop up when you click on the Menu Edit shortcut.