edit icon indicating copy to clipboard operation
edit copied to clipboard

Have you registered a snap name with Canonical?

Open rhubarb-geek-nz opened this issue 7 months ago • 9 comments

I recommend registering a name for the snap package with snapcraft.io, they may take time to approve the name.

rhubarb-geek-nz avatar May 20 '25 20:05 rhubarb-geek-nz

I'm not super familiar with snaps. Are they used even for standalone binaries?

As an aside, I think we also need to decide on an official binary name for this project on Linux. I suspect several (if not all) distributions would deny us just calling it "edit". Perhaps "mse" for "MS Edit"? Not sure...

lhecker avatar May 20 '25 20:05 lhecker

Are they used even for standalone binaries?

Oh yes! But it has to be compiled against a standard runtime image.

For example edlin

This is the config that publishes it edlin-snapcraft

rhubarb-geek-nz avatar May 20 '25 20:05 rhubarb-geek-nz

Given the teeny tiny size of our team, it may be necessary to skip doing this to reduce our maintenance burden. Otherwise, I don't mind the idea.

lhecker avatar May 20 '25 21:05 lhecker

I would not be shocked if some one else makes a snap and flatpak builds for this project

kalebm-woolloo avatar May 21 '25 05:05 kalebm-woolloo

The name "edit" conflicts with one of the binaries shipped by vim. I had to name it "msedit" on my machines to be able to invoke it.

borgdylan avatar May 21 '25 09:05 borgdylan

Hey there, snapd developer, here.

You can enroll the snap super easily. You need to add a single YAML file to the tree, click through some github intergration on snapcraft.io and register the store name (how the package will be called in the store).

You can learn how to do this for rust applications by following:

https://documentation.ubuntu.com/snapcraft/stable/how-to/integrations/craft-a-rust-app/

^ This is for rust applications, you should look at the wider tutorial at https://snapcraft.io/

If you have any questions please ask.

zyga avatar May 22 '25 17:05 zyga

One more note, you can choose the type of sandbox to use and for something like Edit and given that it is written in rust a snapcraft base: bare with rust statically linked binary and confinement: classic would by my suggestion. The app would work and allow editing any files with the permission of the user.

zyga avatar May 22 '25 17:05 zyga

We discussed this and decided that at the moment we'd like to not take responsibility for an official snap package. @zyga We appreciate your offer and if we ever move forward on this, we'd love your help.

lhecker avatar May 27 '25 18:05 lhecker

@zyga btw snap install msedit on Ubuntu 24.04 currently suffers this problem trying to fix it via

sudo snap set msedit EDIT_CFG_ICU_RENAMING_VERSION=74.2-1

gave the error message:

error: cannot perform the following tasks:
- Run configure hook of "msedit" snap (snap "msedit" has no "configure" hook)

gfody avatar Nov 13 '25 03:11 gfody