Skip to content

Commit dd7e553

Browse files
authored
Merge pull request #38 from dremin/fix-autostart-path
Fix auto start path for published exe
2 parents 96b7e99 + b8fbb27 commit dd7e553

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

RetroBar/PropertiesWindow.xaml.cs

+1-2
Original file line numberDiff line numberDiff line change
@@ -119,8 +119,7 @@ private void AutoStartCheckBox_OnChecked(object sender, RoutedEventArgs e)
119119
}
120120
else
121121
{
122-
string exePath = System.Reflection.Assembly.GetExecutingAssembly().Location;
123-
rKey?.SetValue("RetroBar", exePath);
122+
rKey?.SetValue("RetroBar", ExePath.GetExecutablePath());
124123
}
125124
}
126125
catch (Exception exception)

0 commit comments

Comments
 (0)