maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Applications (https://talk.maemo.org/forumdisplay.php?f=41)
-   -   [Announce] ApMeFo (beta 0.9-5) - Create custom folders in your Application Menu (https://talk.maemo.org/showthread.php?t=56844)

DaSilva 2010-06-22 19:27

Re: [Announce] ApMeFo (beta 0.9-2) - Create custom folders in your Application Menu
 
Great, thanks for the information!
Then I think I will wait for your updated version and then uninstall Catorise so that I don't have to create every folder / shortcut.

albertozerox 2010-06-22 19:32

Re: [Announce] ApMeFo (beta 0.9-2) - Create custom folders in your Application Menu
 
If when I click to activate I get the message and I have not installed catorise or MyMenu , but hey it does not matter I hope future updates will serve me.

I do not want to be heavy

Nathraiben 2010-06-22 19:42

Re: [Announce] ApMeFo (beta 0.9-2) - Create custom folders in your Application Menu
 
Quote:

Originally Posted by pantera1989 (Post 725286)
I have the following feedback for you after playing around with the application.

First of all the application did not work. I think it's permissions like you said. Here is the output:

Code:

~ $ python /opt/ApMeFo/Main.py
Traceback (most recent call last):
  File "/opt/ApMeFo/ui/appFolders.py", line 174, in on_btnAddNameSelect_released
    self.mainApp.foldercontent.setFolder(str(filename))
  File "/opt/ApMeFo/classes/folderContent.py", line 35, in setFolder
    menuFile = open(menuFileName,  "r")
IOError: [Errno 2] No such file or directory: PyQt4.QtCore.QString(u'/home/user/.config/menus/submenus/Games.menu')
Traceback (most recent call last):
  File "/opt/ApMeFo/ui/appFolders.py", line 163, in on_btnUpdate_released
    self.mainApp.foldercontent.updateFolder()
  File "/opt/ApMeFo/classes/folderContent.py", line 63, in updateFolder
    includeNode = self.xmlTree.getElementsByTagName("Include")[0]
AttributeError: 'NoneType' object has no attribute 'getElementsByTagName'
Traceback (most recent call last):
  File "/opt/ApMeFo/ui/appFolders.py", line 163, in on_btnUpdate_released
    self.mainApp.foldercontent.updateFolder()
  File "/opt/ApMeFo/classes/folderContent.py", line 63, in updateFolder
    includeNode = self.xmlTree.getElementsByTagName("Include")[0]
AttributeError: 'NoneType' object has no attribute 'getElementsByTagName'


Actually, that doesn't sound like a permission problem, but rather like writing the folder in the first place somehow failed.

Did you get the "Your folder was successfully saved!" message when creating the folder? Or did you try to edit a folder you manually added before installing the application?

Normally, if there's any problem with writing the .menu file, there should be a warning be displayed - I'll take a look at that part, maybe this slipped through while cleaning the code.

Quote:

Now to feedback regarding the working app.

1. The menu that comes up each time with the apps to add is too slow. Could the content be somehow cached on the app's startup? I doubt that someone will install anything new while the app is running. This way the first time loading will take time, but further tries will be much faster.
2. Could the apps menu let you select multiple items at a time? Like some menus in the browser?
3. The apps menu should be updated. If you select an app it should be removed from the menu.
4. Could there be an option to sort alphabetically once added in the folder?
5. I used the de-activate option. It works but the device become unresponsive, forcing you to restart. Could this process be a bit more fluid?

** EDIT ** While running it from xterm as root, it still couldn't create the folder, but pressing de-activate didn't make the device unresponsive and the menu was restored.
First of all, thanks a lot for those suggestions!

1) I was (and still am) not sure how to handle this. Simply storing the values would be easy, but then the whole application could turn rather unstable thanks to modifications (both internal and external) to the files involved. So I'm swaying between making this faster or keeping it more stable. :confused:

2) Great idea, I'll take a look into that - should be fairly easy to implement, though.

3) Do you mean from the popup list? That would be nice, true - though for larger folders this might further slow down the popup. I'll give it a try.

4) In the actual application menu (it already should do that) or in the list on the Add Apps tab? The latter (and maybe in the popup list, too - but again this could turn out to be a performance problem) I'll put right on top of my todo list. I just realised how confusing the non-alphabetic list really is. :D

5) Sadly, that's something I have no influence on. Hildon is becoming unresponsive because it suddenly "lost" it's hildon.menu (though normally this shouldn't take any longer than a couple of seconds). Catorise is suffering from the same problem, so I fear nobody has found a solution to this yet...

Also, opening the application menu right after making changes (no matter whether it's adding folders or de-/activating ApMeFo) will result in a "No applications found" message at first, but this, also, should go away after a few seconds.

After that I haven't experienced any more slow-downs, so this should only happen right after editing the menu.

ironm8 2010-06-22 19:44

Re: [Announce] ApMeFo (beta 0.9-2) - Create custom folders in your Application Menu
 
from personal experience you should uninstall catorise, it seems that it drains the battery faster, a proccess of his, is always working at 5% of CPU, quickly draining the battery. This was discussed, search the forums but thats my personal input, i really fealt a difference between having it or not.

I will now test apmefo :)

stone17 2010-06-22 19:48

Re: [Announce] ApMeFo (beta 0.9-2) - Create custom folders in your Application Menu
 
instillation doesnt seem to work with pelota world cup widget. The icon shows up, but it doesnt start. apt-get -f install shows dependency problems with homescreen loader due to pelota widget.

pantera1989 2010-06-22 19:59

Re: [Announce] ApMeFo (beta 0.9-2) - Create custom folders in your Application Menu
 
Regarding my fourth suggestion I do not know if the app automatically sorts alphabetically. I haven't been able to create a folder so far.

I create a folder and get a message "Folder was successfuly created or saved". I can't remember the exact message. Then I added a few apps to test to the folder. Select update folder. Go to deactivate and I select activate. I get a message that it is activated. The result is a mess in the menu (regarding sorting). The apps I select into the folder are still in the menu and the folder is no where to be seen.

Regarding my third suggestion, I suggested that the apps you select to add to the folder in ApMeFo be removed from the pop up menu because one might try to add two apps in different folders. What happens if that happens?

My first suggestion is not necessary if you implement selecting multiple items at a time. Maybe checkboxes? Opening the popup menu for each app is very slow, but allowing you to select multiple items will reduce the number of times you need to open the popup menu. So for the sake of stability this could be omitted.

Regarding my fifth suggestion I started the app normally, editted the folders (still can't create anything) and activated. Then deactivated and the menu was restored without the system becoming unresponsive. So this seems a bit random.

Anyway I will look into why i can't create folders when I get home. I am on my N900 and I have to look at the error on a different screen. Switching to xterm to see the error each time is too confusing.

So far it seems promising though. I missed the folders from Symbian. FYI I don't have catorise or MyMenu installed.

kamil365 2010-06-22 20:06

Re: [Announce] ApMeFo (beta 0.9-2) - Create custom folders in your Application Menu
 
Quote:

Originally Posted by pantera1989 (Post 725380)

I create a folder and get a message "Folder was successfuly created or saved". I can't remember the exact message. Then I added a few apps to test to the folder. Select update folder. Go to deactivate and I select activate. I get a message that it is activated. The result is a mess in the menu (regarding sorting). The apps I select into the folder are still in the menu and the folder is no where to be seen.


I have the same problem. Am I missing sth?

Idea of this app is so brilliant:)

Nathraiben 2010-06-22 20:14

Re: [Announce] ApMeFo (beta 0.9-2) - Create custom folders in your Application Menu
 
Quote:

Originally Posted by albertozerox (Post 725337)
If when I click to activate I get the message and I have not installed catorise or MyMenu , but hey it does not matter I hope future updates will serve me.

I do not want to be heavy

But you're not! Actually, those messages help me sort this out, so you're helping me by posting what's wrong! :)

Quote:

Originally Posted by ironm8 (Post 725353)
from personal experience you should uninstall catorise, it seems that it drains the battery faster, a proccess of his, is always working at 5% of CPU, quickly draining the battery. This was discussed, search the forums but thats my personal input, i really fealt a difference between having it or not.

I will now test apmefo :)

Ah, thanks - I think I understand now. So it seems Catorise intercepts the installation of applications, looks at what category they are stored at and directly writes them to the hildon.menu. Other than the battery drain that actually really neat.

So it IS superior to adding default categories, and that will be quite a big drawback of ApMeFo compared to Catorise. Then again, I never wanted to replace it, anyway. :D

Quote:

Originally Posted by stone17 (Post 725364)
instillation doesnt seem to work with pelota world cup widget. The icon shows up, but it doesnt start. apt-get -f install shows dependency problems with homescreen loader due to pelota widget.

Okay, you got me stumped there. Don't know enough about package dependencies (that's what you get for being a pampered Ubuntu user :D) to really understand what's going on. I'll try to learn more about this, but unless one of the experts happens to stroll in this might take a while.

Sorry for the inconveniences... :(

albertozerox 2010-06-22 20:35

Re: [Announce] ApMeFo (beta 0.9-2) - Create custom folders in your Application Menu
 
Apparently I'm not the only, and already are posting in some forums.

I hope it is resolved

Nathraiben 2010-06-22 20:56

Re: [Announce] ApMeFo (beta 0.9-2) - Create custom folders in your Application Menu
 
Quote:

Originally Posted by pantera1989 (Post 725380)
Regarding my fourth suggestion I do not know if the app automatically sorts alphabetically. I haven't been able to create a folder so far.

True, sorry I forgot that - yes, it should sort everything alphabetically. But good thing I misunderstood, since that led to the realisation that sorting the lists inside the application has to be done, too. :D

Quote:

I create a folder and get a message "Folder was successfuly created or saved". I can't remember the exact message. Then I added a few apps to test to the folder. Select update folder. Go to deactivate and I select activate. I get a message that it is activated. The result is a mess in the menu (regarding sorting). The apps I select into the folder are still in the menu and the folder is no where to be seen.
I'm staring at my code but for the life of me I can't find a reason for that. I now know why you're getting the success message despite folder creation failed, but I don't know why it fails in the first place.

This really shouldn't be a permission problem as all the files we're manipulating reside inside the home folder. I'll try to get further into this!

Quote:

Regarding my third suggestion, I suggested that the apps you select to add to the folder in ApMeFo be removed from the pop up menu because one might try to add two apps in different folders. What happens if that happens?
Ah, I see! No, that's actually not a problem. You can add applications to as many folders as you want - I actually have my browser in three different folders. :D

And even when you happen to add an application to a folder it's already in, nothing happens. The system used to store folders internally prevents duplicate entries.

Quote:

My first suggestion is not necessary if you implement selecting multiple items at a time. Maybe checkboxes? Opening the popup menu for each app is very slow, but allowing you to select multiple items will reduce the number of times you need to open the popup menu. So for the sake of stability this could be omitted.
Okay, I'll implement the multi selection so we can give it a try and see whether that makes waiting for the popup less of an annoyance.

Quote:

Regarding my fifth suggestion I started the app normally, editted the folders (still can't create anything) and activated. Then deactivated and the menu was restored without the system becoming unresponsive. So this seems a bit random.
I once thought about implementing a system that would wait for hildon to power down before editing hildon.menu - but not only would that require a daemon, it would also mean you would have to reboot after every change.

Guess all I can do right now is wait for someone (or something - PR 1.3? :D ) to find a way to make hildon less vulnerable to realtime changes.

Quote:

Anyway I will look into why i can't create folders when I get home. I am on my N900 and I have to look at the error on a different screen. Switching to xterm to see the error each time is too confusing.

So far it seems promising though. I missed the folders from Symbian. FYI I don't have catorise or MyMenu installed.
Thanks so much - not sure whether you realise how much you're helping with getting rid of those bugs and design shortcomings!

Quote:

Originally Posted by kamil365 (Post 725391)
I have the same problem. Am I missing sth?

No, I'm quite sure it's actually ME missing something. :D

With so many people getting the same error, at least I know that it's somewhere inside my code instead of a quirk of a single device.

Quote:

Idea of this app is so brilliant:)
All thanks should be directed towards the genii at the aforementioned thread (and the people who were asking to turn this into an actual application). I myself didn't contribute much to the idea, I was just the one stupid enough to say "I think this should be easy to do". :D

Quote:

Originally Posted by albertozerox (Post 725444)
Apparently I'm not the only, and already are posting in some forums.

I hope it is resolved

Thanks - like I said, knowing that a lot of people are getting this error is already helping a lot!


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

vBulletin® Version 3.8.8