How do I sync KDE 5 places (folder bookmarks) to GTK 3?

I'm using KDE 5 (plasma). How do I sync the folder bookmarks i made using Dolphin to GTK 3 applications such as Thunar?


Solution 1:

#!/bin/bash
awk -F\" '/<bookmark href=\"file/ {print $2}' < $HOME/.local/share/user-places.xbel > $HOME/.config/gtk-3.0/bookmarks

See https://www.hemr.org/wiki/User:Ian/synchronizing_places_menu_in_dolphin_and_thunar for more info.

Solution 2:

There is a BookmarkSync application for that.

BoomarkSync screenshot

It is still useful in 2021, because some apps still do not support xdg desktop portal. And this may at least partly lower your pain of picking files in them.

It worth checking first if your app of interest supports native file picker. Arch Wiki describes how to setup things.