Skip to content

Commit

Permalink
Bugfixes
Browse files Browse the repository at this point in the history
- Mono: Try opening debugfiles with xdg-open as fallback
  • Loading branch information
Rookiestyle committed Jun 4, 2020
1 parent bf1342c commit c57f595
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 4 deletions.
17 changes: 16 additions & 1 deletion src/PluginTools.cs
Original file line number Diff line number Diff line change
Expand Up @@ -706,7 +706,22 @@ public static void SaveOrShow()
if (m_DebugEntries.Count == 0) return;
SaveDebugMessages();
if (AutoOpen || (AskOpen && Tools.AskYesNo("DebugFile: " + DebugFile + "\n\nOpen debug file?") == DialogResult.Yes))
System.Diagnostics.Process.Start(DebugFile);
{
try
{
System.Diagnostics.Process.Start(DebugFile);
}
catch
{
if (KeePassLib.Native.NativeLib.IsUnix()) //The above is broken on mono
{
System.Diagnostics.ProcessStartInfo psi = new System.Diagnostics.ProcessStartInfo();
psi.Arguments = DebugFile;
psi.FileName = "xdg-open";
System.Diagnostics.Process.Start(psi);
}
}
}
}

private static System.Xml.XmlWriter m_xw = null;
Expand Down
4 changes: 2 additions & 2 deletions src/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,6 @@
//
// You can specify all the values or you can use the default the Revision and
// Build Numbers by using the '*' as shown below:
[assembly: AssemblyVersion("2.0.2")]
[assembly: AssemblyFileVersion("2.0.2")]
[assembly: AssemblyVersion("2.0.23")]
[assembly: AssemblyFileVersion("2.0.23")]
[assembly: Guid("672570AF-CC57-4980-86F9-D48FD1CC707D")]
2 changes: 1 addition & 1 deletion version.info
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
:
Early update check:2.0.2
Early update check:2.0.3
Early update check!de:3
Early update check!ru:2
:

0 comments on commit c57f595

Please sign in to comment.