D5034: Add support for x-gvfs style options in fstab

Stefan BrĂ¼ns noreply at phabricator.kde.org
Tue Jul 11 21:10:04 UTC 2017


bruns added inline comments.

INLINE COMMENTS

> fstabstorageaccess.cpp:48
>  
> +    const QStringList &options = FstabHandling::options(device->device());
> +    // GVFS by default doesn't show devices outside of /media, $HOME (and some other locations)

Another useless use of const QList<T>&, FstabHandling returns a detached list.
Even if it were not detached, contains() would not detach.

> fstabstorageaccess.cpp:52
> +    // only x-gvfs-hide is honored here.
> +    m_isIgnored = options.contains(QLatin1String("comment=x-gvfs-hide"));
> +

According to the linked udisk2 documentation, this should be a plain "x-gvfs-hide", scrap the "comment=".

REPOSITORY
  R245 Solid

REVISION DETAIL
  https://phabricator.kde.org/D5034

To: broulik, #plasma, dhaumann, dfaure
Cc: bruns, dhaumann, plasma-devel, #frameworks, ZrenBot, progwolff, lesliezhai, ali-mohamed, jensreuterberg, abetts, sebas, apol, mart, lukas
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kde-frameworks-devel/attachments/20170711/2b83b51c/attachment.html>


More information about the Kde-frameworks-devel mailing list