Skip to content

Commit

Permalink
fucking snap
Browse files Browse the repository at this point in the history
  • Loading branch information
EvilLord666 committed Mar 5, 2024
1 parent d6b2c2a commit a41b4da
Showing 1 changed file with 14 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,17 +15,24 @@ public class DeviceConfigurationManager
{
public DeviceConfigurationManager(string configFile)
{
bool result = PrepareDevConfigDirectory(configFile);
if (!result)
try
{
// probably we here in snap ...
string home = Environment.GetEnvironmentVariable("HOME");
if (home != null)
bool result = PrepareDevConfigDirectory(configFile);
if (!result)
{
string deviceConfigFile = Path.Combine(home, configFile);
PrepareDevConfigDirectory(deviceConfigFile);
// probably we here in snap ...
string home = Environment.GetEnvironmentVariable("HOME");
if (home != null)
{
string deviceConfigFile = Path.Combine(home, configFile);
PrepareDevConfigDirectory(deviceConfigFile);
}
}
}
catch (Exception e)
{
// SNAP ASSHOLE!!!
}
}

public ObservableCollection<SerialPortShortInfoModel> Load()
Expand Down

0 comments on commit a41b4da

Please sign in to comment.