Skip to content

Make the program XDG compliant#124

Open
S0AndS0 wants to merge 1 commit into
dpnkrpl:mainfrom
S0AndS0:xdg-config-defaults
Open

Make the program XDG compliant#124
S0AndS0 wants to merge 1 commit into
dpnkrpl:mainfrom
S0AndS0:xdg-config-defaults

Conversation

@S0AndS0

@S0AndS0 S0AndS0 commented Sep 10, 2025

Copy link
Copy Markdown

Fix #105 and add fallback for all undefined configuration entries

This set of changes should be backwards compatible, because it'll still read from ~/.radio-active-configs.ini

Attributions


Side note; I am not sure what sorts of style guidelines ya want me to adhere to, so if lines are too long or something do let me know as my first concern is on function before form ;-)

Fix dpnkrpl#105 and add `fallback` for all undefined configuration entries

**Attributions**

- [Github `deep5050/radio-active` -- Issue: Make the program XDG compliant](dpnkrpl#105)
- [GitHub `takluyver/pyxdg` -- `xdg/BaseDirectory.py`](https://github.com/takluyver/pyxdg/blob/aba9d73c1e41f58234988bd155fe67ef7cb0fae0/xdg/BaseDirectory.py#L37-L41)
- `python3-3.13.6/lib/python3.13/configparser.py`
   ```
   read(filenames, encoding=None)
       Read and parse the iterable of named configuration files, given by
       name.  A single filename is also allowed.  Non-existing files
       are ignored.  Return list of successfully read files.
   ```
@github-actions

Copy link
Copy Markdown

Hi, @S0AndS0,
Thanks for opening this PR 💙 .
Contributors 🧑‍🤝‍🧑 like you make the open source community 🌍 such an amazing place to learn 📖 , inspire 👼, and create 🎨 .
We will review it 👀 and get back to you as soon as possible 👍 . Just make sure you have followed the contribution guidelines.

By that time enjoy this meme 👇 , hope you like it 😄

meme

Use this action on your projects. Use jokes on issues instead.

S0AndS0 added a commit to S0AndS0/nixpkgs that referenced this pull request Sep 13, 2025
Internally adds `zenlog` which, in the future, may break due to
`colorlog` introducing breaking-changes.  Hence why for the commented
code in that section.  Searching if any other packages have this
dependency did not result in results;

```bash
shopt -s globstar;
grep -rEn -- zenlog pkgs/**/*.nix;
```

Overrides and pins `pyradios` to version `1.0.2` because without this
the main application complains during install time.

Main package `src` is obtained via `fetchFromGitHub` because I forked it
to enable XDG configuration directory support as well as reduce need of
declaring defaults.  Once dpnkrpl/radio-active#124 is accepted, or
rejected, we can revisit the `src` value.

Attributions;

- @qzylinra for making code look pretty
- @SuperSandro2000 for encouraging `zenlog` to be packaged separately
@dpnkrpl

dpnkrpl commented Nov 24, 2025

Copy link
Copy Markdown
Owner

let me take a look now.. sorry for the delay

@dpnkrpl dpnkrpl mentioned this pull request Jan 22, 2026
@dpnkrpl

dpnkrpl commented Apr 4, 2026

Copy link
Copy Markdown
Owner

@all-contributors please add @S0AndS0 for the bug code

@allcontributors

Copy link
Copy Markdown
Contributor

@deep5050

I've put up a pull request to add @S0AndS0! 🎉

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Make the program XDG compliant

2 participants