View Single Post
Posts: 641 | Thanked: 1,505 times | Joined on Aug 2010
Triumph of a sorts

Ok after getting caught up on some other things back to gtklp

I had forgotten to give admin permissions to root and localhost
when I got this right I could then run gtklp with no more problems,

First - gtklp has a desktop shortcut.
Using this shortcut eliminates the ability to choose a file
> This is the thing I would like to fix next <

second - if you launch gtklp in xterm as user
(remembering I have installed bash and use it instead of sh or ash,
- not yet sure if these are necessary but suspect they are atm)
the select file dialogue works just fine,
and prints as expected
(so far successfully printed .pdf, txt, jpg from cli
using just -> gtklp and then browsing the file selector to choose file)

if you ever launch gtklp as root (why?) you will need to go back
and change the permissions back to 666 on all files
in the /.gtklp folder in your home folder.

Still a hairy mess to install but right now I can print to any printer
I can get into the cups server.
And without exhausting all my printer ink I expect gtklp
can print many filetypes you might want to print,
but there needs a lot more testing to be sure.

Like I said, I have successfully printed the following so far:

.txt (simple text files)
.jpg (just picked a jpg and printed it - did not even check what it was
formatted to be, may not work for just any jpg ?)
.png (just hacked a quick sketch in mypaint oand saved as pic.png)

Trying to print spreadsheets through gtklp = no joy,
these need to be run through the native app but they are not ready yet
although with something like gnumeric you can save as pdf
and maybe that is good enough for the moment
.gnumeric does not work
.xlsx does not work
.ods does not work

If you use claws-mail you can print by setting:
in menu find configuration -> actions
and add something like this:

Menu name:
| gtklp '%f' &
the '|' pipes the output from claws into gtklp
'%f' sends the compliant file
and the '&' <important> closes the claws dialogue
and allows gtklp to open its dialogue for your command

This makes my day,
as I have no fixed office and no desk I can count on
in all the offices I visit,
but it will permit me to print whatever I can set up whenever I want
as the ultimate roadwarrior hack - printing emails from the handphone
Three n900s: One for stable working platform,
One for development testing Chopping Onions
One for saltwater immersion power testing resurrected ! parts scavenging

My Mods for Wonko's Advanced Clock Plugin:
ISO8601 clock mod and Momental_IST clock mod

Printing your Email with the N900

The Following 8 Users Say Thank You to theonelaw For This Useful Post: