tonikelope / megabasterd

Yet another unofficial (and ugly) cross-platform MEGA downloader/uploader/streaming suite.
GNU General Public License v3.0
4.68k stars 605 forks source link

Linux: Use `xdg-user-dir` to get the default Downloads folder path #464

Closed guihkx closed 1 year ago

guihkx commented 2 years ago

Instead of defaulting the Downloads folder path to . (current directory) on Linux, we can instead rely on the xdg-user-dir tool, which should give us a more accurate location for the default Downloads folder.

If the xdg-user-dir output does not give us an actual, existing directory, we just fall back to the current directory, like before.

guihkx commented 1 year ago

Hi @tonikelope, sorry for the ping, but would have any interest in getting this merged?

Thanks.

tonikelope commented 1 year ago

Hi. Sorry I didn't get back to you sooner. I prefer to keep the code as less platform dependent and use Java system variables (although I use ArchLinux). But there is also a problem with the portable version that has to be self-contained and not depend on or write to directories external to the application directory itself.

Thanks for your help and your interest though.

Happy new year.

El jue, 5 ene 2023 a las 1:17, Guilherme Silva @.***>) escribió:

Hi @tonikelope https://github.com/tonikelope, sorry for the ping, but would have any interest in getting this merged?

Thanks.

— Reply to this email directly, view it on GitHub https://github.com/tonikelope/megabasterd/pull/464#issuecomment-1371572272, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAKIECDYPNMOPWTDTW2CVELWQYHJRANCNFSM6AAAAAAQ4I6VYA . You are receiving this because you were mentioned.Message ID: @.***>

guihkx commented 1 year ago

No worries, that's completely understandable. Let me just close this one then.

Happy new year! ^^