Index » PageStream Support » Linux » launch from project icon
Sign in to add a comment. Pages: 1
2004-09-01 22:01:16 CT #1
David Herman
From: United States
Registered: 2006-02-14
Posts: 94

I use kde3.3 and am wondering what I need to do to launch Pagestream 4
and load a project from the projects icon.

I've set the filetype (.pgs) in konqueror's settings so that the command
'/opt/pgs/41/Run PageStream4Pro' is executed when a *.pgs icon is
clicked, this opens pagestream, but the project is not loaded.
What do I need to add to get this functionality?

Thanks
--
dh

2004-09-02 19:45:54 CT #2
Tim Doty
From: United States
Registered: 2006-02-06
Posts: 2939

On Thursday 02 September 2004 12:01 am, David Herman wrote:
> I use kde3.3 and am wondering what I need to do to launch Pagestream 4
> and load a project from the projects icon.
>
> I've set the filetype (.pgs) in konqueror's settings so that the command
> '/opt/pgs/41/Run PageStream4Pro' is executed when a *.pgs icon is
> clicked, this opens pagestream, but the project is not loaded.
> What do I need to add to get this functionality?

Add %U as an argument to the script. Also, the script will need a $1 argument
to PageStream. I thought I had this working before, but in setting this up I
discovered KDE didn't seem to like the space in the script name so I ended up
with the following:

Run_PageStream4
-----start-of-file------
#!/bin/bash
export PGSPATH=`dirname "$0"`
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$PGSPATH/SoftLogik/lib
export PATH=$PATH:$PGSPATH
$PGSPATH/PageStream4 "$1"
exit 0
-----end-of-file------

I'm not a bash expert, but I put the $1 in quotes to avoid presumed problems
with filenames containing spaces.

Tim Doty

2004-09-03 00:26:13 CT #3
David Herman
From: United States
Registered: 2006-02-14
Posts: 94

On Thu September 2 2004 5:45 pm, Tim Doty wrote:
> On Thursday 02 September 2004 12:01 am, David Herman wrote:
> > I use kde3.3 and am wondering what I need to do to launch
> > Pagestream 4 and load a project from the projects icon.
> >
> > I've set the filetype (.pgs) in konqueror's settings so that the
> > command '/opt/pgs/41/Run PageStream4Pro' is executed when a *.pgs
> > icon is clicked, this opens pagestream, but the project is not
> > loaded. What do I need to add to get this functionality?
>
> Add %U as an argument to the script. Also, the script will need a $1
> argument to PageStream. I thought I had this working before, but in
> setting this up I discovered KDE didn't seem to like the space in the
> script name so I ended up with the following:
>
> Run_PageStream4
> -----start-of-file------
> #!/bin/bash
> export PGSPATH=`dirname "$0"`
> export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$PGSPATH/SoftLogik/lib
> export PATH=$PATH:$PGSPATH
> $PGSPATH/PageStream4 "$1"
> exit 0
> -----end-of-file------
>
> I'm not a bash expert, but I put the $1 in quotes to avoid presumed
> problems with filenames containing spaces.

Tim, your tip worked great, I created a new version of the Run
PageStream4Pro script using your example, made the script executable
and edited my filetype as you suggested.

Clicking the projects Icon now opens the project with PageStream as
hoped.

Thanks Tim for your solution to my run from icon problem.
Have a great evening!
--
dh

Sign in to add a comment. Pages: 1
Index » PageStream Support » Linux » launch from project icon

This topic is closed due to inactivity.