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
How can I build a snap package that runs executable jar?
I have an executable jar program. It's an JavaFX program. It runs great on OpenJDK 8 and higher. I want to publish it as a snap package in Ubuntu's developer portal. I have it currently packaged as a deb file, however, Ubuntu doesn't accept those. I…

Nickety
- 11
- 4
1
vote
1 answer
How can I put Apache Spark Into Snapcraft
Currently trying to get Apache Spark working through Snapcraft, what am I doing wrong?
Here is the .yaml:
name: spark
version: 1.0
architectures:
- amd64
summary: The Spark Engine
description: This is the Spark Engine produced by snapcraft with…

CavanD
- 11
- 2
1
vote
1 answer
How to create snap package for ubuntu snappy with already built and compiled binaries?
I'm have just started learning about snappy and how to create snap packages.
I have built binaries for my application. I just want to create a .snap package wherein it copies my built binaries to the appropriate folders in the board file system.…

user3803112
- 103
- 11
1
vote
1 answer
Ubuntu Core and Electron
I have an electron app which controls some devices over the network. I was wondering if there is a way to run this app on a Ubuntu Core computer and use the all as the GUI so there is no window manager or anything involved. On boot it would just…

William Seaton
- 33
- 1
- 5
0
votes
0 answers
Can't create BMP image with ImageMagick inside Snap container
I have a working C code that uses for ImageMagick for creation of BMP files. For unknown to me reason this code doesn't work inside Snap container.
Minimal code snippet for testing if creating a BMP blob is possible.
#include…

vict
- 158
- 1
- 11
0
votes
0 answers
Using `pkexec` for escalation in a snap?
I am writing a GTK gui in Python and I have this line
subprocess.run("pkexec (some command)", shell=True)
which I have attached to a button in my GUI, but when I try to use the button I get this error
/bin/sh:1:pkexec:not found
The GUI relies on…

shadeyg56
- 74
- 4
0
votes
0 answers
Problems with importCertificate function in electron
My electron app is running inside a snap and connects to an api that is serving content with a custom self signed certificate. I'd like to properly add that certificate into the store of my electron app instead of just ignoring the errors for that…

Tarek
- 1
- 1
0
votes
0 answers
How to disable SSL certificate verification for a snapcraft build?
I am trying to build a snapcraft package (core20), but I am encountering errors due to corporate network SSL certificate substitution.
My host machine is configured properly and has company certificates added to all the necessary places, such as…

vict
- 158
- 1
- 11
0
votes
0 answers
Using Flutter on Linux with Snapcraft: dependency failure with Dart version, despite all parts being compatible
Resolving dependencies...
The current Dart SDK version is 3.0.2.
Because workstatus depends on dependencies any which doesn't support null safety, version solving failed.
The lower bound of "sdk: '>=2.0.0 <3.0.0'" must be 2.12.0 or higher to enable…
0
votes
0 answers
Issue with tcl (tkinter) after building python app with snapcraft
Issue with tkinter + snapcraft
After using snapcraft to build an app of a python script with tkinter, I get the following error when running my app:
_tkinter.TclError: Can't find a usable init.tcl in the following…

I080I
- 1
- 2
0
votes
1 answer
How to set flutter version in snapcraft.yaml?
My application is developed based on flutter3.3.10 version.
I build and publish it as a Linux application to the Snap Store, but using the snapcraft command will automatically download the latest version of flutter.
How do I set the flutter…

Conner Allen
- 1
- 1
0
votes
0 answers
How To Reboot a PC inside snap app (created with Flutter) on Ubuntu 22.04?
I have an Ubuntu 22.04 on my PC, and also i have a snapped Linux app that created with Flutter. I have also a button for rebooting the OS in my Flutter app.
I tried two different methods:
method 1:
await Process.run("reboot", []);
message:
flutter:…

Hossein Vejdani
- 961
- 8
- 19
0
votes
0 answers
Installing NodeJs via snapcraft (issue)
I'm on ubuntu 22.04
I'm using nodejs that I first installed with :
sudo apt install nodejs
But the version I had was 12 which is very old now.
After that, I had trouble about the node version when installing modules with NPM (warnings about…

jokoko
- 1
- 1
0
votes
0 answers
Create several snaps from one source directory
Go applications guide for building snaps recommends to create the file snapcraft.yaml in the root directory of the project to build a snap.
I want to build several snaps for sub-packages of my source directory, with all snaps sources placed into the…

porton
- 5,214
- 11
- 47
- 95
0
votes
0 answers
Multi-window Flutter Linux app terminates when subwindow closes, but only the snap version
I have an obscure one...
I have a flutter application that builds for Linux desktop. I used a third-party package (desktop_multi_window) to be able to launch a sub-window within the app. When I run the application from a local build, all is well. …

Bill Foote
- 361
- 3
- 3