maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Applications (https://talk.maemo.org/forumdisplay.php?f=41)
-   -   [Announce] Shortcut Stash Home Screen Widget (https://talk.maemo.org/showthread.php?t=65137)

d-iivil 2010-11-27 11:33

Re: [Announce] Shortcut Stash Home Screen Widget
 
I still find the background too visible compared to other theme elements (this is ofcourse theme related thing). So here's screenshot of my patched version, it takes the same image that current theme uses for app shortcuts and uses them as background of the "buttons":
http://dl.dropbox.com/u/6164962/Scre...127-132857.png

cutehunk04 2010-11-27 12:01

Re: [Announce] Shortcut Stash Home Screen Widget
 
finally got the app workin on m cell...thnks for guide Rooster, a good application....

rooster13 2010-11-27 13:04

Re: [Announce] Shortcut Stash Home Screen Widget
 
Quote:

Originally Posted by BluesLee (Post 884262)
@rooster13: thank you for this useful widget. some comments/wishes:

1) use of filebox instead of the default fm
2) list of bookmarks are incomplete, folders dont appear
3) vertical mode
4) if an app is already opened (for instance xterm) maemostash should switch to that app instead of doing nothing


Blues

Thanks for suggestions and bug report. I will have a look at the suggestions, but can not promise to fulfill them.

For the MyBookmarks.xml parsing I would need an example file because I don't know how you guys set your folders up. If someone could provide one that would help very much.

rooster13 2010-11-27 13:05

Re: [Announce] Shortcut Stash Home Screen Widget
 
Quote:

Originally Posted by d-iivil (Post 884312)
I still find the background too visible compared to other theme elements (this is ofcourse theme related thing). So here's screenshot of my patched version, it takes the same image that current theme uses for app shortcuts and uses them as background of the "buttons":
http://dl.dropbox.com/u/6164962/Scre...127-132857.png

Kiitos d-iivil.

Maybe what the app needs is settings for the transparency. 'cause to my liking it's fine. I will check this one out.

rooster13 2010-11-27 13:06

Re: [Announce] Shortcut Stash Home Screen Widget
 
Quote:

Originally Posted by cutehunk04 (Post 884329)
finally got the app workin on m cell...thnks for guide Rooster, a good application....

Very good news, thanks for testing it.

d-iivil 2010-11-27 14:32

Re: [Announce] Shortcut Stash Home Screen Widget
 
Quote:

Originally Posted by rooster13 (Post 884352)
Kiitos d-iivil.

Maybe what the app needs is settings for the transparency. 'cause to my liking it's fine. I will check this one out.

If you end up using PNG image as backround, then I can make my Theme Customizer also change the opacity of the widget ;)

rooster13 2010-11-27 15:39

Re: [Announce] Shortcut Stash Home Screen Widget
 
Quote:

Originally Posted by d-iivil (Post 884401)
If you end up using PNG image as backround, then I can make my Theme Customizer also change the opacity of the widget ;)

That is unlikely, because I am using QButtons on the widget to get the pressed state.

d-iivil 2010-11-27 15:48

Re: [Announce] Shortcut Stash Home Screen Widget
 
Quote:

Originally Posted by rooster13 (Post 884441)
That is unlikely, because I am using QButtons on the widget to get the pressed state.

In my example I use png images as button backgrounds. Just use "border-image: url(xxxxxx)" in your stylesheet.

rooster13 2010-11-27 17:10

Re: [Announce] Shortcut Stash Home Screen Widget
 
Quote:

Originally Posted by d-iivil (Post 884447)
In my example I use png images as button backgrounds. Just use "border-image: url(xxxxxx)" in your stylesheet.

Ok, I have to check that, thanks.

d-iivil 2010-11-27 17:25

Re: [Announce] Shortcut Stash Home Screen Widget
 
Quote:

Originally Posted by rooster13 (Post 884492)
Ok, I have to check that, thanks.

Or if you wanna stick with your current design (one "dock" keeping three buttons inside), just use one large image as background for the widget and use solid colors in stylesheet for button pressed states :)

Or then just add the option to configure the opacity value of the solid background color :P

Either way, great widget, using it all the time.

rooster13 2010-11-27 17:31

Re: [Announce] Shortcut Stash Home Screen Widget
 
Quote:

Originally Posted by d-iivil (Post 884501)
Or if you wanna stick with your current design (one "dock" keeping three buttons inside), just use one large image as background for the widget and use solid colors in stylesheet for button pressed states :)

Or then just add the option to configure the opacity value of the solid background color :P

Either way, great widget, using it all the time.

Thanks for the suggestions. I guess I'll first try the settings way. If that does not work out I'll try the others.

rooster13 2010-11-27 17:52

Re: [Announce] Shortcut Stash Home Screen Widget
 
Shortcut Stash is now in Extras-Testing!

I don't know how politically correct it is to ask you guys to vote for Shortcut Stash, but I'll do it anyway :)

Please vote here.

nicolai 2010-11-27 18:30

Re: [Announce] Shortcut Stash Home Screen Widget
 
Is it only me or has no one tried to open a folder?
When I try to open a folder, shortcut stash opens the
maemo filemanager, and then nothing happens. The
filemanager hangs and I have to kill it.

Nicolai

rooster13 2010-11-27 18:47

Re: [Announce] Shortcut Stash Home Screen Widget
 
Quote:

Originally Posted by nicolai (Post 884551)
Is it only me or has no one tried to open a folder?
When I try to open a folder, shortcut stash opens the
maemo filemanager, and then nothing happens. The
filemanager hangs and I have to kill it.

Nicolai

Nope u r not the only one :) I have noticed that with some folders the FileManager freezes after trying to open a folder. Most of the times it works though. I have noticed that this happens especially when a folder is all lower case. Don't know whether that has something to do with it.

I have to check if the dbus call has some bug in it.

Thanks for pointing this out Nicolai.

EDIT: I found this bug report so there actually is something wrong with the dbus call. :( I try to look for a workaround. If someone has any ideas on solving this, post here.

nicolai 2010-11-27 19:02

Re: [Announce] Shortcut Stash Home Screen Widget
 
It allways works for the "builtin" folders like
Audioclips, Images, Camera, Documents ...

But not for any other folder.

Nicolai

rooster13 2010-11-27 19:12

Re: [Announce] Shortcut Stash Home Screen Widget
 
Quote:

Originally Posted by nicolai (Post 884569)
It allways works for the "builtin" folders like
Audioclips, Images, Camera, Documents ...

But not for any other folder.

Nicolai

It seems to work occasionally. The first time it doesn't but when u try again on the same folder it works. After that it works couple of times even with a different folder and then again not working.

Have check this. Very annoying :(

leojab 2010-11-28 00:07

Re: [Announce] Shortcut Stash Home Screen Widget
 
ytou may try to use filebox instead of filemanager

nicolai 2010-11-28 00:38

Re: [Announce] Shortcut Stash Home Screen Widget
 
Quote:

Originally Posted by rooster13 (Post 884573)
It seems to work occasionally. The first time it doesn't but when u try again on the same folder it works. After that it works couple of times even with a different folder and then again not working.

Have check this. Very annoying :(

Ok, I think it has nothing to do with maemostash.
I tried the dbus-call with different folders.
And only the "builtin" folders (.documents, .sounds, DCIM ...)
are working. For all other folders, the filemanager opens in the
default view and hangs.
dbus-call:

this one works:
dbus-send --print-reply --type=method_call --dest=com.nokia.osso_filemanager /com/nokia/osso_filemanager com.nokia.osso_filemanager.open_folder string:/home/user/MyDocs/.documents

this one (and many other) don't work
dbus-send --print-reply --type=method_call --dest=com.nokia.osso_filemanager /com/nokia/osso_filemanager com.nokia.osso_filemanager.open_folder string:/home/user/MyDocs/FCamera

Nicolai

rooster13 2010-11-28 07:49

Re: [Announce] Shortcut Stash Home Screen Widget
 
Quote:

Originally Posted by nicolai (Post 884708)
Ok, I think it has nothing to do with maemostash.
I tried the dbus-call with different folders.
And only the "builtin" folders (.documents, .sounds, DCIM ...)
are working. For all other folders, the filemanager opens in the
default view and hangs.
dbus-call:

this one works:
dbus-send --print-reply --type=method_call --dest=com.nokia.osso_filemanager /com/nokia/osso_filemanager com.nokia.osso_filemanager.open_folder string:/home/user/MyDocs/.documents

this one (and many other) don't work
dbus-send --print-reply --type=method_call --dest=com.nokia.osso_filemanager /com/nokia/osso_filemanager com.nokia.osso_filemanager.open_folder string:/home/user/MyDocs/FCamera

Nicolai

Thanks for this. But even that Shortcut Stash is not the problem it would be nice if this could be fixed somehow. I have to look into using filebox if one has it installed.

xenomorph72 2010-11-28 08:19

Re: [Announce] Shortcut Stash Home Screen Widget
 
Quote:

Originally Posted by rooster13 (Post 884531)
Shortcut Stash is now in Extras-Testing!

I don't know how politically correct it is to ask you guys to vote for Shortcut Stash, but I'll do it anyway :)

Please vote here.


Voted!

awesome app

rooster13 2010-11-28 08:38

Re: [Announce] Shortcut Stash Home Screen Widget
 
Quote:

Originally Posted by xenomorph72 (Post 884840)
Voted!

awesome app

Thank you!

moepda 2010-11-28 08:50

Re: [Announce] Shortcut Stash Home Screen Widget
 
likewise big thumbs up from me !!! vote added :)

rooster13 2010-11-28 09:13

Re: [Announce] Shortcut Stash Home Screen Widget
 
Quote:

Originally Posted by moepda (Post 884845)
likewise big thumbs up from me !!! vote added :)

Thank you!

nicolai 2010-11-28 11:07

Re: [Announce] Shortcut Stash Home Screen Widget
 
Funny, you can use a dbus-call, for example:

dbus-send --print-reply --type=method_call --dest=com.nokia.osso_filemanager /com/nokia/osso_filemanager com.nokia.osso_filemanager.open_folder string:/home/user/MyDocs/FCamera

to open any folder, but you have to make sure, that the filemanager
is already open.

So, from commandline I can always open any
folder under MyDocs, if I make two calls

dbus-send --print-reply --type=method_call --dest=com.nokia.osso_filemanager /com/nokia/osso_filemanager com.nokia.osso_filemanager.open_folder string:/home/user/MyDocs/

and then for example:
dbus-send --print-reply --type=method_call --dest=com.nokia.osso_filemanager /com/nokia/osso_filemanager com.nokia.osso_filemanager.open_folder string:/home/user/MyDocs/FCamera

Can you try if this is working from maemostash as well,
I mean: making two dbus-calls.

nicolai

rooster13 2010-11-28 13:14

Re: [Announce] Shortcut Stash Home Screen Widget
 
Quote:

Originally Posted by nicolai (Post 884900)
Funny, you can use a dbus-call, for example:

dbus-send --print-reply --type=method_call --dest=com.nokia.osso_filemanager /com/nokia/osso_filemanager com.nokia.osso_filemanager.open_folder string:/home/user/MyDocs/FCamera

to open any folder, but you have to make sure, that the filemanager
is already open.

So, from commandline I can always open any
folder under MyDocs, if I make two calls

dbus-send --print-reply --type=method_call --dest=com.nokia.osso_filemanager /com/nokia/osso_filemanager com.nokia.osso_filemanager.open_folder string:/home/user/MyDocs/

and then for example:
dbus-send --print-reply --type=method_call --dest=com.nokia.osso_filemanager /com/nokia/osso_filemanager com.nokia.osso_filemanager.open_folder string:/home/user/MyDocs/FCamera

Can you try if this is working from maemostash as well,
I mean: making two dbus-calls.

nicolai

Excellent idea Nicolai. I will try changing the open folder method so that it first opens the FileManager and then opens the folder.

rooster13 2010-11-28 17:56

Re: [Announce] Shortcut Stash Home Screen Widget
 
I have released a new version of Shortcut Stash.
Version 0.1-6 is now available, and it is trying to fix the Filemanager open folder issue.

Please update and test it.

rooster13 2010-11-28 18:29

Re: [Announce] Shortcut Stash Home Screen Widget
 
Bugger!

Does not work every time :(.

I am calling the DBus, first open Filemanager and then goto to the desired directory like this:
Code:

QDBusInterface fileManagerd1("com.nokia.HildonDesktop.AppMgr",
                            "/com/nokia/HildonDesktop/AppMgr",
                            "com.nokia.HildonDesktop.AppMgr");
fileManagerd1.call("LaunchApplication", "/usr/bin/ossofilemanager");
QDBusInterface fileManagerd2("com.nokia.osso_filemanager",
                            "/com/nokia/osso_filemanager",
                            "com.nokia.osso_filemanager");
fileManagerd2.call("open_folder", item->data(Qt::UserRole).toString());

I was in the belief that the QDBusInterface.call would return only after it has finished, but that does not seem to be the case. Should I use some other type of call or try to make the main thread sleep for a while? I personnally don't like the sleep idea, but is there any other way?

d-iivil 2010-11-28 19:27

Re: [Announce] Shortcut Stash Home Screen Widget
 
Quote:

Originally Posted by rooster13 (Post 885134)
Bugger!

Does not work every time :(.

I am calling the DBus, first open Filemanager and then goto to the desired directory like this:
Code:

QDBusInterface fileManagerd1("com.nokia.HildonDesktop.AppMgr",
                            "/com/nokia/HildonDesktop/AppMgr",
                            "com.nokia.HildonDesktop.AppMgr");
fileManagerd1.call("LaunchApplication", "/usr/bin/ossofilemanager");
QDBusInterface fileManagerd2("com.nokia.osso_filemanager",
                            "/com/nokia/osso_filemanager",
                            "com.nokia.osso_filemanager");
fileManagerd2.call("open_folder", item->data(Qt::UserRole).toString());

I was in the belief that the QDBusInterface.call would return only after it has finished, but that does not seem to be the case. Should I use some other type of call or try to make the main thread sleep for a while? I personnally don't like the sleep idea, but is there any other way?

One way to do it would be call the dbus-message via QProcess and use waitForFinished -attribute.

edit:
Code:

QStringList arguments;
arguments << "run-standalone.sh dbus-send --type=method_call xxxx";
QProcess *process0 = new QProcess(this);
process0->start(arguments);
process0->waitForFinished();


rooster13 2010-11-28 19:40

Re: [Announce] Shortcut Stash Home Screen Widget
 
Quote:

Originally Posted by d-iivil (Post 885168)
One way to do it would be call the dbus-message via QProcess and use waitForFinished -attribute.

edit:
Code:

QStringList arguments;
arguments << "run-standalone.sh dbus-send --type=method_call xxxx";
QProcess *process0 = new QProcess(this);
process0->start(arguments);
process0->waitForFinished();


Kiitos d-iivil,

I will first try like this:
Code:

QDBusInterface fileManagerd("com.nokia.osso_filemanager",
                                        "/com/nokia/osso_filemanager",
                                        "com.nokia.osso_filemanager");
            QDBusReply<int> reply = fileManagerd.call("open_folder", "/home/user/MyDocs");
            if (reply.isValid())
            {
                fileManagerd.call("open_folder", item->data(Qt::UserRole).toString());
            }

If that does not work I'll try your way.
I guess the problem in my first try was that I was using two QDBusInterface objects instead of one.

rooster13 2010-11-28 21:57

Re: [Announce] Shortcut Stash Home Screen Widget
 
Quote:

Originally Posted by d-iivil (Post 885168)
One way to do it would be call the dbus-message via QProcess and use waitForFinished -attribute.

edit:
Code:

QStringList arguments;
arguments << "run-standalone.sh dbus-send --type=method_call xxxx";
QProcess *process0 = new QProcess(this);
process0->start(arguments);
process0->waitForFinished();


Hi d-iivil,

I tried your method like this:
Code:

QProcess *proc = new QProcess(this);
proc->start("run-standalone.sh dbus-send --type=method_call --dest=com.nokia.osso_filemanager /com/nokia/osso_filemanager com.nokia.osso_filemanager.open_folder string:/home/user/MyDocs");
proc->waitForFinished();
QDBusInterface fileManagerd("com.nokia.osso_filemanager",
                            "/com/nokia/osso_filemanager",
                            "com.nokia.osso_filemanager");
fileManagerd.call("open_folder", item->data(Qt::UserRole).toString());

But still the same result first time it does not work and most of the time the second time it works.

rooster13 2010-12-05 18:12

Re: [Announce] Shortcut Stash Home Screen Widget
 
Hi all,

as you may have noticed I have done some new releases.
I am trying to fix the bug where user defined folder under MyDocs does not open.
With help from Nicolai and d-iivil I have some kind of a solution but it is not working all the time. If you test please post your results to this thread.

I also made background of the widget more lighter, hope it suits everybody better now.

One more thing I noticed is that upon update the background becomes darker and you have to remove the widget and add it again. Any suggestions on this issue are welcome because I haven't found a solution yet for this issue.

Laughing Man 2010-12-05 20:34

Re: [Announce] Shortcut Stash Home Screen Widget
 
Doesn't work for me. First time I click on a folder it opens up File Manager. Second time it just freezes up.

rooster13 2010-12-05 21:17

Re: [Announce] Shortcut Stash Home Screen Widget
 
Quote:

Originally Posted by Laughing Man (Post 890041)
Doesn't work for me. First time I click on a folder it opens up File Manager. Second time it just freezes up.

And you have v. 0.1-11 installed?
That's funny 'cause on that version I get the freeze on the first time and the second time it usually works fine.

Well anyways have continue finding a fix for it.

Thanks for testing Laughing Man.

BluesLee 2010-12-05 21:26

Re: [Announce] Shortcut Stash Home Screen Widget
 
i have some double entries (email, contacts, internet etc)
when i click on the application list, same with quick launch
and the the app search widget. anyone else with this problem
and how to fix it?


Blues

rooster13 2010-12-05 21:36

Re: [Announce] Shortcut Stash Home Screen Widget
 
Quote:

Originally Posted by BluesLee (Post 890086)
i have some double entries (email, contacts, internet etc)
when i click on the application list, same with quick launch
and the the app search widget. anyone else with this problem
and how to fix it?


Blues

Sounds like u r having double desktop files in there. Should not of course have.
Could u please check what you have in dir: /usr/share/applications/hildon, are there any duplicates in there?

Laughing Man 2010-12-05 21:58

Re: [Announce] Shortcut Stash Home Screen Widget
 
Quote:

Originally Posted by rooster13 (Post 890077)
And you have v. 0.1-11 installed?
That's funny 'cause on that version I get the freeze on the first time and the second time it usually works fine.

Well anyways have continue finding a fix for it.

Thanks for testing Laughing Man.

Yup, I have the latest one in extras-devel installed. Also interesting (if not noted yet) is that bookmarks only show up if they are one level deep. Any bookmarks two or three folders deep won't show up.

rooster13 2010-12-05 22:06

Re: [Announce] Shortcut Stash Home Screen Widget
 
Quote:

Originally Posted by Laughing Man (Post 890123)
Yup, I have the latest one in extras-devel installed. Also interesting (if not noted yet) is that bookmarks only show up if they are one level deep. Any bookmarks two or three folders deep won't show up.

Ok good since the older version worked even worse than the newest one.

The bookmark issue is noted and will get a fix in the near future.
I just wasn't thinkin' that you guys put folders in folders :). So I just need to parse the XML so that it goes all the way down to the last folder.

xperto 2010-12-05 23:53

Re: [Announce] Shortcut Stash Home Screen Widget
 
i installed it yesterday.. and everytime i browsed through the filemanager icon it took me to the filemanager.. and today suddenly it disappeared.. i cant mind it on add widget.. and when i try to install it via xterm it says the newest version is intalled. any help?

Edit: it works now. removed it and reinstalled it. But the filemanger thing still doesnt work.

rooster13 2010-12-06 08:14

Re: [Announce] Shortcut Stash Home Screen Widget
 
Quote:

Originally Posted by xperto (Post 890226)
i installed it yesterday.. and everytime i browsed through the filemanager icon it took me to the filemanager.. and today suddenly it disappeared.. i cant mind it on add widget.. and when i try to install it via xterm it says the newest version is intalled. any help?

Edit: it works now. removed it and reinstalled it. But the filemanger thing still doesnt work.

Good to hear you got it working. You could have uninstalled it from X-Term as root by running the command:
Code:

dpkg -r MaemoStash

xperto 2010-12-06 11:35

Re: [Announce] Shortcut Stash Home Screen Widget
 
Quote:

Originally Posted by rooster13 (Post 890411)
Good to hear you got it working. You could have uninstalled it from X-Term as root by running the command:
Code:

dpkg -r MaemoStash

thanks. i did follow that in xterm. waiting for the filemanger fix


All times are GMT. The time now is 05:00.

vBulletin® Version 3.8.8