diff --git a/KeePass/Forms/AboutForm.cs b/KeePass/Forms/AboutForm.cs index 8a04c87..6083c00 100644 --- a/KeePass/Forms/AboutForm.cs +++ b/KeePass/Forms/AboutForm.cs @@ -31,9 +31,11 @@ using KeePass.UI; using KeePass.Resources; using KeePass.Util; using KeePass.DataExchange; +using KeePass.Native; using KeePassLib; using KeePassLib.Utility; +using KeePassLib.Native; namespace KeePass.Forms { @@ -92,8 +94,21 @@ namespace KeePass.Forms m_lvComponents.Items.Add(lvi); lvi = new ListViewItem(KPRes.XslStylesheetsKdbx); - string strPath = WinUtil.GetExecutable(); - strPath = UrlUtil.GetFileDirectory(strPath, true, false); + + string strPath; + if (NativeLib.IsUnix()) + { + strPath = Environment.GetFolderPath(Environment.SpecialFolder.CommonApplicationData); + strPath = UrlUtil.EnsureTerminatingSeparator(strPath, false); + strPath += PwDefs.ShortProductName.ToLower(); + strPath = UrlUtil.EnsureTerminatingSeparator(strPath, false); + } + else + { + strPath = WinUtil.GetExecutable(); + strPath = UrlUtil.GetFileDirectory(strPath, true, false); + } + strPath += AppDefs.XslFilesDir; strPath = UrlUtil.EnsureTerminatingSeparator(strPath, false); bool bInstalled = File.Exists(strPath + AppDefs.XslFileHtmlLite);