Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Suggestion] Use $HOME/.local/bin/nwjs-rpgm or $XDG_DATA_HOME/rpgmaker-linux as $mainfd #4

Open
bayazidbh opened this issue May 14, 2024 · 2 comments

Comments

@bayazidbh
Copy link
Contributor

If I'm reading the install.sh right, it seems you're creating ~/.local/bin anyways. So why not just point mainfd there? I prefer if apps don't create new home folder if it's not 100% necessary. I put in nwjs-rpgm as folder name just in case user already have nwjs named folder/binary/script.

Though, considering what I know of the XDG folders spec, then the actual correct folder to use is $XDG_DATA_HOME which by default is ~/.local/share. Steam, for example, install itself there, as does Lutris runner assuming you're not using flatpak. And since it's not in ~/.local/bin there's no conflict with the executable file name so no need for weird folder names.

I'm okay with either, but I do prefer following XDG folders spec when possible. Just not the main home folder please - I'd even take $XDG_DOCUMENTS_DIR (~/Documents) over home.

(speaking of, I think instead of using ~/.local/share/applications, using $XDG_DATA_HOME/applications might be better).

@bakustarver
Copy link
Owner

bakustarver commented May 14, 2024

I think It's just more intuitive for the user to see it in a more prominent place, in the home folder.

I'll add a custom installation path or make a deb package later.

~/.local/bin - default folder for executables

@bayazidbh
Copy link
Contributor Author

I think It's just more intuitive for the user to see it in a more prominent place, in the home folder.

In that case, maybe the normal installer could default to installing in ~/Documents but can accept other folders? I personally prefer ~/.local/share and ~/.local/bin since that's what everything else uses (and I just don't like filling up my home folder).

I would've just manually change it up, but I haven't done a full read up on the script to know how everything's coded. If I could just provide an env var or edit a var inside the script and everything would behave correctly, I would just do that - but idk what are the stuff that I need to change to make things behave correctly.

Still, it's a thing to consider. Thanks for the response regardless!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants