Menu

#14 Add XDG Base Dir support

1.3
done
1.5
7
2022-07-09
2020-04-02
No

I think it would be a good idea to implement the XDG Base Directory Specifications for mbsync and put the .mbsyncrc in ~/.config/isync/mbsyncrc
https://specifications.freedesktop.org/basedir-spec/basedir-spec-latest.html
It doesnt have to be standard, but I think it should rather be the preferred option for a configuration file, so mbsync first looks for it in .config and if its not found in the home directory.

Discussion

  • Oswald Buddenhagen

    • status: requested --> open
     
  • Oswald Buddenhagen

    ~/.local/share/mbsync when SyncState * is not used would be also relevant.

     
  • Journeyman

    Journeyman - 2020-10-04

    Upvoting this feature request

     
  • Oswald Buddenhagen

    • status: open --> done
    • assigned_to: Oswald Buddenhagen
    • Implemented In: unknown --> 1.5
     
  • Oswald Buddenhagen

    done in commit cf13630a0.

     
  • Yunus Kahveci

    Yunus Kahveci - 2022-06-20

    Thanks for implementing this and helping to unclutter our home directories!

     
  • Kevin Duff

    Kevin Duff - 2022-07-08

    Were the XDG Base Directory Specifications also followed for the .mbsync/ folder? Noticed on the Arch Wiki page that there are instructions for moving .mbsyncrc to ~/.config/isync but nothing about the .mbsync/ folder. Is it possible to move this folder to ~./local/share/mbsync? I've tried but it doesn't appear to work on my system. Sorry if I'm missing something related to this but couldn't find anything.

     
    • Oswald Buddenhagen

      Sorry if I'm missing something related to this but couldn't find anything.

      presumably, you didn't pay attention to the version?
      the manual clearly states the new default locations (though i noticed that mentioning the defaults of the XDG variables would be helpful, too - done now).

       

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.