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

            Bug ID: 523302
           Summary: KNewStuff installs cursor themes to the deprecated
                    ~/.icons
    Classification: Frameworks and Libraries
           Product: frameworks-knewstuff
      Version First 6.28.0
       Reported In:
          Platform: Manjaro
                OS: Linux
            Status: REPORTED
          Severity: normal
          Priority: NOR
         Component: general
          Assignee: [email protected]
          Reporter: [email protected]
                CC: [email protected], [email protected]
  Target Milestone: ---

Created attachment 194464
  --> https://bugs.kde.org/attachment.cgi?id=194464&action=edit
dialog

DESCRIPTION

Installing a Global Theme that bundles a cursor fails completely if the cursor
files cannot be written, instead of installing the parts that can and skipping
the one that can't.  So there is two parts 

1.  Attempts to install bundled cursor themes to ~/.icons/ rather than the XDG
location ~/.local/share/icons/
2. One failed sub component aborts the whole install, but does not clean
components that were installed prior to the failure.  All of the "already
installed" lines in the log snippet below are parts of the global theme that
were installed.

STEPS TO REPRODUCE
1. Lock the home directory down, i use `chmod u-w $HOME`
2. System Settings - Colors & Themes - Global Theme - Get New
3. attempt to install a global theme that includes cursors, such as "Nordic
KDE"

OBSERVED RESULT

```
Jul 20 17:44:44 nathan-desktop systemsettings[2401]: Install: "Nordic KDE" from
"/tmp/pHUjcA-Nordic.tar.xz"
Jul 20 17:44:45 nathan-desktop knshandler[119959]: providers are loaded
Jul 20 17:44:45 nathan-desktop knshandler[119959]: already installed.
Jul 20 17:44:46 nathan-desktop knshandler[119967]: providers are loaded
Jul 20 17:44:46 nathan-desktop knshandler[119967]: already installed.
Jul 20 17:44:47 nathan-desktop knshandler[120026]: providers are loaded
Jul 20 17:44:47 nathan-desktop knshandler[120026]: already installed.
Jul 20 17:44:47 nathan-desktop systemsettings[2401]: QIODevice::read
(QSslSocket): device not open
Jul 20 17:44:47 nathan-desktop systemsettings[2401]: QIODevice::read
(QSslSocket): device not open
Jul 20 17:44:47 nathan-desktop systemsettings[2401]: QIODevice::read
(QSslSocket): device not open
Jul 20 17:44:48 nathan-desktop knshandler[120033]: providers are loaded
Jul 20 17:44:48 nathan-desktop knshandler[120033]: already installed.
Jul 20 17:44:48 nathan-desktop systemsettings[2401]: QIODevice::read
(QSslSocket): device not open
Jul 20 17:44:49 nathan-desktop knshandler[120041]: providers are loaded
Jul 20 17:44:49 nathan-desktop knshandler[120041]: already installed.
Jul 20 17:44:50 nathan-desktop knshandler[120048]: providers are loaded
Jul 20 17:44:50 nathan-desktop knshandler[120048]: installing...
Jul 20 17:44:51 nathan-desktop knshandler[120048]: Install: "Nordic cursors"
from "/tmp/kmtgcj-Nordic-cursors.tar.xz"
Jul 20 17:44:51 nathan-desktop knshandler[120048]: could not install "Nordic
cursors" to "/home/nathan/.icons/"
Jul 20 17:44:51 nathan-desktop knshandler[120048]: kns error:
KNSCore::ErrorCode::InstallationError "Could not install \"Nordic cursors\":
file not found." QVariant(Invalid)
Jul 20 17:44:52 nathan-desktop knshandler[120106]: providers are loaded
Jul 20 17:44:52 nathan-desktop knshandler[120106]: already installed.
Jul 20 17:44:53 nathan-desktop knshandler[120166]: providers are loaded
Jul 20 17:44:53 nathan-desktop knshandler[120166]: already installed.
Jul 20 17:44:54 nathan-desktop knshandler[120173]: providers are loaded
Jul 20 17:44:54 nathan-desktop knshandler[120173]: already installed.
Jul 20 17:44:54 nathan-desktop systemsettings[2401]: QIODevice::read
(QSslSocket): device not open
Jul 20 17:44:55 nathan-desktop knshandler[120182]: providers are loaded
Jul 20 17:44:55 nathan-desktop knshandler[120182]: already installed.
Jul 20 17:44:56 nathan-desktop knshandler[120189]: providers are loaded
Jul 20 17:44:56 nathan-desktop knshandler[120189]: already installed.
Jul 20 17:44:57 nathan-desktop knshandler[120248]: providers are loaded
Jul 20 17:44:57 nathan-desktop systemd[896]: Starting Spectacle screenshot
capture utility...
Jul 20 17:44:57 nathan-desktop systemsettings[2401]: QIODevice::read
(QSslSocket): device not open
Jul 20 17:44:57 nathan-desktop systemd[896]: Started Spectacle screenshot
capture utility.
Jul 20 17:44:57 nathan-desktop systemsettings[2401]: QIODevice::read
(QSslSocket): device not open
Jul 20 17:44:57 nathan-desktop knshandler[120248]: installing...
Jul 20 17:44:57 nathan-desktop spectacle[120255]: Member focusPolicy of the
object UndoRedoGroup_QMLTYPE_93 overrides a member of the base object. Consider
renaming it or adding final or override specifier
Jul 20 17:44:57 nathan-desktop spectacle[120255]: Member focusPolicy of the
object ButtonGrid_QMLTYPE_97 overrides a member of the base object. Consider
renaming it or adding final or override specifier
Jul 20 17:44:57 nathan-desktop spectacle[120255]: Member focusPolicy of the
object AnnotationOptionsToolBarContents_QMLTYPE_101 overrides a member of the
base object. Consider renaming it or adding final or override specifier
Jul 20 17:44:57 nathan-desktop plasmashell[1975]: Final member StackingOrder is
overridden in class QQmlDMAbstractItemModelData. The override won't be used.
Jul 20 17:44:58 nathan-desktop knshandler[120248]: Install: "Nordic cursors"
from "/tmp/CNOCXZ-Nordic-cursors.tar.xz"
Jul 20 17:44:58 nathan-desktop knshandler[120248]: could not install "Nordic
cursors" to "/home/nathan/.icons/"
Jul 20 17:44:58 nathan-desktop knshandler[120248]: kns error:
KNSCore::ErrorCode::InstallationError "Could not install \"Nordic cursors\":
file not found." QVariant(Invalid)
```

EXPECTED RESULT
 - XDG specifications are respected, use the .icons folder as a fallback
- the global theme is installed 
- if the install fails at any point because a sub component has an issue we
should either remove all of the artifacts to a pre-fail state, or finish the
install while omitting the parts which failed.

SOFTWARE/OS VERSIONS
Operating System: Manjaro Linux
KDE Plasma Version: 6.7.3
KDE Frameworks Version: 6.28.0
Qt Version: 6.11.1
Kernel Version: 7.1.4-1-MANJARO (64-bit)
Graphics Platform: X11
Processors: 16 × AMD Ryzen 7 5700X3D 8-Core Processor
Memory: 64 GiB of RAM (62.7 GiB usable)
Graphics Processor: AMD Radeon RX 6700 XT

ADDITIONAL INFORMATION

related to #415583 #407593

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

Reply via email to