QNX RTOS v4 Knowledge Base
QNX RTOS v4 Knowledge Base
Title |
Photon printing and prsetup |
Ref. No. |
QNX.000009930 |
Category(ies) |
Development |
Issue |
What files are created/updated by prsetup because we want to set these up without running prsetup? We do not have prsetup on the machine because we do not want our end user to see this. We want them to be able to print when they hit the print button. They are going to be limited to one or two printers being supported by our device. |
Solution |
The setup files are created in the user's $HOME/.photon/print directory. There are two files: 1)$HOME/.photon/print/config
x09A list of installed printers. This is a subset of the set of available printers in $PHOTON_PATH/print/printers.
And any values that are overridden from the default printers file.
2)$HOME/.photon/print/default
x09The default printer.
These are both text files.
When wanting to use a print widget, it is possible to PpPrintCreatePC() and PpPrintSetPC() all the necessary values without touching the /usr/photon/print/printers nor $HOME/.photon/print/config files. |
|