revolution IDE internal setup (pdf-viewer)

LiveCode is the premier environment for creating multi-platform solutions for all major operating systems - Windows, Mac OS X, Linux, the Web, Server environments and Mobile platforms. Brand new to LiveCode? Welcome!

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
HelmutMueller
Posts: 17
Joined: Tue May 20, 2008 12:21 pm

revolution IDE internal setup (pdf-viewer)

Post by HelmutMueller » Fri May 30, 2008 7:32 am

Hello all,

I'm not sure if this is the best fiiting topic, but never the less, does anybody has an idea how the Revolution IDE (Linux version) can be configured to use a specific PDF viewer to show the downloaded PDF from within the help-app ?

The background is that on some systems I tried it fired up Kghostviewm on an other system (installed to solve my other prob) it is not able to start a viewer, nothing happens.

So how is determined which app is used to show pdfs ? How can this be changed ? What could be the reason why pdfs cant be shown out of revolution?

Thanks in advance,

Helmut

HelmutMueller
Posts: 17
Joined: Tue May 20, 2008 12:21 pm

Post by HelmutMueller » Fri May 30, 2008 8:05 am

Solved,

you have to rewrite the Revolution Documentation App for proper operation within Linux:

change

Code: Select all

revGoPDF tFile
to

Code: Select all

launch tFile with kpdf
or whatever you want to use.

Scary that the helpertools do not work proper on the Platform you (me) have licensed ...

Helmut

Mark
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 5150
Joined: Thu Feb 23, 2006 9:24 pm
Contact:

Post by Mark » Fri May 30, 2008 11:15 am

Hi Helmut,

If you have Linux set up properly, your PDF should automatically open with the default application. There shouldn't be a need to re-write the IDE.

Best,

Mark
The biggest LiveCode group on Facebook: https://www.facebook.com/groups/livecode.developers
The book "Programming LiveCode for the Real Beginner"! Get it here! http://tinyurl.com/book-livecode

HelmutMueller
Posts: 17
Joined: Tue May 20, 2008 12:21 pm

Post by HelmutMueller » Fri May 30, 2008 11:58 am

Hi Mark

I thougt the same, but the documentation says that

at least revGoURL is depreciated since 2.9, one should use launch url instead, this item links to launch document that should open a doc with the appropriate application,
Examples:
launch document "/myProjects/myRevolutionProject/help.pdf"
so this seems to be the correct command to open a pdf in Revolution 2.9

but:

launchDocument is not supportet on linux

btw: the command revGoPDF that is used in the stack couldn't be found in the documentation.

I have tried in different Distributions with setups that support pdf-viewing just with double-click.

Perhaps this is an item forced by kde4, i don know. With the codechange everythin works like expected and it seems to be consistent with the syntax.

Thanks, Helmut

Tim
Posts: 29
Joined: Wed Oct 31, 2007 12:56 pm

Post by Tim » Fri May 30, 2008 12:36 pm

Hi Helmut,

Just a quick note : launch document is supported on Linux, even though its not marked as being supported... I must get the document entry changed.

Regards,

Tim.

Post Reply