![]() |
Can I open a specific file through Personal Menu?
Does anyone know if / how I can rig my Personal Menu to open a specific PDF file? I'm reading a copy of Peter Watts Blindsight (which is awesome, btw) in PDF format, and I'd like to be able to open it directly through Personal Menu, without having to open the PDF Reader first, then select the specific file.
Thanks in advance for your consideration. |
Re: Can I open a specific file through Personal Menu?
Name: <Dunno :) >
Command to execute: run-standalone.sh dbus-send --print-reply --dest=com.nokia.osso_pdfviewer /com/nokia/osso_pdfviewer com.nokia.osso_pdfviewer.mime_open string:'file://<path to pdf>' DBUS Service Name: <Blank> Run in teminal: <Unchecked> Run as root: <Unchecked> |
Re: Can I open a specific file through Personal Menu?
Thanks for the reply. I've tried the command you suggested, but I can't seem to get it to work. I'm guessing the problem is my syntax. I've entered
Code:
run-standalone.sh dbus-send --print-reply -dest=com.nokia.osso_pdfviewer /com/nokia/osso_pdfviewer com.nokia.osso_pdfviewer.mime_open string:'file://</media/mmc2/tmp/'Peter Watts - Blindsight.pdf'>' Thanks again. |
Re: Can I open a specific file through Personal Menu?
Quote:
It's --dest - not -dest The '<'s and the '>'s were placeholders - sorry for not making that clear The path requires the '/' as a *nix path usually has, the '//'s are part of the 'file:' (like http etc) |
Re: Can I open a specific file through Personal Menu?
Perfect! Thanks again!
|
Re: Can I open a specific file through Personal Menu?
For the N900 I couldn't find an easy way of opening a pdf stored on the ext3 partition. This solution worked brilliantly!
In case it's useful for anyone I've wrapped it up in a very rudimentary shell script below. If there's an easier way of doing this then someone please shout! It's annoying that osso_pdfviewer [filename(s)...] doesn't work, but there we go. Here's the script (I've saved as /usr/bin/openpdf and then use openpdf [filename(s)...] from the command line): Code:
#!/bin/sh |
Re: Can I open a specific file through Personal Menu?
Nice, but it doesn't work for me with Desctop Command Execution Widget.
|
Re: Can I open a specific file through Personal Menu?
Ok, it works.now, just had a whitespace in the path
|
All times are GMT. The time now is 04:16. |
vBulletin® Version 3.8.8