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)

Saturn 2011-02-28 00:32

[Announce] CSSU Features Configuration application (Maemo 5)
 
5 Attachment(s)

NOTE (21/03/2011): For the latest description please consult the wiki page dedicated to this application.


The following is here only for historical reasons and will not get more updates:
---------------------------------------------------------------------------------------------------------------

First: Thanks for all the hard work to bring all these new features in the N900 through the Community SSU.

My small contribution is a simple PyQt app that allows you to change the options shown in the wiki page.

The project is now also in garage

The application is operational but for sure not complete. For the time being it provides the bare minimum. I have a todo list for improvements but
Feel free to make requests or report issues here.

Usage info:
The operation of the application is simple:
  1. Choose the options you would like to have (for info on the options look in the wiki link given above)
  2. Press the "Update" button.

Other options:
  • The "Current" button sets the current options the system is using in the options (which are shown also in the startup of the application)
  • The "Default" button sets the values in UI equal to those shipped with the Community SSU.

If for some reason you have messed up and you want to restore the default transitions.ini file:
  1. Open the menu.
  2. Choose the "Restore Defaults" option. (Note: This will restore to the shipped version of the transitions.ini and will not have any effect on the similar file in /etc/hildon/theme/ that might be used by theming.)

Note some of the options get immediately active as soon as you press the "Update" button. Others need the hildon-desktop to be restarted and for those a menu option is available "Restart hildon-destop".

ISSUES/TODO:
  • 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). fixed in version 0.3-1
  • Current button is not yet implemented. fixed in version 1.0-1
  • The application when it opens shows the default options - in a future update will show the system's current options. fixed in version 1.0-1
  • BLOCKER: In the "parallax" field the values need to be float, i.e. "2.0" and not "2", otherwise the GUI fails to open. fixed in version 1.1-1
  • MINOR: if "tactile" package is installed and disable option if it's not. fixed in version 1.2-1
  • MINOR: The application should reside in the Settings under Personalisation. At the moment it is in the applications.


Versions:

1.5-1 (extras-devel)

Changes:
  • Added code in the postinstall to compile the python code.
  • Removed the menu button for restaring hildon-desktop (crashes other Qt apps).
  • Added menu button for rebooting the device.
  • Added note for option that requires reboot.
  • Several UI modifications for usability.
  • Modified icon.

1.3-1 (extras-devel, extras-testing)
If you find it fulfils the QA criteria vote here
  • Fix for the application freeze when restarting hildon-desktop.

1.2-1 (extras-devel, extras-testing)
  • Added a menu button for restarting hildon-desktop (e.g. needed for blurless update).
  • Added check if the Community SSU is installed.
  • Added check if the transitions.ini file used has all new features available.
  • Added check if the tactile package is installed and enable/disable accordingly the selection.

1.1-1 (extras-devel, extras-testing)
  • Corrections in the postinstall script.
  • Fix in configuration readout for case where string could be read as integer.
  • Modified the way the app starts, it's name in the window and application menu.

1.0-1 (extras-devel, extras-testing)
  • Implemented the CURRENT button. Additionally when app opens shows the current values.
  • Added rotation support in the About panel (does not need forced rotation).
  • Added better banner messages for actions taken.
  • Several GUI beautifications.

0.4-1 (extras-devel)
  • Removed desktop file from the hildon-control-panel. It doesn't work yet.
  • Added messages for which configuration file will be used.
0.3-1 (extras-devel)
  • Implemented the DEFAULT button to revert all values in the GUI back to system's defaults.
  • If an update is requested, the system checks if a transitions.ini file exists in /etc/hildon/theme/ (used by theming) and updates that too.
  • Update in the sudoers file to accept the new command for the additional update.
0.2-1 (extras-devel)
  • Some small beautifications in the GUI.
0.1-1 (extras-devel)
  • Initial version.

HtheB 2011-02-28 01:02

Re: [WIP] CSSU Features Configuration
 
This should be added in the next CSSU version! :D
thnx!

vkv.raju 2011-02-28 01:13

Re: [WIP] CSSU Features Configuration
 
Trust me when I say I was just hoping for the same exact app when I was going through the Community SSU announcement thread in the last couple of days.

But, didn't want it to be in PyQt. Just Qt was what I was hoping for! Anyways, never mind! Thanks for working on this!

Btw, please talk to Community_SSU group also. They might have/provide more info too.

keflex 2011-02-28 01:27

Re: [WIP] CSSU Features Configuration
 
I can see this making a lot of people very happy, good stuff.

Shinigamijim 2011-02-28 01:29

Re: [WIP] CSSU Features Configuration
 
you are right im so happy right now

maemo55 2011-02-28 04:48

Re: [WIP] CSSU Features Configuration
 
Thanks!!!!

F2thaK 2011-02-28 05:14

Re: [WIP] CSSU Features Configuration
 
nice work...

edit: needs to go into settings control panel

Saturn 2011-02-28 07:23

Re: [WIP] CSSU Features Configuration
 
Quote:

Originally Posted by f2thak (Post 957027)
nice work...

edit: needs to go into settings control panel

Yes, my intention was/is to place it in the control panel but it didn't work on first go (and I had to go to sleep..). Will try again but if anyone has an idea how to achieve that please let me know.

I've tried the following (which didn't work):

Code:

[Desktop Entry]
Encoding=UTF-8
Version=1.0
Name=CSSU Features Editor
Comment=Editor to help in configuring the CSSU enabled features
Type=HildonControlPanelPlugin
Icon=maemoorg
X-control-panel-plugin=/opt/CSSUfeatures/CSSUfeatures.py
Categories=personalisation


d-iivil 2011-02-28 08:18

Re: [WIP] CSSU Features Configuration
 
Does this only edit transitions.ini located under /usr/share/hildon-desktop/ or will it also search for /etc/hildon/theme ?

fw190 2011-02-28 08:36

Re: [WIP] CSSU Features Configuration
 
After installation all settings menu items do not respond. I had to uninstall it ot be able to change anything in the settings. I've got theme customizer installes. Uninstall fixed the problem.

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????

Saturn 2011-02-28 14:28

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/

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.

Saturn 2011-02-28 19:20

Re: [WIP] CSSU Features Configuration
 
Just sent an updated version to the autobuilder (version 0.3-1).

It basically should fix the problem with the additional transitions.ini file in the theme folder. Please test and report if it works for you.

Other changes included: The default button has been implemented. Pressing it will set all values in the GUI to the default (as shipped by the CSSU) values.

Will update later the first post.

ahmadamaj 2011-02-28 19:54

Re: [WIP] CSSU Features Configuration
 
still not working for me. does it require a restart?

edit: took me some time to find the thread. I'm using the transitions from fast maemo modding script

NightShift79 2011-02-28 20:05

Re: [WIP] CSSU Features Configuration
 
it works for me. but it doesn't show the current settings.

anyway, works and is good to have. thanks.
consider make it work in portrait mode, too ;)
and plz implement a "choose font" dialog for use with the
Code:

[task_nav]
tile_font = Century Gothic 16

Section!

thumbs up.

carlon 2011-02-28 20:14

Re: [WIP] CSSU Features Configuration
 
Hi,
I installed this app and is froze all the options in settings, i had to uninstall

NightShift79 2011-02-28 21:01

Re: [WIP] CSSU Features Configuration
 
maybe you wanna use that icon:

http://i53.tinypic.com/ml31mu.png

if you need to get it resized, just yell. ;)

droitwichgas 2011-02-28 21:24

Re: [WIP] CSSU Features Configuration
 
Quote:

Originally Posted by carlon (Post 957560)
Hi,
I installed this app and is froze all the options in settings, i had to uninstall

Also got exactly the same problem, uninstalled theme customiser, just in case that was causing the prblen but to no avail.

Any ideas what the problem can be as apart from the CSSU itself I can not see I have anything else downloaded which would effect the app?

NightShift79 2011-02-28 21:27

Re: [WIP] CSSU Features Configuration
 
check if you're using /usr/share/hildon-desktop/transitions.ini
and non inside your actual theme folder.

droitwichgas 2011-02-28 21:36

Re: [WIP] CSSU Features Configuration
 
Quote:

Originally Posted by NightShift79 (Post 957601)
check if you're using /usr/share/hildon-desktop/transitions.ini
and non inside your actual theme folder.

I thought I was but how do I check?

fw190 2011-02-28 22:01

Re: [WIP] CSSU Features Configuration
 
after install I've got an icon in the aps menu and in the settings but the one in the settings doesn't open anything. Is it supposed to be like this?

droitwichgas 2011-02-28 22:47

Re: [WIP] CSSU Features Configuration
 
Quote:

Originally Posted by fw190 (Post 957626)
after install I've got an icon in the aps menu and in the settings but the one in the settings doesn't open anything. Is it supposed to be like this?

same issue as mine

Saturn 2011-02-28 22:58

Re: [WIP] CSSU Features Configuration
 
Quote:

Originally Posted by NightShift79 (Post 957548)
it works for me. but it doesn't show the current settings.

anyway, works and is good to have. thanks.
consider make it work in portrait mode, too ;)
and plz implement a "choose font" dialog for use with the
Code:

[task_nav]
tile_font = Century Gothic 16

Section!

thumbs up.

Didn't really understand that request. Could you please explain more on this?

Quote:

Originally Posted by NightShift79 (Post 957584)
maybe you wanna use that icon:

http://i53.tinypic.com/ml31mu.png

if you need to get it resized, just yell. ;)

It already has the meamo one (just didn't work as I was trying to make it appear to the settings panel - it will work on the next version), but if more ask will change it to this.
Just to be sure; is this made by you and is it GPL or similar?

Quote:

Originally Posted by droitwichgas (Post 957599)
Also got exactly the same problem, uninstalled theme customiser, just in case that was causing the prblen but to no avail.

Any ideas what the problem can be as apart from the CSSU itself I can not see I have anything else downloaded which would effect the app?

I'll remove the desktop from the settings menu. Hope this is the cause for you.

Quote:

Originally Posted by fw190 (Post 957626)
after install I've got an icon in the aps menu and in the settings but the one in the settings doesn't open anything. Is it supposed to be like this?

It will be fixed in the next version.

Saturn 2011-02-28 23:19

Re: [WIP] CSSU Features Configuration
 
Sorry for the short update cycle.

Uploaded a new version (0.4-1) with some small changes:

- The desktop icon is in the applications menu (and will stay there until I find how to make it work from the settings panel)
- Added some messages when the application starts to show if it has find a configuration file in the themes folder or only in the default location.

Updated the first post too.

m4r0v3r 2011-02-28 23:47

Re: [WIP] CSSU Features Configuration
 
what does parallax do?

Saturn 2011-02-28 23:50

Re: [WIP] CSSU Features Configuration
 
Quote:

Originally Posted by m4r0v3r (Post 957684)
what does parallax do?

wrong thread.. anyway read the wiki

rebelnoob 2011-03-01 00:16

Re: [WIP] CSSU Features Configuration
 
Quote:

Originally Posted by Saturn (Post 957673)
- Added some messages when the application starts to show if it has find a configuration file in the themes folder or only in the default location.

Updated the first post too.


the messages are not shown when i open the cssu app..does it mean that it does not read the transition file as that changes are also not applied i installed it directly from the app manager and using cssu latest update ...what am i missing??

Saturn 2011-03-01 00:22

Re: [WIP] CSSU Features Configuration
 
Quote:

Originally Posted by rebelnoob (Post 957693)
the messages are not shown when i open the cssu app..does it mean that it does not read the transition file as that changes are also not applied i installed it directly from the app manager and using cssu latest update ...what am i missing??

If you go to the about it should say version 0.4-1.

BTW, if it fails to read any file then it exits with a warning message banner.

rebelnoob 2011-03-01 03:32

Re: [WIP] CSSU Features Configuration
 
Quote:

Originally Posted by Saturn (Post 957695)
If you go to the about it should say version 0.4-1.

BTW, if it fails to read any file then it exits with a warning message banner.

im not getting the new update in app manager mine is .2-1
i installed it today but did'nt get the latest one ..can i manually download it or through the x terminal ???

d-iivil 2011-03-01 10:42

Re: [WIP] CSSU Features Configuration
 
1 Attachment(s)
Quote:

Originally Posted by neboja (Post 957311)
nice app!!!!



and what do you think: is it posible to marge both apps in ONE, so there won't be any conflicts????

I've already almost finished my version of the same app that's integrated into Theme Customizer. It also includes some other tunings like speed of the transitions etc. Small teaser screenie attached.

Edit: forgot to mention; my plugin for Theme Customizer won't conflict with "CSSU Features Configuration", so users can use the one they like to use or use both apps. Just wanted to include these tunings into TC aswell.

MohammadAG 2011-03-01 10:46

Re: [WIP] CSSU Features Configuration
 
Quote:

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

As much as I'd love to include this, I'm not sure if we should pull in Python and PyQt for one app


All times are GMT. The time now is 13:23.

vBulletin® Version 3.8.8