Active Topics

 


Reply
Thread Tools
Posts: 282 | Thanked: 18 times | Joined on Mar 2010
#1
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
 
Posts: 313 | Thanked: 247 times | Joined on Jan 2010 @ USA
#2
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.
 

The Following 2 Users Say Thank You to dsawhney For This Useful Post:
Posts: 78 | Thanked: 32 times | Joined on May 2008
#3
Originally Posted by dsawhney View Post
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's Avatar
Posts: 3,159 | Thanked: 2,023 times | Joined on Feb 2008 @ Finland
#4
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.
__________________
Want to know something?
K.I.S.S. approach:
wiki category:beginners. Browse it through and you'll be much wiser!
If the link doesn't help, just use
Google Custom Search
 

The Following 2 Users Say Thank You to ossipena For This Useful Post:
lennartb's Avatar
Posts: 77 | Thanked: 71 times | Joined on Feb 2010 @ Groningen, Netherlands
#5
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
 
Posts: 313 | Thanked: 247 times | Joined on Jan 2010 @ USA
#6
Originally Posted by lennartb View Post
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's Avatar
Posts: 3,159 | Thanked: 2,023 times | Joined on Feb 2008 @ Finland
#7
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.
Attached Images
 
__________________
Want to know something?
K.I.S.S. approach:
wiki category:beginners. Browse it through and you'll be much wiser!
If the link doesn't help, just use
Google Custom Search
 
qwerty12's Avatar
Posts: 4,274 | Thanked: 5,358 times | Joined on Sep 2007 @ Looking at y'all and sighing
#8
Originally Posted by ossipena View Post
[...]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.
 

The Following User Says Thank You to qwerty12 For This Useful Post:
ossipena's Avatar
Posts: 3,159 | Thanked: 2,023 times | Joined on Feb 2008 @ Finland
#9
Originally Posted by qwerty12 View Post
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....)
__________________
Want to know something?
K.I.S.S. approach:
wiki category:beginners. Browse it through and you'll be much wiser!
If the link doesn't help, just use
Google Custom Search
 

The Following User Says Thank You to ossipena For This Useful Post:
ossipena's Avatar
Posts: 3,159 | Thanked: 2,023 times | Joined on Feb 2008 @ Finland
#10
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.
__________________
Want to know something?
K.I.S.S. approach:
wiki category:beginners. Browse it through and you'll be much wiser!
If the link doesn't help, just use
Google Custom Search
 
Reply


 
Forum Jump


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