The Following User Says Thank You to Mentalist Traceur For This Useful Post: | ||
|
2011-02-04
, 07:44
|
Posts: 270 |
Thanked: 37 times |
Joined on Sep 2010
|
#382
|
[profilesx-sp-plugin.desktop]
X-Desktop-File=/usr/share/applications/hildon-status-menu/profilesx-sp-plugin.desktop
X-Status-Area-Position=18
X-Status-Menu-Position=20
[wifi-switcher.desktop]
X-Desktop-File=/usr/share/applications/hildon-status-menu/wifi-switcher.desktop
X-Status-Area-Position=18
X-Status-Menu-Position=21
[simple-brightness-applet.desktop]
X-Desktop-File=/usr/share/applications/hildon-status-menu/simple-brightness-applet.desktop
X-Status-Area-Position=18
X-Status-Menu-Position=22
[quick-launch-sb.desktop]
X-Desktop-File=/usr/share/applications/hildon-status-menu/quick-launch-sb.desktop
X-Status-Area-Position=18
X-Status-Menu-Position=23
|
2011-02-04
, 08:03
|
Posts: 2,225 |
Thanked: 3,822 times |
Joined on Jun 2010
@ Florida
|
#383
|
ok thank you very much for this complete answer.
I confirm that I manually add these stings
because I'd like to change the original position of app in status-menu button. Now I rewrite these string and everything is ok. I did a copy for further update of advanced clock plugin :-) but I prefer you solve this problem :-)
thank you again Mentalist Traceur
(have you an idea also for my last post?)
|
2011-02-04
, 08:08
|
Posts: 270 |
Thanked: 37 times |
Joined on Sep 2010
|
#384
|
The Following User Says Thank You to iscio For This Useful Post: | ||
|
2011-02-04
, 08:25
|
Posts: 2,225 |
Thanked: 3,822 times |
Joined on Jun 2010
@ Florida
|
#385
|
yes I add my strings above the Advanced-Clock-Plugin entry. But after an update I lost these strings. Now I have a backup, but I hope in a solution by the autor.
thank you
|
2011-02-04
, 17:30
|
Posts: 456 |
Thanked: 1,580 times |
Joined on Dec 2009
|
#386
|
... Use whatever method you use to seek out the respective lines of code - delete them, but ONLY them - I'm sure there must be some way to delete just from-current-line-to-five-lines-down ...
The Following User Says Thank You to Wonko For This Useful Post: | ||
|
2011-02-04
, 17:45
|
|
Posts: 532 |
Thanked: 949 times |
Joined on Apr 2010
@ Uk for 6months then Thailand
|
#387
|
The Following 3 Users Say Thank You to qosmio For This Useful Post: | ||
|
2011-02-04
, 18:33
|
Posts: 270 |
Thanked: 37 times |
Joined on Sep 2010
|
#388
|
I would just like to say " Thanks for all your hard work " This is a wonderful plugin. IMO this is a must have on the N900!
This is what I have done with it...
Thanks again..
Kind regards Qosmio
|
2011-02-04
, 21:34
|
Posts: 85 |
Thanked: 96 times |
Joined on Apr 2010
@ Dunfermline, Scotland
|
#389
|
|
2011-02-05
, 01:08
|
Posts: 122 |
Thanked: 19 times |
Joined on Jan 2010
@ Denmark
|
#390
|
I had a new small problem. As you can see in my screenshot after the restart the alarm's icon is very very near to the clock, I have to disable the alarm and reset the alarm to see it not so near...
have you any idea?
I attacched two image, near and not near
I looked at your attached files, and looked at my own, and I think I see what went wrong. Have you, by any chance, installed any other programs that have modified those files? Anything that would install Status Menu applets? Note that the following entry exists already in the original file, in the same spot at which your new file got cut off at (lines 93-98 in both files):
There really needs to be a more standardized way of writing to the status-menu.plugins file.
Wonko, here's my suggestion: Use whatever method you use to seek out the respective lines of code - delete them, but ONLY them - I'm sure there must be some way to delete just from-current-line-to-five-lines-down? Then you can just delete however many lines were initially added. As a safety feature, DO make it actually FIND the right string in the status-menu.plugins file, instead of simply, say, remembering that it was on lines x - y. That way, if people manually modify that file, it's less likely to get further messed up. Yes it might make the uninstall script slightly slower (maybe not noticeably so, or maybe I'm wrong and it'll be the same speed, IDK), but that's easier than people having chunks of Status-Menu plugin configuration deleted. ALSO, to be clear, you don't HAVE to specify entries for some of these things. Meaning, your current Advanced Clock doesn't have a button in the status menu. So you don't have to specify a status menu position - just the special status area clock position. (i.e. Unless you intend on eventually adding a button, this doesn't have to be added: "X-Status-Menu-Position=22")
Actually, things like Flashlight Applet and cpumem applet don't even ADD themselves to the status-menu.plugins file. It's not even necessary normally - IT IS necessary in the case of what you're doing though, because you have to override the stock clock applet (but for the button, if you're okay with it being auto-positioned in alphabetical order with the other 'unassigned' buttons, under all the assigned ones, you still won't need the X-Status-Menu-Position=22 line).
Wouldn't it be relatively easy to clone the Clock and Alarms status menu button? You don't have to replace the entire thing like I suggested earlier, you can just make your clone button display the same info (Day/Night clock icon, which is the only slightly annoying one to clone, because of the custom icons people bring in sometimes, "Clock and Alarms" in primary text, and the date in secondary smaller text), which launches the default clock program, just like the Clock and Alarms status applet does? This lets you go back to the 'safer' install method you tried out, with only marginal extra button coding, and avoids the need of coding your own complete replacement - but makes that an option for when there's either time, or someone like me gets off their *** and figures out how to do it.
If not that option though, we return to the former - just having the uninstall/update script seek for a unique part of the string, like the first two lines:
[advanced-clock-plugin.desktop]
X-Desktop-File=/usr/share/applications/hildon-status-menu/advanced-clock-plugin.desktop
...and then delete those +however-many-other-lines-were-added-by-the-installed-version, instead of everything afterward, would prevent a lot more errors. the only other errors would be if people manually edit that particular part of the file and just add extra lines, or delete one - which, well, you shouldn't do unless you're willing to figure out what went wrong at least partially on your own. Either way, that's a corner case, while having other programs get installed that include extra entries after yours isn't really.
On the other hand, iscio, I think all of your applets should still be showing up correctly, right? I don't think any of that stuff replaces another applet. The only thing you might notice is their position might be different, because they'd get auto-sorted.