[PATCH] Re: inotify_add_watch failed
probono
probono at puredarwin.org
Sat Nov 7 14:33:53 PST 2015
2015-11-07 17:00 GMT+01:00 Dirk Hohndel <dirk at hohndel.org>:
>
>> On Nov 7, 2015, at 7:46 AM, probono <probono at puredarwin.org> wrote:
>>
>> I keep getting a
>> QInotifyFileSystemWatcherEngine::addPaths: inotify_add_watch failed:
>> No such file or directory
>> message.
>
> Clearly another Marble "feature" where it can't figure out it's
> data directory and so bravely assumes it must be '/'
> Now I need to find this in the Marble sources and disable it.
The patch below appears to remove the error message. I am using it in
my Subsurface_4.5.1.138_x86_64.AppImage.
https://github.com/probonopd/marble/commit/3faf929e3d20cf6926ea198453342118d910ca5d.patch
Signed-off-by: probono <probono at puredarwin.org>
---
diff --git a/src/lib/marble/MapThemeManager.cpp
b/src/lib/marble/MapThemeManager.cpp
index 7bdd7c9..b984a14 100644
--- a/src/lib/marble/MapThemeManager.cpp
+++ b/src/lib/marble/MapThemeManager.cpp
@@ -261,9 +261,13 @@ QStringList MapThemeManager::Private::pathsToWatch()
}
result << localMapPathName;
- result << systemMapPathName;
addMapThemePaths( localMapPathName, result );
- addMapThemePaths( systemMapPathName, result );
+
+ if( QDir().exists( systemMapPathName ) ) {
+ result << systemMapPathName;
+ addMapThemePaths( systemMapPathName, result );
+ }
+
return result;
}
More information about the subsurface
mailing list