Notices


Poll: Would you be happy not having the operator name, for Battery Percentage in its place?
Poll Options
Would you be happy not having the operator name, for Battery Percentage in its place?

Reply
Thread Tools
Posts: 233 | Thanked: 491 times | Joined on Oct 2011 @ Sydney
#11
Bit of an update guys,
Have managed to get the status bar to be locked to the one icon, and have altered the permissions (chmod) so the app can write to it.
At the moment the only issue is refreshing the status bar. If you know how to do this, please send me an email. I will make sure to credit your efforts

michaelmnb@hotmail.com.au
__________________
Blogs I post to
MyNokiaBlog
UnleashThePhones

Hit thanks if I have helped in some way, or you agree with me

Twitter
-------------------------------------------------------------------------------
Battery Widget
#OperationUnicorn
Harmoji - Emoji for Harmattan

-------------------------------------------------------------------------------
N9 [Black] - Sailfish OS (1.x.x.xx)
N9 [White] - PR 1.3 [Stock]
N950 - Sailfish OS
Z10 LE - 10.2.1.1055
Dev Alpha C - 10.2.1.1055
 
Posts: 886 | Thanked: 2,077 times | Joined on Jan 2012 @ UK
#12
if you can make the text while and bold would look really nice
 
Dousan's Avatar
Posts: 1,102 | Thanked: 1,490 times | Joined on Jan 2010 @ Denmark
#13
@MFaroTusino i can't make it work mate. When using your instructions as on first post i only get a green app icon on my desktop with 'Percent' written under it. When pressed a xterm window appears really quick, like a short flash.
I have a .BatteryWidget folder in /home/user/
How to make it work?

Regards Dousan...
__________________
We do not see things as they are; we see things as we are...
My Procreate art:
http://procreate.si/forums/index.php?topic=407.0
My S°ciety6:
http://society6.com/Dousan
My Tumblr:
http://dousan.tumblr.com
 

The Following User Says Thank You to Dousan For This Useful Post:
Posts: 233 | Thanked: 491 times | Joined on Oct 2011 @ Sydney
#14
Originally Posted by Dousan View Post
@MFaroTusino i can't make it work mate. When using your instructions as on first post i only get a green app icon on my desktop with 'Percent' written under it. When pressed a xterm window appears really quick, like a short flash.
I have a .BatteryWidget folder in /home/user/
How to make it work?

Regards Dousan...
The xterm window is supposed to happen, at least for now. Need to work on that . So when pressed, the icon doesn't update?

This may be because the icon hasn't been created properly, or also due to permission issues.

Try a few things;
1. The output of;
cd /home/user/.BatteryWidget/
ls -a


Should be;
BatteryWidget.py
BatteryWidget_Template.png
Icon_Widget.png
Percent.sh
percent.txt


2.
cd /usr/share/applications/
nano BatteryWidget.desktop


should have
icon=/home/user/.BatteryWidget/Icon_Widget.png

If they are all in place, check permissions
cd /home/user/.BatteryWidget
ls -l

And make sure that Icon_Widget.png is owned by/ allowed to be written to and executed by the user and not root

Cheers
__________________
Blogs I post to
MyNokiaBlog
UnleashThePhones

Hit thanks if I have helped in some way, or you agree with me

Twitter
-------------------------------------------------------------------------------
Battery Widget
#OperationUnicorn
Harmoji - Emoji for Harmattan

-------------------------------------------------------------------------------
N9 [Black] - Sailfish OS (1.x.x.xx)
N9 [White] - PR 1.3 [Stock]
N950 - Sailfish OS
Z10 LE - 10.2.1.1055
Dev Alpha C - 10.2.1.1055

Last edited by MFaroTusino; 2012-02-26 at 06:05.
 
Posts: 185 | Thanked: 199 times | Joined on Jan 2010 @ Accra,Ghana
#15
Originally Posted by MFaroTusino View Post
The xterm window is supposed to happen, at least for now. Need to work on that . So when pressed, the icon doesn't update?

This may be because the icon hasn't been created properly, or also due to permission issues.

Try a few things;
1. The output of;
cd /home/user/.BatteryWidget/
ls -a


Should be;
BatteryWidget.py
BatteryWidget_Template.png
Icon_Widget.png
Percent.sh
percent.txt


2.
cd /usr/share/applications/
nano BatteryWidget.desktop


should have
icon=/home/user/.BatteryWidget/Icon_Widget.png

If they are all in place, check permissions
cd /home/user/.BatteryWidget
ls -l

And make sure that Icon_Widget.png is owned by/ allowed to be written to and executed by the user and not root

Cheers
I'm having the same problem.when I checked the directory /home/user/.BatteryWidget I noticed that the file Icon_Widget.png was not there! I've repeated the script several times but it doesn't seen to create that file. would love to have this app working.
 

The Following User Says Thank You to tcbl50 For This Useful Post:
Posts: 233 | Thanked: 491 times | Joined on Oct 2011 @ Sydney
#16
Realised the issue many are facing is a dependency issue. Install python and python-imaging from terminal (apt-get install python python-imaging) and all should work.

Sorry that this slipped my mind, have updated the first post
__________________
Blogs I post to
MyNokiaBlog
UnleashThePhones

Hit thanks if I have helped in some way, or you agree with me

Twitter
-------------------------------------------------------------------------------
Battery Widget
#OperationUnicorn
Harmoji - Emoji for Harmattan

-------------------------------------------------------------------------------
N9 [Black] - Sailfish OS (1.x.x.xx)
N9 [White] - PR 1.3 [Stock]
N950 - Sailfish OS
Z10 LE - 10.2.1.1055
Dev Alpha C - 10.2.1.1055
 

The Following 2 Users Say Thank You to MFaroTusino For This Useful Post:
Dousan's Avatar
Posts: 1,102 | Thanked: 1,490 times | Joined on Jan 2010 @ Denmark
#17
Originally Posted by MFaroTusino View Post
Realised the issue many are facing is a dependency issue. Install python and python-imaging from terminal (apt-get install python python-imaging) and all should work.

Sorry that this slipped my mind, have updated the first post
Cheers mate that did the trick, now working as it should

Regards Dousan...
__________________
We do not see things as they are; we see things as we are...
My Procreate art:
http://procreate.si/forums/index.php?topic=407.0
My S°ciety6:
http://society6.com/Dousan
My Tumblr:
http://dousan.tumblr.com
 

The Following User Says Thank You to Dousan For This Useful Post:
Posts: 233 | Thanked: 491 times | Joined on Oct 2011 @ Sydney
#18
Originally Posted by Dousan View Post
Cheers mate that did the trick, now working as it should

Regards Dousan...
Glad to hear How is it with updating? Do you need to tap twice to update occasionally?
__________________
Blogs I post to
MyNokiaBlog
UnleashThePhones

Hit thanks if I have helped in some way, or you agree with me

Twitter
-------------------------------------------------------------------------------
Battery Widget
#OperationUnicorn
Harmoji - Emoji for Harmattan

-------------------------------------------------------------------------------
N9 [Black] - Sailfish OS (1.x.x.xx)
N9 [White] - PR 1.3 [Stock]
N950 - Sailfish OS
Z10 LE - 10.2.1.1055
Dev Alpha C - 10.2.1.1055
 
Dousan's Avatar
Posts: 1,102 | Thanked: 1,490 times | Joined on Jan 2010 @ Denmark
#19
Originally Posted by MFaroTusino View Post
Glad to hear How is it with updating? Do you need to tap twice to update occasionally?
I only need to tap it once to update it. It's not updating by itself.

Regards Dousan...

e: i need to tap it twice to update, tried it 4 times after my post and all of them needed a double tap.
__________________
We do not see things as they are; we see things as we are...
My Procreate art:
http://procreate.si/forums/index.php?topic=407.0
My S°ciety6:
http://society6.com/Dousan
My Tumblr:
http://dousan.tumblr.com

Last edited by Dousan; 2012-02-26 at 10:23.
 

The Following User Says Thank You to Dousan For This Useful Post:
Posts: 233 | Thanked: 491 times | Joined on Oct 2011 @ Sydney
#20
Originally Posted by Dousan View Post
I only need to tap it once to update it. It's not updating by itself.

Regards Dousan...
Okay, for me I occasionally need to run app twice. At this stage (V0.0.1) update is only manually done, by tapping icon. Auto-update should be coming soon
__________________
Blogs I post to
MyNokiaBlog
UnleashThePhones

Hit thanks if I have helped in some way, or you agree with me

Twitter
-------------------------------------------------------------------------------
Battery Widget
#OperationUnicorn
Harmoji - Emoji for Harmattan

-------------------------------------------------------------------------------
N9 [Black] - Sailfish OS (1.x.x.xx)
N9 [White] - PR 1.3 [Stock]
N950 - Sailfish OS
Z10 LE - 10.2.1.1055
Dev Alpha C - 10.2.1.1055
 

The Following User Says Thank You to MFaroTusino For This Useful Post:
Reply

Thread Tools

 
Forum Jump


All times are GMT. The time now is 07:36.