https://bugs.kde.org/show_bug.cgi?id=524412

Hadi Chokr <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|CONFIRMED                   |RESOLVED
         Resolution|---                         |DOWNSTREAM

--- Comment #5 from Hadi Chokr <[email protected]> ---
Root cause is on the Fedora side. The plasmoid setup scripts in the fedoradark
look-and-feel package are symlinks pointing outside the package:

```
$ ls -lha
/usr/share/plasma/look-and-feel/org.fedoraproject.fedoradark.desktop/contents/plasmoidsetupscripts/
lrwxrwxrwx org.kde.plasma.kickerdash.js ->
../../../org.fedoraproject.fedora.desktop/contents/plasmoidsetupscripts/org.kde.plasma.kickerdash.js
lrwxrwxrwx org.kde.plasma.kicker.js     ->
../../../org.fedoraproject.fedora.desktop/contents/plasmoidsetupscripts/org.kde.plasma.kicker.js
lrwxrwxrwx org.kde.plasma.kickoff.js    ->
../../../org.fedoraproject.fedora.desktop/contents/plasmoidsetupscripts/org.kde.plasma.kickoff.js
```

Their canonical paths resolve outside the package root, the kickoff setup
script never runs, and `icon=start-here` is never written. The light theme
ships these as real files, which is why only dark mode is affected.

Patched a never-booted install offline and re-tested:

```bash
qemu-nbd --connect=/dev/nbd0 fedora-rawhide.qcow2
mount -o subvol=root /dev/nbd0p3 /mnt/fed
cd /mnt/fed/usr/share/plasma/look-and-feel
cp --remove-destination -aL \
  org.fedoraproject.fedora.desktop/contents/plasmoidsetupscripts/*.js \
  org.fedoraproject.fedoradark.desktop/contents/plasmoidsetupscripts/
umount /mnt/fed && qemu-nbd --disconnect /dev/nbd0
```

Then boot, select dark mode in Plasma Setup, and check:

```bash
grep LookAndFeelPackage ~/.config/kdeglobals
grep -c 'icon=start-here' ~/.config/plasma-org.kde.plasma.desktop-appletsrc
```

With the symlinks replaced, both the fedoradark theme and the Fedora icon are
set. Screenshots attached: dark with symlinks (broken), dark with real files
(fixed).
https://bugs.kde.org/attachment.cgi?id=195267
https://bugs.kde.org/attachment.cgi?id=195268

The bug also reproduces via System Settings with "Desktop and window layout"
checked, with plasma-setup uninvolved. So the trigger is the layout apply and
the failure is the symlinks.

Suggest closing here as a downstream packaging issue.

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to