maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Development (https://talk.maemo.org/forumdisplay.php?f=13)
-   -   [Announce] CSSU Features Configuration application (Maemo 5) (https://talk.maemo.org/showthread.php?t=70427)

IceJunior 2011-02-28 08:55

Re: [WIP] CSSU Features Configuration
 
Quote:

Originally Posted by d-iivil (Post 957084)
Does this only edit transitions.ini located under /usr/share/hildon-desktop/ or will it also search for /etc/hildon/theme ?

..and Theme-Customizer's custom transitions in /home/opt/theme-customizer/ ? :)

Mart5.1 2011-02-28 09:09

Re: [WIP] CSSU Features Configuration
 
Quote:

Originally Posted by IceJunior (Post 957107)
..and Theme-Customizer's custom transitions in /home/opt/theme-customizer/ ? :)

I have found it only mods /usr/share/hildon-desktop/

tomchiverton 2011-02-28 09:13

Re: [WIP] CSSU Features Configuration
 
Quote:

Originally Posted by HtheB (Post 956936)
This should be added in the next CSSU version! :D
thnx!

Once all the buttons work, I agree :-)

Saturn 2011-02-28 09:34

Re: [WIP] CSSU Features Configuration
 
Quote:

Originally Posted by d-iivil (Post 957084)
Does this only edit transitions.ini located under /usr/share/hildon-desktop/ or will it also search for /etc/hildon/theme ?

It edits only the /usr/share/hildon-desktop/transitions.ini file. I can change that but need some help with the expected behaviour since I don't use themes.

- Should it be configurable to choose another location or is it always that the transitions.ini if exists in the theme folder takes priority?
- Would it work if the app updates all transitions.ini files that it finds in both locations?

Jaffa 2011-02-28 09:40

Re: [WIP] CSSU Features Configuration
 
I'd say you shouldn't go to any special consideration for Theme Customiser yet, I'd wait until it's custom hildon-home has gone away and the necessary features are redeveloped for the CSSU (see #11990).

Saturn 2011-02-28 09:44

Re: [WIP] CSSU Features Configuration
 
Quote:

Originally Posted by Jaffa (Post 957135)
I'd say you shouldn't go to any special consideration for Theme Customiser yet, I'd wait until it's custom hildon-home has gone away and the necessary features are redeveloped for the CSSU (see #11990).

Thanks for the heads up.

Added a comment in the first post about the issue. At least people should be prepared for that.

d-iivil 2011-02-28 12:31

Re: [WIP] CSSU Features Configuration
 
Quote:

Originally Posted by Jaffa (Post 957135)
I'd say you shouldn't go to any special consideration for Theme Customiser yet, I'd wait until it's custom hildon-home has gone away and the necessary features are redeveloped for the CSSU (see #11990).

Editing transitions.ini requires no special hacks that would require thinking of Theme Customizer :)

To OP:
I suggest you code it to follow this pattern:
- check if transitions.ini exists under /etc/hildon/theme/
=> if exists, edit that
==> else edit one under /usr/share/hildon-desktop/

That way your program will work with any enviroment. If user then chooses to switch theme which does not have custom transitions, he needs to re-run your program to get the results. Other way would be to edit transitions.ini in both locations if they exist. No need to look for non-standard folder like /opt/theme-customizer/ etc.

Jaffa 2011-02-28 13:11

Re: [WIP] CSSU Features Configuration
 
Quote:

Originally Posted by d-iivil (Post 957259)
Editing transitions.ini requires no special hacks that would require thinking of Theme Customizer :)

To OP:
I suggest you code it to follow this pattern:
- check if transitions.ini exists under /etc/hildon/theme/
=> if exists, edit that
==> else edit one under /usr/share/hildon-desktop/

Does hildon-desktop look at /etc/hildon/theme/transitions.ini in preference to /usr/share/hildon-desktop/transitions.ini? I didn't think it did (haven't checked). Does Theme Customiser put a symlink in its place to the one inside the theme?

If so, the real solution is to follow any symlinks in place on /usr/share/hildon-desktop/transitions.ini, rather than looking in different locations.

d-iivil 2011-02-28 13:21

Re: [WIP] CSSU Features Configuration
 
Quote:

Originally Posted by Jaffa (Post 957293)
Does hildon-desktop look at /etc/hildon/theme/transitions.ini in preference to /usr/share/hildon-desktop/transitions.ini? I didn't think it did (haven't checked). Does Theme Customiser put a symlink in its place to the one inside the theme?

If so, the real solution is to follow any symlinks in place on /usr/share/hildon-desktop/transitions.ini, rather than looking in different locations.

hildon-desktop first looks for /etc/hildon/theme/transitions.ini and if there's no transitions.ini found, it moves on to /usr/share/hildon-desktop/transitions.ini.

Theme Customizer simply copies it's own transitions.ini into /etc/hildon/theme/transitions.ini when user chooses to use it's bundled transitions. It ofcourse first makes backup of the original file if there's one found.

Edit: and folder /etc/hildon/theme/ is just symlink that points to the root folder of user's currently active theme (ie /usr/share/themes/alpha etc).

neboja 2011-02-28 13:34

Re: [WIP] CSSU Features Configuration
 
nice app!!!!

Quote:

- this app only edits transitions.ini located under /usr/share/hildon-desktop/. Thus, will fail if you have more transitions.ini files (e.g. using the theme-customizer).
and what do you think: is it posible to marge both apps in ONE, so there won't be any conflicts????


All times are GMT. The time now is 06:18.

vBulletin® Version 3.8.8