-
Notifications
You must be signed in to change notification settings - Fork 796
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
Support multilingual "Downloads" folder. Debian. #2843
Comments
So wouldn't it be more straightforward to just change the folder. One needs to do it only once per profile. I see very little benefit implementing this feature in ungoogled-chromium. |
Thanks for your question @PF4Public :) No and yes. No for Ungoogle-Chromium (UC) newcomers and beginner end-users. But yes, for advanced end-users. This suggested new feature is for newcomers and beginner end-users. Not advanced users. Most newcomers and beginner end-users that I know of are intimidated by the clutter of Chromium settings. And for the few who find how to change the default download folder. Most of the time, what they do is that, in good faith, they choose a folder outside the UC flatpak sandbox permission. In other words, outside its allowed Just now, I clarified that new feature suggestion is for UC newcomers and beginner end-users In summary, most UC newcomers and beginner end-users expect to be able to download files without changing any default configuration. All other internet browsers that I know of are able to do this by default. Such as, but not limited to, LibreWolf, Tor Browser, Firefox. |
@PF4Public :) This table shows a summary of XDG's Base Directory Specification at https://gist.github.com/roalcantara/107ba66dfa3b9d023ac9329e639bc58c#xdg---base-directory-specification In this table above, Linux / BSD column might solve this challenge with If you're not familiar with XDG, it is an API. Which is available on most Linux distributions and MacOS. Including Debian Linux. "xdg-user-dirs is a tool to help to manage "well known" user directories like the desktop folder and the music folder. It also handles localization (i.e. translation) of the filenames." Details about XDG for Flatpak at https://flatpak.github.io/xdg-desktop-portal/docs/api-reference.html Source about XDG at https://www.freedesktop.org/wiki/Software/xdg-user-dirs/ |
Have you considered how this feature might be implemented? How would it affect routine maintenance efforts? |
Thanks for asking @PF4Public :) I would love to contribute to software development. But I'm not a developer. Per my first message in this ticket, I'm happy to contrite testing and documentation. Developers might be interested in this table. Which shows a summary of XDG's Base Directory Specification at https://gist.github.com/roalcantara/107ba66dfa3b9d023ac9329e639bc58c#xdg---base-directory-specification In this table above, Linux / BSD column might solve this challenge with If developers are not familiar with XDG, it is an API. Which is available on most Linux distributions and MacOS. Including Debian Linux. "xdg-user-dirs is a tool to help to manage "well known" user directories like the desktop folder and the music folder. It also handles localization (i.e. translation) of the filenames." Details about XDG for Flatpak at https://flatpak.github.io/xdg-desktop-portal/docs/api-reference.html Source about XDG at https://www.freedesktop.org/wiki/Software/xdg-user-dirs/
I would love to contribute to maintaining ungoogled-software code repository. But I'm not a maintainer. Per my first message in this ticket, I'm happy to contrite testing and documentation. My understanding of XDG is that it's an API. Meaning that using this API option, adapting the code would be a one time maintenance action. Then very seldom need to be adapted. This is the whole point of API. To facilitate maintenance and allow different software to automatically understand each other. Again, I'm not a maintainer. This is just my guess and understanding. |
@Francewhoa You don't have to copy-paste already existing information again, it adds nothing to the discussion. I'll keep this issue open to gather more opinions and perhaps someone might be willing to implement it. |
This seems more like a Chromium bug, no? |
I wouldn't consider it bug to be honest. It has a simple solution. By asking for implementation plan I wanted to confirm my earlier statement: "I see very little benefit implementing this feature in ungoogled-chromium." |
Directory names and xdg overrides, are handled in chrome/common/chrome_paths_linux.cc and base/third_party/xdg_user_dirs/xdg_user_dir_lookup.cc Does setting the xdg variable work? For example.....
|
Description
Find the title above
Who's implementing?
The problem
About Ungoogled-Chromium version 124.0.6367.118. For newcomers and beginner end-users, the challenge is that if the Debian Linux is set to another default language than English, all downloads fail. Because the Downloads folder do not exist. Details in the steps to reproduce down below.
Possible solutions
Solution 1. XDG.
How about XDG? XDG is included in all Debian and most Linux distribution. XDG has a Base Directory Specification. Maybe
$XDG_DOWNLOAD_DIR
? Details at https://www.freedesktop.org/wiki/Software/xdg-user-dirs/For UC newcomers and beginner end-users. For UC to support multilingual "Downloads" folder, how about during Ungoogled-Chromium startup, using XDG, somehow automatically detect the present default download folder?
This table shows a summary of XDG's Base Directory Specification at https://gist.github.com/roalcantara/107ba66dfa3b9d023ac9329e639bc58c#xdg---base-directory-specification
In this table above, Linux / BSD column might solve this challenge with
$XDG_DOWNLOAD_DIR
If you're not familiar with XDG, it is an API. Which is available on most Linux distributions and MacOS. Including Debian Linux. "xdg-user-dirs is a tool to help to manage "well known" user directories like the desktop folder and the music folder. It also handles localization (i.e. translation) of the filenames."
Details about XDG for Flatpak at https://flatpak.github.io/xdg-desktop-portal/docs/api-reference.html
Source about XDG at https://www.freedesktop.org/wiki/Software/xdg-user-dirs/
Any volunteer to implement this new feature ? If needed, both me and the Ubertus.Org team would be happy to contribute beta testing and documentation for this new feature.
Solution 2. Environment Variable.
Maybe there is a Linux environment variable for this? Then at UC start, how about automatically adapt the download path to the download folder.
Alternatives
This alternative does not resolve this challenge for newcomers and beginner end-users. But a temporary resolution for UC advanced users with Debian in French, you can manually change the default download folder using those steps:
chrome://settings/?search=emplacement
Additional context
Steps to reproduce
Using Debian 12 Bookworm, configure its default language to another language than English. In this example, we will use French (Français).
Install Ungoogled-Chromium (UC) from https://flathub.org/apps/io.github.ungoogled_software.ungoogled_chromium
Assuming that both your Debian is in French and your UC is in French, using UC, go to
chrome://settings/?search=emplacement
Next to Emplacement double-check that the present default download folder is set to UC default Downloads. If yes, do not change it. Also check that Always ask for where to download file/Toujours demander où enregistrer les fichiers is presently deactivated. If yes, leave it deactivated.
Using UC, try to download any file. For example, from:
Test file from OVH at https://proof.ovh.net/files/
Extension from https://chrome.google.com/webstore/
All downloads fail. Ungoogled-Chromium (UC) says the download is in progress, but never completed. The file is not stored at all. This is the challenge. UC newcomers and beginner end-users expect to be able to download file without changing any default configuration. All other internet browsers that I know of are able to do this by default. Such as, but not limited to, LibreWolf, Tor Browser, Firefox.
Most newcomers and beginner end-users that I know of are intimidated by the clutter of Chromium settings. And for the few who find how to change the default download folder. Most of the time, what they do is that, in good faith, they choose a folder outside the UC flatpak sandbox permission. In other words, outside its allowed
filesystem=home
default access. For example, a remote storage or local storage. Which is located outside home. As you know, UC, by default, and for good stronger security reason, can't store or access anything outside home. In other words, for most of them, the few who find the deep-buried settings, the download still fails. And obviously, using Flatseal and configuring it appropriately is way outside their present skills and interest. To resolve this challenge, I suggest to simply use the default download folder located inside home. But to somehow adapt it for multilingual.My guess about the cause of this challenge is that, by default, UC always download file to the user's Downloads folder. But in Debian, when the user configured its Debian to another language than English. For example, French (Français). The Downloads folder is titled Téléchargements. The Downloads folder does not exist. Obviously, UC is not allowed to store files into a folder that does not exist.
The text was updated successfully, but these errors were encountered: