Open in... Menu

New Icons
This commit is contained in:
Enner Pérez 2024-03-28 01:48:20 -05:00
parent cde5fc8f73
commit 386987fbb1
9 changed files with 72 additions and 22 deletions

View file

@ -1,4 +1,5 @@
using System.Diagnostics;
using System;
using System.Diagnostics;
using System.IO;
using System.Runtime.Versioning;
@ -30,14 +31,15 @@ namespace SourceGit.Native
public string FindVSCode()
{
if (File.Exists("/usr/share/code/code")) return "/usr/share/code/code";
var toolPath = "/usr/share/code/code";
if (File.Exists(toolPath)) return toolPath;
return string.Empty;
}
public string FindFleet()
{
var path = "~/.local/share/JetBrains/Toolbox/apps/fleet/bin/Fleet";
if (File.Exists(path)) return path;
var toolPath = $"{Environment.GetFolderPath(Environment.SpecialFolder.UserProfile)}/.local/share/JetBrains/Toolbox/apps/fleet/bin/Fleet";
if (File.Exists(toolPath)) return toolPath;
return string.Empty;
}