Skip to content

Commit 21e1b3f

Browse files
committed
Revert "Refine for snap"
This reverts commit 8b6bcf1.
1 parent 8b6bcf1 commit 21e1b3f

File tree

1 file changed

+5
-9
lines changed

1 file changed

+5
-9
lines changed

Packages/com.unity.ide.visualstudio/Editor/VisualStudioCodeInstallation.cs

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -189,16 +189,12 @@ private static IEnumerable<string> GetXdgCandidates()
189189

190190
try
191191
{
192-
foreach (var desktopFile in new[] {"code.desktop", "code_code.desktop"})
193-
{
194-
var desktopPath = IOPath.Combine(dir, "applications", desktopFile);
195-
if (!File.Exists(desktopPath))
196-
continue;
192+
var desktopFile = IOPath.Combine(dir, "applications/code.desktop");
193+
if (!File.Exists(desktopFile))
194+
continue;
197195

198-
var content = File.ReadAllText(desktopPath);
199-
match = DesktopFileExecEntry.Match(content);
200-
break;
201-
}
196+
var content = File.ReadAllText(desktopFile);
197+
match = DesktopFileExecEntry.Match(content);
202198
}
203199
catch
204200
{

0 commit comments

Comments
 (0)