Sublime Forum

Sublime Text: Sublime Merge Path not accepting Snap binary

#1

I have installed both Sublime and Sublime Merge as snaps on Manjaro Linux. I placed /var/lib/snapd/desktop/applications/ as the location for my sublime_merge_path setting, as that is where the snap binary is located. Sublime Text says the executable is unavailable.

How do I resolve this?

0 Likes

#2

I would not use the Sublime Snaps. Snaps cause problems so I avoid them as much as possible on Ubuntu 18. I found that I got error messages trying to use ExportHTML.
The problem: I was using the snap version of Firefox. When I switched to the standard version of Firefox, the problem went away. I had the ppa version of ST.

Some snaps have a preferences button that you use to tweak their behaviour. You could see if such a button exists for Sublime snaps. I know that with some snaps you have to move the slider to on in order to print.

My advice is to use the Sublime ppa if you can. I don’t use Manjaro. Or use the tarball.

0 Likes

#3

What’s the point of having snaps if they’re not usable?

0 Likes

#4

I ask that myself. Canonical wants to champion snaps for Ubuntu.
There is also Flatpak, but I don’t think that it is available for Sublime Text.
The other disadvantage with Snaps is that they are usually very large.
But they are an easy way to install software.

0 Likes

#5

Just to be clear: we don’t release snaps. Canonical has been rebuilding ST into snaps, but we don’t directly support them.

0 Likes

#6

I don’t know if there is a solution to your problem, since I don’t have Manjaro and I don’t use Sublime Merge. However, if you want to try the tarball approach, this article could help you install it.
Sorry that I can’t be of further assistance.

0 Likes

#7

If I install it via Tarballs what path is Sublime_Merge_Path expecting @wbond ? Just whatever sub folder of /usr/bin I install it to?

0 Likes

#8

You should probably direct your question to @OdatNurd. He works with tarballs, from what I hear.

0 Likes

#9

I may be wrong, but is not Manjaro based on Arch? If so, you may be able to install the applications with Pacman. Instructions are given in the download section. I would think that installing like that would set everything up properly.
Just a thought.

0 Likes

#10

I do use tarball versions of Merge and Text, but I’m not familiar with the setting that you’re referencing here. It’s not a big deal to download a file and extract it, so I just have a ~/local/ folder with a sublime_text and sublime_merge folder inside of it, and both have always been able to find the other.

I would guess that if there’s a setting that is asking for the path, you would specify either an absolute path to the folder or (if that doesn’t work) an absolute path to the binary.

1 Like

#11

Thanks, @odatnurd - I did specify an absolute path, but it does not seem to play nice with snaps (or the right path for snaps is non-obvious, such as a generated folder that is the install location of the snaps)

My bet is on it not playing nice with snaps since the devs don’t use snaps.

0 Likes

#12

You are correct that we don’t use or provide snaps.

Historically they’ve had bugs, and they add a middle-man between us and users. None of our other distribution methods can prevent us from publishing updates, unless we were for some reason unable to buy a signing certificate. The snap store is exactly a middle man.

Is there a technical reason you don’t use the apt repo?

0 Likes

#13

He doesn’t use the apt repo because he can’t. He is on Manjaro. Please see my post above.
My guess is that he is new to Linux, and snaps are an easy way to install software (unless you count AppImages).

0 Likes

#14

Yes, I am relatively new to Linux and using Manjaro.

And you’re right @jackeroo - installing software in Linux is non-intuitive at best.

0 Likes

#15

If you are on Manjaro then the Arch repo would be your ticket.

0 Likes