maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   MeeGo / Harmattan (https://talk.maemo.org/forumdisplay.php?f=45)
-   -   "Theme settings" removed from the Store by Nokia (was: [Announce] Theme settings) (https://talk.maemo.org/showthread.php?t=85710)

thedead1440 2012-08-30 17:01

Re: "Theme settings" removed from the Store by Nokia (was: [Announce] Theme settings)
 
Quote:

Originally Posted by Vesuri (Post 1258017)
Check the index.theme files in those folders as well. Those are the files that matter for the detection.

Code:

RM696-21-3_PR_005:~# ls -l /usr/share/themes/fdb-red-test/
total 12
-rwxrwxr-x    1 root    root          237 Aug 31 00:40 index.theme
-rw-------    1 root    root          232 Aug 31 00:40 index.theme~
drwxrwxr-x  43 root    root          4096 Aug 31 00:40 meegotouch
RM696-21-3_PR_005:~# ls -l /usr/share/themes/fdb-originalv7.1a1/
total 8
-rwxrwxr-x    1 root    root          246 Aug 31 00:10 index.theme
drwxrwxr-x  43 root    root          4096 Aug 31 00:14 meegotouch
RM696-21-3_PR_005:~# ls -l /usr/share/themes/fdb-originalv7.0a8/
total 8
-rw-r--r--    1 root    root          243 Aug 18 20:14 index.theme
drwxr-xr-x  35 root    root          4096 Aug 18 21:51 meegotouch
RM696-21-3_PR_005:~# ls -l /usr/share/themes/faenza/
total 12
-rw-rw-r--    1 root    root          270 Aug 16 04:48 index.theme
-rw-rw-r--    1 root    root          238 Aug 16 04:24 index.theme~
drwxrwxrwx    6 root    root          4096 Aug 17 01:26 meegotouch

I can see something's wrong here...Could you help? [fdb-red-test and fdb-originalv7.1a1 are the offending one's here]

Edit: Could you also help me in identifying what I might have done wrong during the packaging for the differing permissions? I use your meegotouchtheme-example for packaging and for fdb-originalv7.1a1 I used fdb-originalv7.0a8 as the base...fdb-red-test was just copied manually over to test...

Vesuri 2012-08-30 17:23

Re: "Theme settings" removed from the Store by Nokia (was: [Announce] Theme settings)
 
Can you show the contents of the index.theme files for the themes that don't get detected?

Also note that if you add/remove a theme the changes won't be visible in the Settings application (in case of Theme Settings) until you leave the Theme settings applet and show it again (in case it was already visible).

thedead1440 2012-08-30 17:28

Re: "Theme settings" removed from the Store by Nokia (was: [Announce] Theme settings)
 
Quote:

Originally Posted by Vesuri (Post 1258028)
Can you show the contents of the index.theme files for the themes that don't get detected?

Also note that if you add/remove a theme the changes won't be visible in the Settings application (in case of Theme Settings) until you leave the Theme settings applet and show it again (in case it was already visible).

Ya i leave the Theme settings applet before opening it again...

Contents of fdb-originalv7.1a1 :
Code:

[Desktop Entry]
Type=X-MeeGoTouch-Metatheme
Name=FDB Original v7.1a1
Encoding=UTF-8

[X-MeeGoTouch-Metatheme]
X-Inherits=blanco
X-Icon="icon-l-fdborig"
X-Visible=true

[X-DUI-Metatheme]
X-Icon="icon-l-fdborig"
X-Inherits=blanco
X-Visible=true

contents of fdb-originalv7.0a8 :

Code:

[Desktop Entry]
Type=X-MeeGoTouch-Metatheme
Name=FDB Original v7.0a8
Encoding=UTF-8

[X-MeeGoTouch-Metatheme]
X-Inherits=blanco
X-Icon="icon-l-fdbblue"
X-Visible=true

[X-DUI-Metatheme]
X-Icon="icon-l-fdbblue"
X-Inherits=blanco
X-Visible=true


Contents of fdb-red-test:

Code:

[Desktop Entry]
Type=X-MeeGoTouch-Metatheme
Name=FDB Red Test
Encoding=UTF-8

[X-MeeGoTouch-Metatheme]
X-Inherits=blanco
X-Icon="icon-l-fdbred"
X-Visible=true

[X-DUI-Metatheme]
X-Icon="icon-l-fdbred"
X-Inherits=blanco
X-Visible=true


Contents of faenza:

Code:

[Desktop Entry]
Type=X-MeeGoTouch-Metatheme
Name=Faenza
Encoding=UTF-8

[X-MeeGoTouch-Metatheme]
X-Inherits=blanco
X-Icon=icon-l-meegotouchtheme-blanco
X-Visible=true

[X-DUI-Metatheme]
X-Icon=icon-l-meegotouchtheme-blanco
X-Inherits=blanco
X-Visible=true


In the above the first and third ones don't get detected while second and fourth work...


Edit: Don't you think that something is wrong in the permissions from my earlier post?

Vesuri 2012-08-30 17:44

Re: "Theme settings" removed from the Store by Nokia (was: [Announce] Theme settings)
 
Quote:

Originally Posted by thedead1440 (Post 1258029)
Don't you think that something is wrong in the permissions from my earlier post?

Well yeah, the ones that don't work seem to have the execute permission for the index.theme file. I don't know why it would matter, but you can of course try saying

Code:

chmod ugo-x /usr/share/themes/fdb-red-test/index.theme /usr/share/themes/fdb-originalv7.1a1/index.theme
and see if that helps. If it does, then QSettings refuses to load files which have the execute permission set.

Vesuri 2012-08-30 17:49

Re: "Theme settings" removed from the Store by Nokia (was: [Announce] Theme settings)
 
Quote:

Originally Posted by Vesuri (Post 1258039)
Well yeah, the ones that don't work seem to have the execute permission for the index.theme file. I don't know why it would matter, but you can of course try saying

Code:

chmod ugo-x /usr/share/themes/fdb-red-test/index.theme /usr/share/themes/fdb-originalv7.1a1/index.theme
and see if that helps. If it does, then QSettings refuses to load files which have the execute permission set.

The execute permission doesn't seem to make a difference for me, at least. Could you package all the index.theme files and send them over, like

Code:

tar zvcf indexes.tar.gz /usr/share/themes/*/index.theme
?

thedead1440 2012-08-30 17:52

Re: "Theme settings" removed from the Store by Nokia (was: [Announce] Theme settings)
 
Nope it doesn't fix it...I did a reboot just in case too before and after the chmod but still no luck...Weird thing is that fdb-red-test is the same fdb-red i already have on my system just added "-test" to it after no themes were getting detected even after uninstalling a number of themes...

thedead1440 2012-08-30 17:56

Re: "Theme settings" removed from the Store by Nokia (was: [Announce] Theme settings)
 
1 Attachment(s)
Attached the indexes.tar.gz in this post...


Also the tar.gz package for fdb-originalv7.1a1 [not working] can be downloaded from: http://db.tt/hjimP0vp

tar.gz package for fdb-originalv7.0a8 [working]: http://db.tt/wZBfk9rG

Vesuri 2012-08-30 18:07

Re: "Theme settings" removed from the Store by Nokia (was: [Announce] Theme settings)
 
Quote:

Originally Posted by thedead1440 (Post 1258048)
Attached the indexes.tar.gz in this post...


Also the tar.gz package for fdb-originalv7.1a1 [not working] can be downloaded from: http://db.tt/hjimP0vp

tar.gz package for fdb-originalv7.0a8 [working]: http://db.tt/wZBfk9rG

Code:

# diff usr/share/themes/fdb-originalv7.0a8/index.theme usr/share/themes/fdb-originalv7.1a1/index.theme
--- usr/share/themes/fdb-originalv7.0a8/index.theme
+++ usr/share/themes/fdb-originalv7.1a1/index.theme
@@ -1,14 +1,14 @@
-[Desktop Entry]
+[Desktop Entry]

You have a byte order mark in the beginning of the file in those themes that don't work:

Code:

00000000  EF BB BF 5B  44 65 73 6B  74 6F 70 20  45 6E 74 72  79 5D 0A 54  79 70 65 3D  58 2D 4D 65  ...[Desktop Entry].Type=X-Me
Use an editor that doesn't put any byte order marks there.

thedead1440 2012-08-30 18:13

Re: "Theme settings" removed from the Store by Nokia (was: [Announce] Theme settings)
 
Could you correct me on this as I couldn't find any white spaces at the end of the lines...pressing delete after the "]" brought up the next line to the same level...

Doing a diff gave:

Code:

RM696-21-3_PR_005:~# diff /usr/share/themes/fdb-originalv7.0a8/index.theme
 /usr/share/themes/fdb-originalv7.1a1/index.theme
--- /usr/share/themes/fdb-originalv7.0a8/index.theme
+++ /usr/share/themes/fdb-originalv7.1a1/index.theme
@@ -1,14 +1,14 @@
-[Desktop Entry]
+[Desktop Entry]
 Type=X-MeeGoTouch-Metatheme
-Name=FDB Original v7.0a8
+Name=FDB Original v7.1a1
 Encoding=UTF-8
 
 [X-MeeGoTouch-Metatheme]
 X-Inherits=blanco
-X-Icon="icon-l-fdbblue"
+X-Icon="icon-l-fdborig"
 X-Visible=true
 
 [X-DUI-Metatheme]
-X-Icon="icon-l-fdbblue"
+X-Icon="icon-l-fdborig"
 X-Inherits=blanco
 X-Visible=true


Edit: I was using nano and after deleting the whole line and re-adding it on fdb-originalv7.1a1 it WORKED! Fdb-red-test works too after doing the same!

Thanks a ton Vesuri!

Vesuri 2012-08-30 18:16

Re: "Theme settings" removed from the Store by Nokia (was: [Announce] Theme settings)
 
Quote:

Originally Posted by thedead1440 (Post 1258058)
Could you correct me on this as I couldn't find any white spaces at the end of the lines...pressing delete after the "]" brought up the next line to the same level...

No white spaces at the end of the as I originally wrote, sorry. There's a byte order mark in the beginning of the file (before [Desktop Entry]) which confuses QSettings.


All times are GMT. The time now is 09:51.

vBulletin® Version 3.8.8