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
Describe the bug
Any operation like editing the URLs.txt won't work if the downloader isn't running on a desktop session, following the changes from #297 . As it is stated also in the man page of xdg-open, "xdg-open is for use inside a desktop session only." in the case that the tool runs in a headless environment with no desktop session, xdg-open, xdg-mime etc. probably wont even exist (like it didn't in my system) so first, after the change xdg-utils is a requirement for linux systems. But even after installing xdg-utils it won't work because xdg-mime query fallbacks to "file" command where it is possible that is also not installed. After file command and xdg-utils is installed then it is possible to use xdg-mime to query stuff but even then, xdg-open won't work without more tinkering. Tbh at that point finding the related file by myself and editing it makes more sense.
To Help Reproduce
Easiest way to reproduce and the way I am producing this would be SSH'ing into a linux computer and trying to edit urls file.
Screenshots
An error message saying "No default text editor found" will be printed until "xdg-utils" and "file" is installed
Setup Information
OS: Linux, Debian 12
Cyberdrop Downloader Version: Installed from the source master branch
The text was updated successfully, but these errors were encountered:
subprocess.call([os.getenv("EDITOR"), file_path]) would get the editor set in environment variables to open the file, it works for "vim". I think it would be wiser to use this in linux since the app already runs in terminal, opening the editor set for terminal makes more sense rather then a GUI editor.
Describe the bug
Any operation like editing the URLs.txt won't work if the downloader isn't running on a desktop session, following the changes from #297 . As it is stated also in the man page of xdg-open, "xdg-open is for use inside a desktop session only." in the case that the tool runs in a headless environment with no desktop session, xdg-open, xdg-mime etc. probably wont even exist (like it didn't in my system) so first, after the change xdg-utils is a requirement for linux systems. But even after installing xdg-utils it won't work because xdg-mime query fallbacks to "file" command where it is possible that is also not installed. After file command and xdg-utils is installed then it is possible to use xdg-mime to query stuff but even then, xdg-open won't work without more tinkering. Tbh at that point finding the related file by myself and editing it makes more sense.
To Help Reproduce
Easiest way to reproduce and the way I am producing this would be SSH'ing into a linux computer and trying to edit urls file.
Screenshots
An error message saying "No default text editor found" will be printed until "xdg-utils" and "file" is installed
Setup Information
The text was updated successfully, but these errors were encountered: