mvo5 / synaptic

The synaptic package manager
GNU General Public License v2.0
161 stars 55 forks source link

Respect XDG Spec #116

Open alichtman opened 1 year ago

alichtman commented 1 year ago

It would be awesome if synaptic respected the XDG Spec to reduce clutter in $HOME.

$ ll ~/.synaptic
.rw-rw-r-- alichtman alichtman   0 B Sat May 27 2023 05:40:06 AM  options
.rw-rw-r-- alichtman alichtman 322 B Sat May 27 2023 05:40:06 AM  synaptic.conf

I think the patch would need to be made right here: https://github.com/mvo5/synaptic/blob/a6ac0c3be9b587b90632bef2997fbe31d16b2355/common/rconfiguration.cc#L140-L146C25

If ~/.synaptic exists, use that. Else, create $XDG_CONFIG_HOME/synaptic if needed and use that as the config dir.

@mvo5, would you accept a PR for this issue?