Skip to content

Commit 9ef9c76

Browse files
authored
Fixed Windows CRLF line break in Linux desktop files (#609)
A patch to use LF line breaks instead of CRLF in Linux shortcut creator
1 parent 12c9899 commit 9ef9c76

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

WPILibInstaller-Avalonia/ViewModels/InstallPageViewModel.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ [Desktop Entry]
5252
Terminal=false
5353
StartupNotify=true
5454
StartupWMClass={wmClass}
55-
";
55+
".ReplaceLineEndings("\n");
5656
var launcherPath = Path.GetDirectoryName(launcherFile);
5757
if (launcherPath != null)
5858
{
@@ -1066,7 +1066,7 @@ [Desktop Entry]
10661066
Terminal=false
10671067
StartupNotify=true
10681068
StartupWMClass=Code
1069-
";
1069+
".ReplaceLineEndings("\n");
10701070

10711071
var desktopPath = Path.GetDirectoryName(desktopFile);
10721072
if (desktopPath != null)

0 commit comments

Comments
 (0)