3
0
Fork 0
forked from mirrors/nixpkgs

monero-gui: remove unecessary patches

This commit is contained in:
rnhmjoj 2019-07-07 01:28:23 +02:00
parent 7b3ecfb6a5
commit 032b0e6c12
No known key found for this signature in database
GPG key ID: BFBAF4C975F76450
3 changed files with 0 additions and 33 deletions

View file

@ -48,7 +48,6 @@ stdenv.mkDerivation rec {
patches = [
./move-log-file.patch
./move-translations-dir.patch
];
postPatch = ''
@ -83,10 +82,6 @@ stdenv.mkDerivation rec {
mkdir -p $out/share/applications
cp ${desktopItem}/share/applications/* $out/share/applications
# install translations
mkdir -p $out/share/translations
cp translations/*.qm $out/share/translations/
# install icons
for n in 16 24 32 48 64 96 128 256; do
size=$n"x"$n

View file

@ -13,18 +13,3 @@ index a51568d..5a9f683 100644
parser.addOption(logPathOption);
parser.addHelpOption();
parser.process(app);
diff --git a/Logger.cpp b/Logger.cpp
index 6b1daba..c357762 100644
--- a/Logger.cpp
+++ b/Logger.cpp
@@ -28,8 +28,8 @@ static const QString defaultLogName = "monero-wallet-gui.log";
static const QString appFolder = "Library/Logs";
#else // linux + bsd
//HomeLocation = "~"
- static const QString osPath = QStandardPaths::standardLocations(QStandardPaths::HomeLocation).at(0);
- static const QString appFolder = ".bitmonero";
+ static const QString osPath = QStandardPaths::standardLocations(QStandardPaths::CacheLocation).at(0);
+ static const QString appFolder = "bitmonero";
#endif

View file

@ -1,13 +0,0 @@
diff --git a/TranslationManager.cpp b/TranslationManager.cpp
index e7fc52a..83534cc 100644
--- a/TranslationManager.cpp
+++ b/TranslationManager.cpp
@@ -25,7 +25,7 @@ bool TranslationManager::setLanguage(const QString &language)
return true;
}
- QString dir = qApp->applicationDirPath() + "/translations";
+ QString dir = qApp->applicationDirPath() + "/../share/translations";
QString filename = "monero-core_" + language;
qDebug("%s: loading translation file '%s' from '%s'",