View Single Post
Posts: 198 | Thanked: 82 times | Joined on Oct 2011 @ Dubrovnik, Croatia
#20
here's the way to have an icon on Your homescreen to restart bme without having to type all of that each time.

in text editor write:

/sbin/stop bme
/sbin/start bme

and then save it as bmeup.sh in /home/user/scripts (create it if doesn't exist)

in terminal type and run: chmod 777 /home/user/scripts/bmeup.sh

then in text editor write following:

[Desktop Entry]
Encoding=UTF-8
Version=1.0
Type=Application
Terminal=false
Name=bmeUp
Exec=/bin/sh -c "echo <your root password> | devel-su -c /home/user/scripts/bmeup.sh"
Icon=
X-Window-Icon=
X-HildonDesk-ShownInToolbar=true

and save it in /home/user/.local/share/applications folder as bmeup.desktop file

and that's it - now You'll have bmeUp icon on Your homescreen. tap it and bme will be restarted and battery percentage set correctly.

This way the icon is a simple green one - You are welcome to create one and share it here as I'm not very into icon creating and designing process. Icon You would like to have as bmeUp icon should be uploaded to Your N9, and full path to it written in "Icon=" line in bme.desktop

EDIT: thanks to knobtviker, zvjer, TMavica
__________________
BlackBerry Q10 SQN100-3 10.2.1.3175
N9 ex-owner, now Jolla curious

[tw] @kegnatz

Last edited by Zelig; 2014-01-16 at 20:40.
 

The Following 5 Users Say Thank You to Zelig For This Useful Post: