Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 323458 Details for
Bug 371723
Add ebuild for keepass(2) - http://keepass.info
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
Path detection patch for KeePass 2.20
keepass-2.20-xsl-path-detection.patch (text/plain), 1.29 KB, created by
Alessandro Di Federico
on 2012-09-10 21:26:05 UTC
(
hide
)
Description:
Path detection patch for KeePass 2.20
Filename:
MIME Type:
Creator:
Alessandro Di Federico
Created:
2012-09-10 21:26:05 UTC
Size:
1.29 KB
patch
obsolete
>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);
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 371723
:
289483
|
291257
|
299617
|
304289
|
304291
|
304293
|
304295
|
319092
|
320186
|
320188
|
323456
| 323458