Active Topics

 


Reply
Thread Tools
dscobsct's Avatar
Posts: 263 | Thanked: 231 times | Joined on Feb 2010 @ wales
#1
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
 
Posts: 726 | Thanked: 345 times | Joined on Apr 2010 @ Sweden
#2
<argument type="string"/usr/bin/sudo gainroot</argument>
You're at least one bracket short. Try this:
Code:
<argument type="string">/usr/bin/sudo gainroot</argument>
I have no idea if this will do what you want, but now it's something close to proper XML at least.
 
dscobsct's Avatar
Posts: 263 | Thanked: 231 times | Joined on Feb 2010 @ wales
#3
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
 
Posts: 726 | Thanked: 345 times | Joined on Apr 2010 @ Sweden
#4
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.
 
dscobsct's Avatar
Posts: 263 | Thanked: 231 times | Joined on Feb 2010 @ wales
#5
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>
 
Reply


 
Forum Jump


All times are GMT. The time now is 18:43.