ferdium / ferdium-app

All your services in one place, built by the community
https://ferdium.org
Apache License 2.0
2.84k stars 170 forks source link

[Feature Request]: Don't create ~/.pki directory, move it to $XDG_DATA_HOME/pki #1488

Open Samueru-sama opened 9 months ago

Samueru-sama commented 9 months ago

Preflight Checklist

Problem Description

NSS already supports XDG Base Directory Specification however Ferdium instead decides to create the directory ~/.pki, likely because the path is hardcoded.

Proposed Solution

Ferdium should create the directory in $XDG_DATA_HOME

Alternatives Considered

Even full support is not needed, Ferdium can check for $XDG_DATA_HOME/pki first before defaulting to ~/.pki.

Additional Information

No response

vraravam commented 8 months ago

I went through the code - and nowhere do we hardcode .pki nor just pki. Not sure if this has to be logged against a dependency? Could you please give more details like OS version, which version of Ferdium, where/how does this issue occur, etc?

Samueru-sama commented 8 months ago

I went through the code - and nowhere do we hardcode .pki nor just pki. Not sure if this has to be logged against a dependency? Could you please give more details like OS version, which version of Ferdium, where/how does this issue occur, etc?

Hi, I opened a similar issue for freetube and was told that there is no way to fix it because it is an issue with electron.

Either way this happens on all ferdium versions on linux.

vraravam commented 8 months ago

Hi, I opened a similar issue for freetube and was told that there is no way to fix it because it is an issue with electron.

Either way this happens on all ferdium versions on linux.

In that case, its pretty evident that this is an upstream issue and we wouldn't be able to fix it in the ferdium codebase.