Reply
Thread Tools
Moderator | Posts: 6,215 | Thanked: 6,400 times | Joined on Nov 2011
#51
Originally Posted by Vesuri View Post
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...

Last edited by thedead1440; 2012-08-30 at 17:13.
 
Posts: 123 | Thanked: 457 times | Joined on Feb 2012
#52
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).
 
Moderator | Posts: 6,215 | Thanked: 6,400 times | Joined on Nov 2011
#53
Originally Posted by Vesuri View Post
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?

Last edited by thedead1440; 2012-08-30 at 17:38.
 
Posts: 123 | Thanked: 457 times | Joined on Feb 2012
#54
Originally Posted by thedead1440 View Post
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.
 
Posts: 123 | Thanked: 457 times | Joined on Feb 2012
#55
Originally Posted by Vesuri View 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.
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
?
 
Moderator | Posts: 6,215 | Thanked: 6,400 times | Joined on Nov 2011
#56
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...
 
Moderator | Posts: 6,215 | Thanked: 6,400 times | Joined on Nov 2011
#57
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
Attached Files
File Type: gz indexes.tar.gz (833 Bytes, 56 views)

Last edited by thedead1440; 2012-08-30 at 18:01.
 
Posts: 123 | Thanked: 457 times | Joined on Feb 2012
#58
Originally Posted by thedead1440 View Post
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.

Last edited by Vesuri; 2012-08-30 at 18:10.
 

The Following User Says Thank You to Vesuri For This Useful Post:
Moderator | Posts: 6,215 | Thanked: 6,400 times | Joined on Nov 2011
#59
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!

Last edited by thedead1440; 2012-08-30 at 18:17.
 
Posts: 123 | Thanked: 457 times | Joined on Feb 2012
#60
Originally Posted by thedead1440 View Post
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.
 
Reply

Thread Tools

 
Forum Jump


All times are GMT. The time now is 22:32.