Hi
When I want to print from my snap install it fails with:
Caused by: java.io.IOException: Cannot run program “/usr/bin/lpr”: error=2, No such file or directory
I have installed lpr in the $SNAP/usr/bin/lpr.
But I still get the above exception.
Here is my yaml:
name: highlighterpdf
title: HighlighterPdf
version: 1.0.2
summary: Highiight the text in a Pdf.
description:
HighlighterPdf is a free and open source software application that you can use to
highlight text in your pdf document. You can select text in a colour of your choice
and then save it.
confinement: strict
grade: stable
base: core18
apps:
highlighterpdf:
extensions: [gnome-3-28]
command: java -jar $SNAP/highlighterpdf.jar
environment:
JAVA_HOME: $SNAP/usr/lib/jvm/java-11-openjdk-amd64
PATH: $JAVA_HOME/bin:$PATH
plugs:
- home
- network
- cups-control
parts:
highlighterpdf:
source: https://github.com/gerry136/highlighterpdf.git
plugin: dump
build-packages:
- openjdk-11-jdk
stage-packages:
- unzip
- openjdk-11-jdk
- lpr
As you can see I have lpr in the stage-packages.