Summary: | Allow user to choose whether to install downloaded assets in home folder or systemwide | ||
---|---|---|---|
Product: | [Frameworks and Libraries] frameworks-knewstuff | Reporter: | David <david.cortes.rivera> |
Component: | general | Assignee: | Dan Leinir Turthra Jensen <admin> |
Status: | CONFIRMED --- | ||
Severity: | wishlist | CC: | alexander.lohnau, kdelibs-bugs, nate |
Priority: | NOR | ||
Version: | 5.103.0 | ||
Target Milestone: | --- | ||
Platform: | Other | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: | ||
Sentry Crash Report: |
Description
David
2023-03-06 18:14:30 UTC
Any settings you change are saved to your user account. But when you run apps using `sudo`, they get their settings from the root user account, because they're being run as the root user. In general, GUI apps should not be run using `sudo`; they should be smart enough to request elevated privileges themselves when you launch them and use them normally. Any apps that don't do this should be fixed, and ideally not used at all until that happens. (In reply to Nate Graham from comment #1) > Any settings you change are saved to your user account. But when you run > apps using `sudo`, they get their settings from the root user account, > because they're being run as the root user. > > In general, GUI apps should not be run using `sudo`; they should be smart > enough to request elevated privileges themselves when you launch them and > use them normally. Any apps that don't do this should be fixed, and ideally > not used at all until that happens. It's not correct that it doesn't apply user settings to it: if I select built-in themes like "adwaita-dark", it does apply it to sudo-requesting apps like synaptic. Synaptic is by the way run as a user but with sudo permissions through "synaptic-pkexec". If you don't use a debian-based distro, another alternative is to try "gparted" which also requests sudo permissions. Also, I seem to recall you deliberately disabled running graphical apps like "systemsettings5" as sudo so those settings cannot be changed for the root user either. (In reply to David from comment #2) > It's not correct that it doesn't apply user settings to it: if I select > built-in themes like "adwaita-dark", it does apply it to sudo-requesting > apps like synaptic. That's because those themes are installed in a systemwide location. When you download themes from the store using the "get new [thing]" downloader, it places them in your home directory. So they aren't accessible from the perspective of the root user, which you're running the app as. > Also, I seem to recall you deliberately disabled running graphical apps like > "systemsettings5" as sudo so those settings cannot be changed for the root > user either. I did no such thing (and neither did anyone else), but regardless, you shouldn't do that because it will cause a ton of other problems for you and you'll be fighting with weird issues until the heat death of the universe. Just Say No. :) What we can perhaps do is allow downloaded themes to optionally be installed systemwide. But note that even this will not work in the next-generation of immutable OSs (bug 454509). There was some (defunct) code that would have allowed this feature. However, I share Nate's concern about this breaking on immutable OSs. THB I am not sure if this feature is even a good idea, because we are still talking about third-party content. Also, the KPackage installation logic does not allow system-wide installations. This would be needed in order for KNewStuff to allow it. (In reply to Alexander Lohnau from comment #4) > There was some (defunct) code that would have allowed this feature. However, > I share Nate's concern about this breaking on immutable OSs. > > THB I am not sure if this feature is even a good idea, because we are still > talking about third-party content. Also, the KPackage installation logic > does not allow system-wide installations. This would be needed in order for > KNewStuff to allow it. But KDE in any event is not even able to start when key paths like /home are read-only, so I don't get why inmutable systems would be a concern if it doesn't run in them. Actually, reading the other bug report, it seems that now things are saved to a different folder. I recall back when the GTK settings had more available things to configure, it was possible to launch the settings as root, install themes there that were put under /home/root, configure visual style for the root user, and then when launching apps my user session but as sudo or root, they would use the theme that was configured for them. Perhaps putting these kinds of things under /home/root could be an option? |