Skip to content

Commit c57f595

Browse files
committed
Bugfixes
- Mono: Try opening debugfiles with xdg-open as fallback
1 parent bf1342c commit c57f595

File tree

3 files changed

+19
-4
lines changed

3 files changed

+19
-4
lines changed

src/PluginTools.cs

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -706,7 +706,22 @@ public static void SaveOrShow()
706706
if (m_DebugEntries.Count == 0) return;
707707
SaveDebugMessages();
708708
if (AutoOpen || (AskOpen && Tools.AskYesNo("DebugFile: " + DebugFile + "\n\nOpen debug file?") == DialogResult.Yes))
709-
System.Diagnostics.Process.Start(DebugFile);
709+
{
710+
try
711+
{
712+
System.Diagnostics.Process.Start(DebugFile);
713+
}
714+
catch
715+
{
716+
if (KeePassLib.Native.NativeLib.IsUnix()) //The above is broken on mono
717+
{
718+
System.Diagnostics.ProcessStartInfo psi = new System.Diagnostics.ProcessStartInfo();
719+
psi.Arguments = DebugFile;
720+
psi.FileName = "xdg-open";
721+
System.Diagnostics.Process.Start(psi);
722+
}
723+
}
724+
}
710725
}
711726

712727
private static System.Xml.XmlWriter m_xw = null;

src/Properties/AssemblyInfo.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,6 @@
2424
//
2525
// You can specify all the values or you can use the default the Revision and
2626
// Build Numbers by using the '*' as shown below:
27-
[assembly: AssemblyVersion("2.0.2")]
28-
[assembly: AssemblyFileVersion("2.0.2")]
27+
[assembly: AssemblyVersion("2.0.23")]
28+
[assembly: AssemblyFileVersion("2.0.23")]
2929
[assembly: Guid("672570AF-CC57-4980-86F9-D48FD1CC707D")]

version.info

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
:
2-
Early update check:2.0.2
2+
Early update check:2.0.3
33
Early update check!de:3
44
Early update check!ru:2
55
:

0 commit comments

Comments
 (0)