Merge pull request #2543 from renyhp/patch-2

Update bookmarks location
This commit is contained in:
Kevin Ottens 2020-10-12 17:31:11 +02:00 committed by GitHub
commit e980682b4d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -24,7 +24,7 @@ namespace OCC {
static void setupFavLink_private(const QString &folder)
{
// Nautilus: add to ~/.gtk-bookmarks
QFile gtkBookmarks(QDir::homePath() + QLatin1String("/.gtk-bookmarks"));
QFile gtkBookmarks(QDir::homePath() + QLatin1String("/.config/gtk-3.0/bookmarks"));
QByteArray folderUrl = "file://" + folder.toUtf8();
if (gtkBookmarks.open(QFile::ReadWrite)) {
QByteArray places = gtkBookmarks.readAll();