View Single Post
Saturn's Avatar
Posts: 1,648 | Thanked: 2,122 times | Joined on Mar 2007 @ UNKLE's Never Never Land
#21
Originally Posted by d-iivil View Post
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.
Thanks for your explanation. It makes perfect sense.

I will update the code to apply changes to both (if theme is found) files.
For the display of current values it will choose first the theme folder and fall to the desktop folder.
 

The Following 6 Users Say Thank You to Saturn For This Useful Post: