flathub / com.syntevo.SmartGit

https://flathub.org/apps/details/com.syntevo.SmartGit
3 stars 3 forks source link

Unable to find git #5

Closed manosprom closed 5 years ago

manosprom commented 5 years ago

Hello guys,

tried to install the Smartgit flatpak from flathub and i am getting the following issue

the git executable configured on preferences does not exist

What i have tried is running the app with --filesystem=/usr/bin/git and --filesystem=host but still the same error is thrown.

I would like to know if there is any way to bypass this problem?

x80486 commented 5 years ago

SmartGit 18.2 is going to circumvent that problem. Folks at syntevo already added the logic to auto-discover the packaged/bundled Git at startup when running as Flatpak.

Now, coming back to your issue. There is a version of Git you can find at /app/bin – bundled with Flatpak and it's the recommended one.

image

Additionally, if you have a version of Git installed anywhere in /usr/../../ you would need to add it by browsing over /var/run/host/usr/../../ – as specified by Flatpak. I've noticed that SmartGit does not behaves correctly when using HTTPS URLs using these locations, but my assumption is that everyone will be using the bundled Git install.

I personally use Nix Packages, so I use the one located at ~/.nix-profile/bin/git.

manosprom commented 5 years ago

Thanks mate, good stuff! it worked exactly as you said by pointing to bundled /app/bin/git and no problems so far.

RoyiAvital commented 4 years ago

I think this is not yet solved.

On SmartGit 19.1.4 I get the error unable to find remote helper for 'https'. I want to preferences and defined the git executable:

image

I encountered this question on StackOverflow - https://stackoverflow.com/questions/8329485. Could it be that more dependencies are missing?

x80486 commented 4 years ago

It looks like; I went back to version 19.1.3 and it was fine, so looks like the new way to provide Git inside the Flatpak needs some other dependencies, so I'm going to put that back for the time being (and probably forever) :sunglasses:

...wait for the update.

RoyiAvital commented 4 years ago

@x80486 , Thank you for your effort.

I'm not sure I understand what you meant. What's the difference, Flatpak wise, from 19.1.3 to 19.1.4?

I'm all for providing any dependency needed with the Flatpak.