OESF Portables Forum

General Forums => General Discussion => Topic started by: beresmed on September 12, 2005, 08:34:57 am

Title: Desktop Icon?
Post by: beresmed on September 12, 2005, 08:34:57 am
I have Zaurus C-700 and i want to know is possible to put on desktop any link of some document saved on my CF card to quickly open that document?
Title: Desktop Icon?
Post by: drnick on September 12, 2005, 09:04:12 am
Quote
I have Zaurus C-700 and i want to know is possible to put on desktop any link of some document saved on my CF card to quickly open that document?
[div align=\"right\"][a href=\"index.php?act=findpost&pid=95509\"][{POST_SNAPBACK}][/a][/div]

<disclaimer>I haven't tried this so it might not be right at all</disclaimer>
you could goto the settings tab and click on the tab settings icon.  in there you can add new shortcuts to programs.  The same should apply to documents and the like.  So if you wanted to add a shortcut to your document you could just type the path such as /mnt/cf/document.doc , give it an icon, and a name, and if the mime types are set correctly it should open in hancom or whatever the mime is set for document files.

Alternitively, you could locate the .desktop files on your Z (/home/QtPalmtop/desktop i think). copy one of them and edit it to reflect the path to your document.

If anyone knows that this wont work feel free to correct me.  I'm at work and dont have my Z with me to test this.
Title: Desktop Icon?
Post by: bluedevils on September 12, 2005, 09:35:30 am
If that doesn't work, you are usually able pass options through using the tab settings app.  It might be possible to e.g. startup hancom word and give the document name.
Title: Desktop Icon?
Post by: drnick on September 12, 2005, 11:13:25 am
Quote
If that doesn't work, you are usually able pass options through using the tab settings app.  It might be possible to e.g. startup hancom word and give the document name.
[div align=\"right\"][a href=\"index.php?act=findpost&pid=95525\"][{POST_SNAPBACK}][/a][/div]

just to make things clearer i believe he means that instead of just giving the path to the document in the desktop shortcut but to start the program along with it.

ie. make the shortcut point to "hancomword /mnt/cf/document.doc" i do not believe that you will need to use any flags after the program name to open the document
Title: Desktop Icon?
Post by: bluedevils on September 12, 2005, 12:13:43 pm
yes, but I just tried it and the tab settings app didn't like it.
Title: Desktop Icon?
Post by: Stubear on September 12, 2005, 11:19:14 pm
You can't pass arguments with the applicatuion name in the desktop file.

If you want/need arguments then you need to create a shell script and call the script for the desktop icon.

Code: [Select]
#!/bin/sh
hancomword /mnt/cf/document.doc

save that as something like "docstart.sh", chmod it to 755 so that it becomes and executable, copy it to /home/QtPalmtop/bin (or anywhere else in your PATH) and call docstart.sh from the desktop icon.

Stu
Title: Desktop Icon?
Post by: bluedevils on September 13, 2005, 12:57:54 am
very true stubear though I wonder if this may be more involved than what the original poster wanted.  I mean anyone can just go to the files tab and just open it there.
Title: Desktop Icon?
Post by: beresmed on September 13, 2005, 03:16:16 am
Thanks on all advices! I will try that!