https://github.com/keithdhedger/lprgui
qt5 based frontend for lpr cli command
https://github.com/keithdhedger/lprgui
cpp cups frontend frontend-app gui-application lpr qt5 qt5-gui
Last synced: about 2 months ago
JSON representation
qt5 based frontend for lpr cli command
- Host: GitHub
- URL: https://github.com/keithdhedger/lprgui
- Owner: KeithDHedger
- License: gpl-3.0
- Created: 2022-07-17T13:50:01.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2024-09-11T11:02:50.000Z (over 1 year ago)
- Last Synced: 2025-04-10T06:45:13.444Z (12 months ago)
- Topics: cpp, cups, frontend, frontend-app, gui-application, lpr, qt5, qt5-gui
- Language: C++
- Homepage:
- Size: 104 KB
- Stars: 3
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# LprGUI

QT5 based frontend for lpr cli command.
This is a simple gui frontend to the lpr command, as qt5 doesn't play well with cups, if your app allows you to set a print command you can use this.
There are other GUI's for lp/lpr but they seem to have large dependencies, or need specific librarary versions, this application just needs lpr and lpoptions which are part of CUPS and a reasonable new QT5, which most distros will have installed as default.
You can also use this as a standalone app to print any file.
You will also of course need a build system ( g++,make qt5 dev files etc ).
**Building/Installing:**
```console
make
sudo make install
```
or make DESTDIR="/path/to/install/location" install
Or you can build with qmake:
```console
mkdir build && build
qmake ..
make
sudo make install
```
or make INSTALL_ROOT="/path/to/install/location" install
You can run the application without needing to install it if you just want to try it.
App will now exit gracefully if CUPS is not running or there are no reported printers.
Files to be printed can be selected via the 'Select Files' button or entered into the files box manualy, files should be sepereated by a colon like so:
/media/LinuxData/Development64/CPPScripts/qt5/hilighting/C++.txt.cpp:/media/LinuxData/Development64/CPPScripts/qt5/hilighting/testqthilite.cpp
Options can be entered into the options box seperated by a colon eg:
orientation-requested=6:number-up=4
Custom options override prefs and cli options.
Options are printer dependant and can be found with:
lpoptions -p NAMEOFPRINTER
Finished saving and restoring options, have fun!
BUGS etc.
kdhedger68713@gmail.com