Closed x80486 closed 6 years ago
18.08 issues go here: https://gitlab.com/freedesktop-sdk/freedesktop-sdk
@x80486 @TingPing I had a look to identify the problem. It seems that sdk version 18.08 has removed the symlink for /etc/mtab (which should link to /proc/mounts). This for fsnotifier is a problem, because it only looks for the symlink and doesn't have a fallback for example to check the original file as well.
Check the source below for the logic, line 413 http://git.jetbrains.org/?p=idea/community.git;a=blob;f=native/fsNotifier/linux/main.c;h=26d9f3795970e4c4e760b7ba021b62fea67ae654;hb=b3e2ed3518e1a315de8ba6c1c542742cb36aea43#l413
A solution is either add back /etc/mtab or push a patch to intellij community repository upstream.
@cungureanu, those are great news! Thanks for taking the time to investigate this one!
The fsnotifier
utility is used by several JetBrains' products. If the issue is finally identified as part of the same, the JetBrains folks would have to fix it "across the board".
On the other hand, it would be nice to know beforehand why the symlink for /etc/mtab
was removed in Freedesktop 18.08
...maybe that wasn't intended.
Regardless of the changes in the Flatpak runtime, the JetBrains folks are going to use also /proc/mounts
as a fallback, possibly on 2019.1
.
So, while I was doing the JetBrains DataGrip Flatpak, I noticed that, if I use the
Freedesktop 18.08
I was getting a warning:External file changes sync may be slow: File watcher failed to start
; but the underlying issue was that the utilityfsnotifier64
(used likeexec /app/extra/DataGrip-2018.2.2/bin/fsnotifier64 --selftest
) couldn’t open/etc/mtab
:If I use the
Freedesktop 1.6
, this doesn’t happen:Those are the symptoms I've noticed, but I don't really know the root cause for this. My guess is that something changed in that regard between versions.
If so, was that intended? Moreover, is it possible to have the same behavior back?