b3nj5m1n / xdg-ninja

A shell script which checks your $HOME for unwanted files and directories.
MIT License
2.45k stars 144 forks source link

Add support for XSANE #186

Closed alsoGAMER closed 1 year ago

alsoGAMER commented 1 year ago

https://wiki.archlinux.org/title/SANE

b3nj5m1n commented 1 year ago

Hi, unfortunately I couldn't find much information on this, and I'm unfamiliar with the project.

It would be helpful to know which files the program creates, and what the name of the actual program is that creates these files. I found the projects gitlab page, but I'm not sure in which repository searching for or creating an issue about xdg would be appropriate.

alsoGAMER commented 1 year ago

Sorry, I opened the issue in a rush and didn't include anything useful. The software creating the .sane folder is https://gitlab.com/sane-project/frontend/xsane.

Full path and contents: .sane/xsane/xsane.rc. I also attached the rc file (as a zip, cause github), just in case you need it. xsane.rc.zip

alsoGAMER commented 1 year ago

It also appears that the software searches for the SANE_DATA_DIR env-var, if isn't set it'll fallback to $HOME/.sane/xsane, but I'm unable to test if setting that makes any difference because I'm unfamiliar as you with this project.

https://gitlab.com/sane-project/frontend/xsane/-/blob/master/xsane.CHANGES#L632

b3nj5m1n commented 1 year ago

Ok so this is a bit of a weird one, from the changelog it does indeed look like exporting that env var should work, I just tested it and well, it doesn't actually seem to do anything.

Note that you can use the alias xsane --xsane-rc $XDG_CONFIG_DIR/sane/xsane/xsane.rc to at least store your config file in .config, but it will still create an (empty) directory whenever you run the app.

I've added the info to xdg-ninja in 7024e08a90eaaccdae7a41a396569f0bb4d8d696 and created an issue regarding this.

alsoGAMER commented 1 year ago

Ok so this is a bit of a weird one, from the changelog it does indeed look like exporting that env var should work, I just tested it and well, it doesn't actually seem to do anything.

As I suspected, sadly.

Note that you can use the alias xsane --xsane-rc $XDG_CONFIG_DIR/sane/xsane/xsane.rc to at least store your config file in .config, but it will still create an (empty) directory whenever you run the app.

I don't run it via cmdline, but I'll set that anyway.

I've added the info to xdg-ninja in 7024e08 and created an issue regarding this.

Thank you for your time!