Hi ! @Snapcrafters .
I shipped ghostscript
in my snap package (pdf-tool), but I can’t find it (at least with the keyword gs or ghostscript).
Thanks for your help.
Hi ! @Snapcrafters .
I shipped ghostscript
in my snap package (pdf-tool), but I can’t find it (at least with the keyword gs or ghostscript).
Thanks for your help.
Can you provide more details on what you mean by “shipped”?
A snapcraft.yaml
would be useful too.
And you want to be able to execute Ghostscript at runtime (when the snap has been installed)?
In my snap
app.
ghostscript
is a dependency .
You could try entering the environment with snap run --shell pdf-tool
and finding the Ghostscript executable. Then, you could append its directory to the PATH
environment variable in your snapcraft.yaml.
I have already tried this scenario.
Maybe the program name in the snap is different than the one used by default on Linux.
$ ls -l /usr/bin/ghostscript
lrwxrwxrwx 1 root root 2 Dec 11 19:22 /usr/bin/ghostscript -> gs
$ ls -l /usr/bin/gs
-rwxr-xr-x 1 root root 14488 Dec 11 19:22 /usr/bin/gs
$ dpkg -S /usr/bin/gs
ghostscript: /usr/bin/gs
It’s in the deb, but way better to share slightly more than one line of a snapcraft.yaml
to be able to help.
gs
or ghostscript
does not work in my snap.
Yes, in the stage-packages
entry, the correct word is ghostscript
, but whether it is gs
or ghostscript
, both commands are not found in my snap package.
Yes, I understood that from your first post.
Please can you post the yaml?
Yea… .
name: pdf-tool
base: core20
version: "1.0.1"
summary: pdf-tool, a program allowing to manipulate pdf files (use from the terminal)
description: |
The `pdf-tool` program allows to manipulate pdf files (extracting, concatenating,
numbering, encryption, decryption, stamping, rotation, bursting, including,
excluding ...). Once the `pdf-tool` program is installed, you can execute
the command `pdf-tool --help` or `pdf-tool --doc` to see how to use the
program in question
grade: stable
confinement: strict
parts:
pdf-tool:
source: ./src
plugin: dump
organize:
bin/pdf-tool: usr/bin/pdf-tool
stage-packages:
- bash
- coreutils
- awk
- gawk
- zsh
- util-linux
- pdftk
- ghostscript
- texlive-latex-extra
- poppler-utils
pdf-tool-man:
source: ./src/usr/share/man/man1
plugin: dump
organize:
pdf-tool.1.gz: usr/share/man/man1/pdf-tool.1.gz
pdf-tool-documentation:
source: ./src/usr/lib/pdf-tool/documentation
plugin: dump
organize:
pdf-tool-doc: usr/lib/pdf-tool/documentation/pdf-tool-doc
pdf-tool-help: usr/lib/pdf-tool/documentation/pdf-tool-help
pdf-tool-version: usr/lib/pdf-tool/documentation/pdf-tool-version-pure
pdf-tool.1.gz: usr/lib/pdf-tool/documentation/pdf-tool.1.gz
library:
source: ./src/usr/lib/pdf-tool/library
plugin: dump
organize:
stamp: usr/lib/pdf-tool/library/stamp
tex: usr/lib/pdf-tool/library/tex
apps:
pdf-tool:
command: usr/bin/pdf-tool
plugs:
- home
Ok, can you please show the output of you running whatever it is that’s not working. Please don’t trim the output. Just run whatever it is you expect to find ghostscript or gs.
Ok, bye then. I’ve already wasted enough time trying to get blood from this stone. I’ll let you figure it out
@poyey !
Thank you very much for your intervention .
Envoyé depuis Proton Mail mobile
-------- Message d’origine --------
I will create an algorithm which will allow me to find the gs
(whatever the name) program among the packages embedded in my snap
program.