Bug 31647

Summary: Download New wallpaper plugins error plasma 5.27.2
Product: Mageia Reporter: Ezequiel Partida <ezequiel_partida>
Component: RPM PackagesAssignee: KDE maintainers <kde>
Status: RESOLVED INVALID QA Contact:
Severity: normal    
Priority: Normal CC: davidwhodgins, fri, mageia
Version: Cauldron   
Target Milestone: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Source RPM: CVE:
Status comment:

Description Ezequiel Partida 2023-03-08 20:41:26 CET
Description of problem:

I right click on plasma 5 desktop and selected Configure Desktop and wallpaper

Wallpaper Type: Picture of the Day Get New Plugins, chose Autumn wallpaper

I got the next error


Installation of /tmp/YQtmOk-autum.tar.gz failed: Could not move package to destination: /home/ezequiel/.local/share/plasma/wallpapers/org.kde.autum

I fixed it by using sudo chmod -Rfv a+xrw /home/ezequiel/.local/share/plasma/wallpapers/

I wonder if I should user anything else instead of a+xrw permissions.

I also think this should work with out anyone changing permissions on folders.  Right?

MGA9 is the best!!
Regards
Comment 1 Morgan Leijström 2023-03-08 20:51:24 CET
This is for the Plasma/KDE folks

CC: (none) => fri
Assignee: bugsquad => kde

Comment 2 sturmvogel 2023-03-08 21:17:16 CET
Can not confirm this behaviour on an up to date plasma. 
The standard permissions on /home/xxxxxx/.local/share/plasma/wallpapers/ are 
drwxr-xr-x and the owner is your user.

With this standard permissions the download and installation of wallpapers works flawlessly.

I believe you screwed up your file permissions of your home directory. Why else would someone need sudo to change permissions in his own user home?
Comment 3 sturmvogel 2023-03-08 21:18:47 CET
Create a new user and test with an untinkered user profile.
Comment 4 Ezequiel Partida 2023-03-08 22:26:57 CET
(In reply to sturmvogel from comment #2)
> Can not confirm this behaviour on an up to date plasma. 
> The standard permissions on /home/xxxxxx/.local/share/plasma/wallpapers/ are 
> drwxr-xr-x and the owner is your user.
> 
> With this standard permissions the download and installation of wallpapers
> works flawlessly.
> 
> I believe you screwed up your file permissions of your home directory. Why
> else would someone need sudo to change permissions in his own user home?

I only changed a+xrw to the wallpapers folder and once I did it I was able to apply the wallpaper plugin.

I will create another user and test it.
Comment 5 sturmvogel 2023-03-08 22:27:39 CET
Wo is the owner of this directory?
Comment 6 sturmvogel 2023-03-08 22:28:09 CET
"Who"...
Comment 7 Ezequiel Partida 2023-03-08 22:45:25 CET
Sorry for not clarifying sturmvogel but I was creating 2 other users to test.

I just created 2 test users and they all work fine.

On test1 the owner of wallpaper is test1
same as test2 the owner of wallpaper is test2
for user ezequiel the owner of wallpaper is root

But, I noticed something strange with sound also.

When I logged to users test1 and test2 I noticed the kde sounds, but when I logged in with ezequiel (my user) nothing sounds.

So I got to systemsettings, audio and clicked on Test, front Right.. and voila:

Error trying to play a test sound.
The system said: "system error"
Comment 8 sturmvogel 2023-03-08 22:51:05 CET
(In reply to Ezequiel Partida from comment #7)
> for user ezequiel the owner of wallpaper is root
> .....
>
> When I logged to users test1 and test2 I noticed the kde sounds, but when I
> logged in with ezequiel (my user) nothing sounds.

You have broken your user directory for ezequiel by changing the ownership. This happens when you use "su" instead of "su -" when you login as root. 
See https://wiki.mageia.org/en/Never_use_just_su

You may try to fix the ownership of your home directory with following command:
$ su -
Password: 
# chown -Rc ezequiel:ezequiel /home/tester
# exit
exit
$



So overall, this is not a Plasma bug but a broken user profile.

Closing invalid.

Resolution: (none) => INVALID
Status: NEW => RESOLVED

Comment 9 sturmvogel 2023-03-08 22:52:21 CET
Sorry forget to change the command chain completely to your user name. It should be:
$ su -
Password: 
# chown -Rc ezequiel:ezequiel /home/ezequiel
# exit
exit
$
Comment 10 Ezequiel Partida 2023-03-08 23:18:42 CET
Thank You.. 

I solved everything!

Resolution: INVALID => FIXED

Comment 11 Ezequiel Partida 2023-03-08 23:23:55 CET
(In reply to sturmvogel from comment #9)
> Sorry forget to change the command chain completely to your user name. It
> should be:
> $ su -
> Password: 
> # chown -Rc ezequiel:ezequiel /home/ezequiel
> # exit
> exit
> $

This also fixed the same problem on other Mageia 9 beta fresh installs on real hardware.

Thanks again
Comment 12 Morgan Leijström 2023-03-09 08:39:22 CET
Well done sturmvogel!
I see now I should not have assigned this to KDE so quickly.
Comment 13 Nicolas Lécureuil 2023-03-11 17:41:33 CET
strange because users shouldn't have to do this.


Can this be reported to KDE Upstream ?

CC: (none) => mageia

Comment 14 Morgan Leijström 2023-03-11 17:55:26 CET
Works here
System got installed from Alpha1 ISO, then updated now and then.

I right click on plasma 5 desktop and selected Configure Desktop and wallpaper

Wallpaper Type: Picture of the Day Get New Plugins, chose Autumn wallpaper, Install (button top right)

Then close that dialogue to get back and in the dropdown select autumn, Apply.

Background change and leaves falling are animated.

(The GUI procedure really could need improvement but that is something for upstream, and not a bug)

Resolution: FIXED => WORKSFORME

Comment 15 Dave Hodgins 2023-03-11 18:00:54 CET
(In reply to Nicolas Lécureuil from comment #13)
> strange because users shouldn't have to do this.
> 
> 
> Can this be reported to KDE Upstream ?

The issue is caused by the user using "su" instead of "su -", and then
as root running a kde gui program. That caused some files in ~/.config or
other config files in /home/$USER to become owned by root.

See https://wiki.mageia.org/en/Never_use_just_su

It's not a bug, it's user education.

Resolution: WORKSFORME => INVALID
CC: (none) => davidwhodgins

Comment 16 Nicolas Lécureuil 2023-03-13 12:52:38 CET
ah perfect then :-)