Snapcraft is a build and packaging tool developed by Canonical which allows packaging the software in an entity called snap.
Questions tagged [snapcraft]
174 questions
1
vote
1 answer
Snap applications through a remote X11 session
I noticed that on Ubuntu 20.04, a lot of software is made available through snap and it does not even appear in the distribution's "sources".
This is all good, but when you try to run an application that has graphic output and have it connect via…

A_A
- 2,326
- 18
- 27
1
vote
0 answers
Is there any way to integrate snap with crouton?
Unable to perform any successful Snapcraft program installs.
This is despite a successful command line install of snapd per instructions found at:
https://snapcraft.io/install/hello-world/ubuntu#install
Here is the output from the initial chroot…

killshot13
- 186
- 1
- 4
- 14
1
vote
1 answer
How to launch Linux elevated privileges window from Python?
I am writing a python3 app, running with a GUI (not in the terminal) as the user. While this app is running as the user, I need to also execute a command that requires root privileges. I've seen numerous examples of how to do this in the terminal,…

gcdev
- 1,406
- 3
- 17
- 30
1
vote
1 answer
How snapcraft nodejs plugin handle the Node.js environment when you create an app snap for different OS?
I'm try to understand how the nodejs plugin i'm using to create snap node.js app handle the Node.js environment ? Example in this application :
parts:
webserver:
source: .
plugin: nodejs
nodejs-version: "12.13.1"
…

cicciosgamino
- 871
- 3
- 10
- 29
1
vote
1 answer
Confine python popen child snap container
I try to confing a python subprocess.Popen process to a snap package I built.
To learn about snap package creation I decided to build a snap container for a markdown editor, built in python, I regularly use.
I managed to create a snapcraft.yaml…

Deadolus
- 372
- 3
- 17
1
vote
0 answers
self-hosted snapcraft packages?
I am packaging and in-house app as snap and would like to use our own intranet server to distribute it to clients. As much as I read the docs of snap, it seems it is documenting only distribution through official snapcraft.io channels. Is there a…

eudoxos
- 18,545
- 10
- 61
- 110
1
vote
0 answers
How to install VSCode using SNAP ? ERROR= snap-confine has elevated permissions
On Ubuntu 16 Xenial . Trying to install VSCode .
dhankar@dhankar2:~$ sudo snap install --classic code
[sudo] password for dhankar:
error: unknown flag `classic'
dhankar@dhankar2:~$ sudo snap install --code
error: unknown flag…

Rohit Dhankar
- 1,574
- 18
- 25
1
vote
1 answer
How to create a Snap package that uses Docker to pull and run a Docker images?
I have a Docker image and a cli tool. I want to create a Snap package that pulls the Docker image and run it on the local Docker.
I already have a snapcraft.yaml that installs the cli tool. I'm trying to understand what should I add/edit so I can…

ZNone
- 41
- 6
1
vote
1 answer
how to remove appliation which install from snap in ubunutu?
i have installed some applications using snapcraft which is very innovative concept.but , now i want to uninstall some of application. I had some stuff but did`nt get proper answer.

Mitesh Vasava
- 707
- 6
- 13
1
vote
0 answers
Add on premise cluster to vscode-kubernetes-tools
I would like to configure the VSCode extension (vscode-kubernetes-tools) to be able to manage a cluster using ~/.kube/config but I get no feedback from the ui nor /var/log/syslog. The cluster is deployed locally (no azure, nor minikube)
Info:
os :…

NargiT
- 61
- 1
- 7
1
vote
0 answers
Package prebuild binaries using snapcraft with Fedora (mono and gtk-sharp2)
I'm trying to package my project using snapcraft. I think it is easiest to package the prebuild binaries, which are available here: https://sourceforge.net/p/audiocuesheet
This is a mono and gtk-sharp2 project, so I thought of using snapcraft to…

Sven
- 447
- 1
- 6
- 22
1
vote
1 answer
Install shared library using snap
I have project, that is build by cmake and I want package with snap. Project includes executable and library (lets call it a and liba).
My snapcraft.yaml file looks like:
name: a
version: "0.9"
summary: xyz
description: xyz
grade: devel # must be…

Payne
- 456
- 6
- 21
1
vote
1 answer
Saving a file in a Snap (Snapcraft) with NodeJS
I am having an issue with creating a new file while my snap is running; example:
1) Snap starts and checks for the config.json file at ./config/config.json
2) If that file is not found (it never is the first time the application runs) it will create…

gregwinn
- 941
- 1
- 9
- 16
1
vote
0 answers
_tkinter.TclError: Can't find a usable init.tcl in the following directories - This probably means that Tcl wasn't installed properly
When trying to run my newly created snap (ubuntu 18.04, snapcraft version 2.42.1+18.4) I get the following error:
(process:26716): Gtk-WARNING **: 12:29:57.640: Locale not supported by C library.
Using the fallback 'C' locale.
Gtk-Message:…

spicyroland
- 41
- 1
- 5
1
vote
1 answer
How to reference library-creating "part" files from a binary-creating "part" in snapcraft?
I have a snap that will create a library shared by multiple binaries (within the same snap). What is the best way to structure the snap parts to support this?
Below is my starting point.
parts:
libwhatever:
plugin: cmake
source: ...
…

mpr
- 3,250
- 26
- 44