Open ptandler opened 1 month ago
Hi @ptandler and thanks for the report. I am using DBUS for checking if system is in Do not disturb mode, but not the one that your logs suggest, so not sure. (https://github.com/hovancik/stretchly/blob/68c9ce1fc7c6e06f18a1c3ec8f44acd35e1f9bb3/app/utils/dndManager.js#L44-L78)
Does DND monitoring works for you? If you enable DND, Stretchly icon in tray should change and you should see some message upon clicking it that breaks are paused.
Does DND monitoring works for you? If you enable DND, Stretchly icon in tray should change and you should see some message upon clicking it that breaks are paused.
No, this does not work. Nothing changes.
Also, I'm pretty sure that the detection of idle times does also not work on my machine.
I haven't had the need yet to understand how to configure Linux AppArmor. When I do sudo aa-status
several /snap/strechly/...
processes are listed under enforce mode
- whatever this means.
Maybe I could try to install stretchly from a different source, not snap, and see what's happening then.
Well to be honest I also have no idea what apparmor is and what it does. I am on Debian and installing via DEB package and all is fine for me.
Seems like dbus
needs to be added to plugs
https://www.electron.build/configuration/snap.html, but I don't understand how that works https://snapcraft.io/docs/interface-management
I tried adjusting /var/lib/snapd/apparmor/profiles/snap.stretchly.stretchly
but without success yet ... will install it from some other source for now.
==> Is there anyone out there who successfully uses stretchly installed via snap? :wave:
Well to be honest I also have no idea what AppArmor is and what it does. I am on Debian and installing via DEB package and all is fine for me.
The AppArmor homepage says that also Debian ships with AppArmor. But I guess it doesn't use it for deb packages.
Yeah I have apparmor on my Debian but it's not preventing anything. Looks like in Snap it does by default.
Found some related discussions:
I now installed from flathub and there DND detection works. At least a workaround.
We could try building snap with node_modules/.bin/electron-builder --linux snap "-c.snap.plugs=['default', 'dbus']"
and see if that helps with snap.
We could try building snap with
node_modules/.bin/electron-builder --linux snap "-c.snap.plugs=['default', 'dbus']"
and see if that helps with snap.
Interesting - let me know if you have a version I could try
Can you try this? https://conta.noho.st/nextcloud/s/NjZYqToetLWaPF3
Can you also show output of snap interface dbus
to see if Stretchly is there?
Thanks for creating the snap version! I installed and got a warning:
❯ snap warnings
last-occurrence: today at 15:10 CEST
warning: |
snap "stretchly" has bad plugs or slots: dbus (cannot find attribute 'bus')
❯ snap interface dbus
name: dbus
summary: allows owning a specific name on DBus
slots:
- firefox:dbus-daemon
- keepassxc:session-dbus-interface
- snap-store:packagekit-svc
- snap-store:snap-store
- snapd-desktop-integration:snapd-desktop-integration
Do you have an idea how to fix this? I found this documentation: https://snapcraft.io/docs/dbus-interface
Well, I found people asking how to fix this but no answers: https://forum.snapcraft.io/t/snap-has-bad-plugs-or-slots-dbus-cannot-find-attribute-bus/38352, https://forum.snapcraft.io/t/guiscrcpy-install-error/15704
As for the documentation link, I am not editing any snap yml, as I don't have it in my code, I am using electron-builder: https://www.electron.build/configuration/snap
Found some people using desktop
instead of 'dbus' https://conta.noho.st/nextcloud/s/yD6NcPCrBoHybQz or bus
https://conta.noho.st/nextcloud/s/w4neimLPMro7JJD
can you try those?
Thanks for creating new versions :smiley:
Jul 30 08:56:01 P14s dbus-daemon[2708]: apparmor="DENIED" operation="dbus_method_call" bus="session" path="/org/freedesktop/Notifications" interface="org.freedesktop.DBus.Introspectable" member="Introspect" mask="send" name="org.freedesktop.Notifications" pid=11108 label="snap.stretchly.stretchly" peer_pid=3146 peer_label="unconfined"
❯ sudo snap install --dangerous Stretchly_1.15.1_amd64-bus.snap
2024-07-30T08:58:24+02:00 INFO snap "stretchly" has bad plugs or slots: bus (unknown interface "bus")
2024-07-30T08:58:25+02:00 INFO snap "stretchly" has bad plugs or slots: bus (unknown interface "bus")
stretchly 1.15.1 installed
WARNING: There are 2 new warnings. See 'snap warnings'.
❯ snap warnings
last-occurrence: 4 days ago, at 15:10 CEST
warning: |
snap "stretchly" has bad plugs or slots: dbus (cannot find attribute 'bus')
---
last-occurrence: today at 08:58 CEST
warning: |
snap "stretchly" has bad plugs or slots: bus (unknown interface "bus")
And also:
Jul 30 09:00:14 P14s dbus-daemon[2708]: apparmor="DENIED" operation="dbus_method_call" bus="session" path="/org/freedesktop/Notifications" interface="org.freedesktop.DBus.Introspectable" member="Introspect" mask="send" name="org.freedesktop.Notifications" pid=13437 label="snap.stretchly.stretchly" peer_pid=3146 peer_label="unconfined"
So it seems, we have to keep trying ... very strange that there seems to be no documentation for a feature that should be pretty common.
Version
Known issues
Existing issues
Advanced Preferences
What operating system are you using?
Linux
Operating System Version
Ubuntu 22.04.4 LTS, KDE Framework 5.92.0, QT 5.15.5, Kernel 6.5.0-1025-oem
Reproduction steps
I installed strechtly via ubuntu snap and looked at syslog
Expected Behavior
Permissions are setup correctly - or I get I hint what I need to configure
Actual Behavior
Every second I see this message in the logs:
Relevant log output
Preferences
Additional information
No response
Code of Conduct