ps2pdf Service Menu

Dolphin Service Menus

Source (link to git-repo or to original if based on someone elses unmodified work): Add the source-code for this project on opencode.net

0
5 .0
Description:

An update of CL Hong's ps2pdf service menu that addresses some of its problems and limitations. In particular, this version handles multiple filenames, saves PDFs in a sensible location, and responds correctly to "Cancel".

I've also changed the menu options substantially. There is now an option simply to convert FILE.ps to FILE.pdf (bypassing the "save as..." dialog).

A simple install script is included for installation.

The .desktop file and shell script must be installed into ~/.kde/share/apps/konqueror/servicemenus/, as the location of the shell script had to be hardcoded into the desktop file. If, for some reason, you wish to install the script into a different location, or if for some other reason your OS does not parse this properly, you will need to change the path in the desktop file.

You need to have ps2pdf in your path.

Translations welcome.
Last changelog:

14 years ago

0.1: Initial release
0.2, stopped using `dirname %k` to find the script location, because %k is too unreliable. The downside is that the location of the script now has to be hard-coded.

BorgQueen

14 years ago

I replaced ~/.kde with the actual path /home/usr/.kde etc.

Report

C

rgheck

14 years ago

Ahh. Well, glad it's working.

Report

BorgQueen

14 years ago

I installed it but when I try to use it, I get the following :

Could not find the program '`dirname'

I've checked and its in my /usr/bin, so it should find it.

Report

C

rgheck

14 years ago

This happens whenever the action fails, for whatever reason. It doesn't actually have anything to do with "dirname".

Further testing has revealed an occasional problem with how I was trying to find the location of the script file. I've made a change that should prevent this problem. Let me know if it doesn't work for you.

By the way, if you do have this kind of problem (with this script or a different one), the way to debug it is to start Konqueror from a terminal. You'll get more informative error messages there whenever something goes wrong.

Report

BorgQueen

14 years ago

Essentially the same kind of error.

Could not find the program '~/.kde/share/apps/konqueror/servicemenus/ps2pdf.sh'

Report

C

rgheck

14 years ago

There are two possibilities. The first is that you haven't installed the shell script into the correct location. Both ps2pdf.desktop and ps2pdf.sh must go into ~/.kde/share/apps/konqueror/servicemenus/. You can use in the install script to get them there.

If the shell script is in the correct location, then some other error is causing the shell script itself to fail. As I said, you get the "program not found" message on any failure. It would be nice if Konqueror provided a little more information, but it doesn't, so we'll have to sort this out some other way.

One way is to run the shell script manually. So find yourself a PS file and run something like:
#~/.kde/share/apps/konqueror/servicemenus/ps2pdf.sh /path/to/my.ps
and see what happens. What ought to happen is that you get /path/to/my.pdf.

The other option is to start Konqueror from a terminal and then try using the service menu. You'll get better diagnostics that way.

Let me know what happens.

Report

BorgQueen

14 years ago

It works from the commandline but the .desktop doesn't.
So the script works, its the ps2pdf.sh that seems to have the problem.

Report

BorgQueen

14 years ago

Thank you very much.

Report

14 years ago

0.1: Initial release
0.2, stopped using `dirname %k` to find the script location, because %k is too unreliable. The downside is that the location of the script now has to be hard-coded.

12345678910
product-maker Base: 4 x 5.0 Ratings
Be the first to comment
File (click to download) Version Description Downloads Date Filesize DL OCS-Install MD5SUM
*Needs pling-store or ocs-url to install things
Pling
0 Affiliates
Details
license
version
0.2
updated Feb 12 2006
added Feb 11 2006
downloads 24h
0
mediaviews 24h 0
pageviews 24h 0
System Tags addon