linux controller: Set exec path to find the right subcommands

This commit is contained in:
Hylke Bons 2018-02-21 17:39:35 +00:00
parent 6c8aaceb65
commit ae7455c886

View file

@ -23,6 +23,7 @@ using Gtk;
using Mono.Unix.Native; using Mono.Unix.Native;
using Sparkles; using Sparkles;
using Sparkles.Git;
namespace SparkleShare { namespace SparkleShare {
@ -31,6 +32,8 @@ namespace SparkleShare {
public Controller (Configuration config) public Controller (Configuration config)
: base (config) : base (config)
{ {
if (InstallationInfo.IsFlatpak)
GitCommand.ExecPath = Path.Combine ("/app", "libexec", "git-core");
} }