![]() |
help me with one line of code
appologies if this is in the wrong section, im just after help with one line of code since im only a simple modder
im editing the n900s power button options etc/systemui/systemui.xml ive edited the top in xterm option to perform sudo gainroot instead, but it opens two xterm windows <argument type="string"/usr/bin/sudo gainroot</argument> might sound trivial but i only want it to perform all operations in just one window, and possibly to open midnight commander as well. hope you can help. thank you, mikey |
Re: help me with one line of code
Quote:
Code:
<argument type="string">/usr/bin/sudo gainroot</argument> |
Re: help me with one line of code
thank you, i think maybe that is just a typo in this post by me ill check, it does actually work but opens two xterm windows, one standard, then another with the command performed. i want it all to happen in one window. im not even sure its doable
|
Re: help me with one line of code
As always it helps to actually submit your modified XML file. I'm sure someone who knows these things will be more likely to answer then.
|
Re: help me with one line of code
thanks good idea
heres the contents of that xml <powerkeymenu path="/"> <title>powerup_application_title</title> <po>osso-powerup-shutdown</po> <menuitem priority="700" name="powerup_memainmenu_lockscreen"> <return>1</return> <po>osso-powerup-shutdown</po> </menuitem> <menuitem priority="600" name="powerup_memain_endcurrenttask"> <return>10</return> <icon>Stop</icon> <po>osso-powerup-shutdown</po> </menuitem> <menuitem priority="350" name="powerup_memainmenu_normalmode" visible="flight"> <keyfile>/var/lib/mce/mode</keyfile> <icon>statusarea_cell_level5</icon> <return>2</return> <po>osso-powerup-shutdown</po> </menuitem> <menuitem priority="350" name="powerup_memainmenu_flightmode" visible="normal"> <keyfile>/var/lib/mce/mode</keyfile> <icon>statusarea_cell_off</icon> <return>3</return> <po>osso-powerup-shutdown</po> </menuitem> <menuitem priority="100" name="powerup_memainmenu_lockdevice" disabled="yes"> <keyfile>/var/run/mce/call</keyfile> <icon>lock</icon> <return>4</return> <po>osso-powerup-shutdown</po> <disabled_reason name="powerup_ib_device_lock_not_available"> <po>osso-powerup-shutdown</po> </disabled_reason> </menuitem> <menuitem priority="5" name="powerup_memainmenu_poweroff"> <return>5</return> <icon>shutdown</icon> <po>osso-powerup-shutdown</po> </menuitem> <menuitem priority="300" name="powerup_memainmenu_silent" visible="general"> <keyfile>/home/user/.profiled/current</keyfile> <icon>statusarea_silent</icon> <return>8</return> <po>osso-powerup-shutdown</po> <callback service="com.nokia.profiled" path="/com/nokia/profiled" interface="com.nokia.profiled" method="set_profile" bus="session" autostart="true"> <argument type="string">silent</argument> </callback> </menuitem> <menuitem priority="200" name="powerup_memainmenu_general" visible="silent"> <keyfile>/home/user/.profiled/current</keyfile> <icon>general_profile</icon> <return>9</return> <po>osso-powerup-shutdown</po> <callback service="com.nokia.profiled" path="/com/nokia/profiled" interface="com.nokia.profiled" method="set_profile" bus="session" autostart="true"> <argument type="string">general</argument> </callback> </menuitem> <menuitem priority="20" name="Reboot"> <return>6</return> <icon>Reboot</icon> <po>osso-powerup-shutdown</po> </menuitem> <menuitem priority="90" name="Gain Root"> <icon>top</icon> <callback service="com.nokia.xterm" path="/com/nokia/xterm" interface="com.nokia.xterm" method="run_command" bus="session" autostart="true"> <argument type="string">/usr/bin/sudo gainroot</argument> </callback> </menuitem> <!-- <menuitem priority="10" name="Soft poweroff"> <return>7</return> <po>osso-powerup-shutdown</po> </menuitem> --> </powerkeymenu> |
All times are GMT. The time now is 04:58. |
vBulletin® Version 3.8.8