nix-community / plasma-manager

Manage KDE Plasma with Home Manager
https://nix-community.github.io/plasma-manager/
MIT License
639 stars 74 forks source link

Set default places for e.g. dolphin (write the `user-places.xbel`) #330

Open Asqiir opened 2 months ago

Asqiir commented 2 months ago

I would like to be able to set the "Places" in dolphin with plasma-manager. These are defined in ~/.local/share/user-places.xbel.

xbel is the XML bookmark exchange language. Despite this rather general name it seems only to be used by KDE applications (e.g. gnome doesn't), and a few relatively unknown browsers. That is why I believe plasma-manager might be the right place for this feature.

Moe1369 commented 2 months ago

For now you can achieve this via home.file.".local/share/user-places.xbel" but the user-places file does not seem tor accept variables for userfolder so in a multihost,multiuser config you'd have to create multiple user-places.xbel files.

Here's how I did it

https://github.com/Moe1369/nixos-config/blob/main/modules/user/plasma/default.nix

HeitorAugustoLN commented 1 month ago

I will try to implement this, in this weekend or next week. Shouldn't be too different from what I did in #362