You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm getting the following error while trying to generate default config file:
>> library-loader-cli -g -u
Writing default config to "/home/ms/.config/LibraryLoader.toml"
thread 'main' panicked at 'Failed to get default download dir', ll-core/src/config/mod.rs:93:22
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
It seems to fail on dirs::download_dir function. According to Rust docs return value should depend on XDG_DOWNLOAD_DIR environment variable.
I verified if it's present and it was. To be sure I also tried running it with the path set explicitly:
>> XDG_DOWNLOAD_DIR=/home/ms/Downloads library-loader-cli -g -u
Writing default config to "/home/ms/.config/LibraryLoader.toml"
thread 'main' panicked at 'Failed to get default download dir', ll-core/src/config/mod.rs:93:22
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
The text was updated successfully, but these errors were encountered:
Had the same problem on Arch, it looks like that is an issue with the underlying xdg and dirs library.
In my case i fixed it by installing the xdg-user-dirs package and creating the default directories xdg expects with xdg-user-dirs-update. See https://wiki.archlinux.org/title/XDG_user_directories
I do not know if that is the correct way, but at least it seems to work now.
Had the same problem on Arch, it looks like that is an issue with the underlying xdg and dirs library. In my case i fixed it by installing the xdg-user-dirs package and creating the default directories xdg expects with xdg-user-dirs-update. See https://wiki.archlinux.org/title/XDG_user_directories I do not know if that is the correct way, but at least it seems to work now.
This is indeed the correct way. I just kind of assumed that the usual XDG packages would be installed.
@kaolpr Can you confirm that this is resolved by installing xdg-user-dirs?
I'm getting the following error while trying to generate default config file:
It seems to fail on
dirs::download_dir
function. According to Rust docs return value should depend onXDG_DOWNLOAD_DIR
environment variable.I verified if it's present and it was. To be sure I also tried running it with the path set explicitly:
The text was updated successfully, but these errors were encountered: