Bug 478216 - plasma 6 beta spectacle doesn't open
Summary: plasma 6 beta spectacle doesn't open
Status: RESOLVED NOT A BUG
Alias: None
Product: Spectacle
Classification: Applications
Component: General (show other bugs)
Version: git-master
Platform: Arch Linux Linux
: NOR normal
Target Milestone: ---
Assignee: Noah Davis
URL:
Keywords: qt6
Depends on:
Blocks:
 
Reported: 2023-12-07 15:36 UTC by deresiant
Modified: 2023-12-08 00:43 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments
my kde desktop file since the logs mention it (27.51 KB, application/x-desktop)
2023-12-07 15:38 UTC, deresiant
Details

Note You need to log in before you can comment on or make changes to this bug.
Description deresiant 2023-12-07 15:36:10 UTC
SUMMARY
```
spectacle
Remember requesting the interface on your desktop file: X-KDE-Wayland-Interfaces=zkde_screencast_unstable_v1
kpipewire_record_logging: VAAPI: Display initialized
kpipewire_record_logging: VAAPI: API version 1 . 20
kpipewire_record_logging: VAAPI: VA-API NVDEC driver [egl backend] in use for device "/dev/dri/renderD128"
kpipewire_record_logging: DRM device not found
QVariantAnimation::setDuration: cannot set a negative duration
Screenshot request failed: "The process is not authorized to take a screenshot"
qt.qml.typeresolution.cycle: Cyclic dependency detected between "qrc:/qt/qml/org/kde/desktop/private/TextFieldContextMenu.qml" and "qrc:/qt/qml/org/kde/desktop/MenuItem.qml"
```

OBSERVED RESULT
Spectacle hangs after the line `qt.qml.typeresolution.cycle: Cyclic dependency detected between "qrc:/qt/qml/org/kde/desktop/private/TextFieldContextMenu.qml" and "qrc:/qt/qml/org/kde/desktop/MenuItem.qml"`

EXPECTED RESULT
Spectacle's gui should open up

Operating System: Arch Linux 
KDE Plasma Version: 5.90.0
KDE Frameworks Version: 5.246.0
Qt Version: 6.6.1
Kernel Version: 6.7.0-rc3-273-tkg-eevdf (64-bit)
Graphics Platform: Wayland
Processors: 16 × AMD Ryzen 7 3700X 8-Core Processor
Memory: 31.3 GiB of RAM
Graphics Processor: NVIDIA GeForce RTX 2070 SUPER/PCIe/SSE2

ADDITIONAL INFORMATION
I tried both git-master and 24.01.80
spectacle -r does the same thing:
```
spectacle -r
Remember requesting the interface on your desktop file: X-KDE-Wayland-Interfaces=zkde_screencast_unstable_v1
kpipewire_record_logging: VAAPI: Display initialized
kpipewire_record_logging: VAAPI: API version 1 . 20
kpipewire_record_logging: VAAPI: VA-API NVDEC driver [egl backend] in use for device "/dev/dri/renderD128"
kpipewire_record_logging: DRM device not found
QVariantAnimation::setDuration: cannot set a negative duration
Screenshot request failed: "The process is not authorized to take a screenshot"
qt.qml.typeresolution.cycle: Cyclic dependency detected between "qrc:/qt/qml/org/kde/desktop/private/TextFieldContextMenu.qml" and "qrc:/qt/qml/org/kde/desktop/MenuItem.qml"
```
But
```
spectacle -b
Remember requesting the interface on your desktop file: X-KDE-Wayland-Interfaces=zkde_screencast_unstable_v1
kpipewire_record_logging: VAAPI: Display initialized
kpipewire_record_logging: VAAPI: API version 1 . 20
kpipewire_record_logging: VAAPI: VA-API NVDEC driver [egl backend] in use for device "/dev/dri/renderD128"
kpipewire_record_logging: DRM device not found
Screenshot request failed: "The process is not authorized to take a screenshot"
```
spectacle -b -u is able to take a screenshot
```
spectacle -b -u
Remember requesting the interface on your desktop file: X-KDE-Wayland-Interfaces=zkde_screencast_unstable_v1
kpipewire_record_logging: VAAPI: Display initialized
kpipewire_record_logging: VAAPI: API version 1 . 20
kpipewire_record_logging: VAAPI: VA-API NVDEC driver [egl backend] in use for device "/dev/dri/renderD128"
kpipewire_record_logging: DRM device not found
```
(screenshot is saved) --copy-image also works with -u
Comment 1 deresiant 2023-12-07 15:38:36 UTC
Created attachment 163983 [details]
my kde desktop file since the logs mention it

I added my .desktop file in /usr/share/applications/org.kde.spectacle.desktop I don't have an org.kde.spectacle.desktop or anything similar in my ~/.local/share/applications/ directory
Comment 2 deresiant 2023-12-07 15:49:14 UTC
My previous comment was completely wrong. I searched for exactly "org.kde.spectacle.desktop" but I have made shortcuts to commands in systemsettings which autogenerated the file "spectacle.desktop" with the following:
[Desktop Entry]
Exec=/usr/bin/spectacle -u -b -n --copy-image
Name=/usr/bin/spectacle -u -b -n --copy-image
NoDisplay=true
StartupNotify=false
Type=Application

Adding the line:
X-KDE-DBUS-Restricted-Interfaces=org.kde.kwin.Screenshot,org.kde.KWin.ScreenShot2
allowed the gui to start up and adding the line:
X-KDE-Wayland-Interfaces=org_kde_plasma_window_management,zkde_screencast_unstable_v1
like in the full org.kde.spectacle.desktop gets rid of the first warning `Remember requesting the interface on your desktop file: X-KDE-Wayland-Interfaces=zkde_screencast_unstable_v1`

Is it possible for systemsettings shortcut generation to fix up these cases with broken kde app shortcuts? I don't want to close this issue yet. unless you guys don't want the shortcut generating thing to have these extra features.
Comment 3 Nate Graham 2023-12-07 20:27:00 UTC
This means you're mixing the 6 and 5 versions of Spectacle and KWin (or vice versa). That's not supported in Plasma 6; you need the 6 versions of both.
Comment 4 deresiant 2023-12-08 00:43:11 UTC
ohhh, ok. I thought the beta was considered full plasma6, but it seems even the version number is still 5.9

I can't tell for spectacle though, it seems to use the date, so I can't tell what it's on: 24.01.80
Comment 5 deresiant 2023-12-08 00:43:50 UTC
> ohhh, ok. I thought the beta was considered full plasma6, but it seems even
> the version number is still 5.9
kwin's package version number and

kwin_wayland --version
kwin 5.90.0