maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Nokia N900 (https://talk.maemo.org/forumdisplay.php?f=44)
-   -   can we add file as picures ot pdf in our desktop?? (https://talk.maemo.org/showthread.php?t=49571)

andrew_85 2010-04-08 23:36

can we add file as picures ot pdf in our desktop??
 
Hi guys seeing that I always need to get in faster way some file I d like to know if there is some way to add it in our desktop as shortcut .
I'm talking about pictures and pdf!
any suggestion??

thanks

dsawhney 2010-04-09 00:20

Re: can we add file as picures ot pdf in our desktop??
 
Create a browser bookmark with location of the file - e.g., "file:///home/user/MyDocs/.documents/image.jpg" . You can then put this bookmark on the desktop. It should work for pdf files too.

MOC 2010-04-09 08:32

Re: can we add file as picures ot pdf in our desktop??
 
Quote:

Originally Posted by dsawhney (Post 602003)
Create a browser bookmark with location of the file - e.g., "file:///home/user/MyDocs/.documents/image.jpg" . You can then put this bookmark on the desktop. It should work for pdf files too.

It does indeed. I just wish that it was a part of the system instead of having us make it up ourself.

Here's a related tip I wrote some time ago. http://talk.maemo.org/showthread.php?t=45411

ossipena 2010-04-09 08:36

Re: can we add file as picures ot pdf in our desktop??
 
how hard would it be to add a quick and dirty python file dialog plus two buttons: ok and exit that does that trick?

so you
-open the program
-select the file
-click ok
-admire the automatically created shortcut at your desktop

does someone have a good example for python file dialog? I could try to come up with something.

lennartb 2010-04-09 14:38

Re: can we add file as picures ot pdf in our desktop??
 
Would be great, the web browser link works but that gives you a rather large thing for your desktop, would love to have some small icons for some often-used files :)

dsawhney 2010-04-09 19:23

Re: can we add file as picures ot pdf in our desktop??
 
Quote:

Originally Posted by lennartb (Post 602923)
Would be great, the web browser link works but that gives you a rather large thing for your desktop, would love to have some small icons for some often-used files :)

For small icons, create a desktop file in /usr/share/applications/hildon, take a look at the syntax of the ovi store desktop file and change the "http://.." link to "file:///..." . You can also specify icon of your choice. More info in this thread - http://talk.maemo.org/showthread.php...light=bookmark

ossipena 2010-04-13 10:08

Re: can we add file as picures ot pdf in our desktop??
 
1 Attachment(s)
just got ui kinda working.

now only communication with file dialog that opens with browse and the text box plus function to write actual shortcut and it will be somewhat functional.

it might take still a lot time so dont get your hopes up.

qwerty12 2010-04-13 10:19

Re: can we add file as picures ot pdf in our desktop??
 
Quote:

Originally Posted by ossipena (Post 608312)
[...]plus function to write actual shortcut and it will be somewhat functional.

That one is easy: http://maemo.org/api_refs/5.0/5.0-fi...kmark-shortcut

That said, I don't think the python-hildondesktop bindings wrap that function, so you may have to use ctypes.

ossipena 2010-04-14 05:22

Re: can we add file as picures ot pdf in our desktop??
 
Quote:

Originally Posted by qwerty12 (Post 608326)
That one is easy: http://maemo.org/api_refs/5.0/5.0-fi...kmark-shortcut

That said, I don't think the python-hildondesktop bindings wrap that function, so you may have to use ctypes.

thanks a LOT. that saved about 10+ hours of my time writing the shortcut adding function from scratch.

Now I only have to figure out how the naming should be done for the shortcuts. (and if I want to add icons for shortcuts....)

ossipena 2010-04-16 11:44

Re: can we add file as picures ot pdf in our desktop??
 
status report: struggling with icons.

If someone knows where the appropriate icon files for nokias official icons can be found, let me know. those would need to be 160x96. If proper icons can't be found, I must do those by hand and start seriously learning how to package .py plus icons and put those to correct places when installing.

and some opinions what kind of files you want to put to desktop. you can put any file but icons for every filetype must be added separately.

e: and considered changing ui. quit to top and create link to bottom: if you press ok to file dialog and ui freezes for a second, you end up pressing ok again and it is registered as a press of quit -button.


All times are GMT. The time now is 12:01.

vBulletin® Version 3.8.8