Elinvention / gnome-shell-extension-nasa-apod

Change your wallpaper daily to the NASA's astronomy picture of the day
https://extensions.gnome.org/extension/1202/nasa-apod/
GNU General Public License v3.0
120 stars 22 forks source link

Conflicts with another popular plugin? (burn my windows) #52

Closed andythedude closed 11 months ago

andythedude commented 1 year ago

Describe the bug

Seems to be in conflict with burn my windows plugin https://extensions.gnome.org/extension/4679/burn-my-windows/ doesn't consistently reload or show description test until you shut off burn my windows

To Reproduce

Steps to reproduce the behavior:

  1. install burn my windows alongside nasa-apod
  2. open apod menu from taskbar
  3. notice it doesn't pull wallpaper or description test
  4. turn off burn my windows
  5. notice that the wallpaper refreshes (or tells you when it will)

Expected behavior

the two plugins would work along side each other.

Screenshots

If applicable, add screenshots to help explain your problem.

Operating system with version

GNOME Shell version You can see your GNOME shell version from Settings->Details or gnome-shell --version.

Installation method

Logs <- VERY IMPORTANT

Please paste below the relevant parts of journalctl -f -o cat /usr/bin/gnome-shell. If you don't use systemd, you have to find where the logs are stored and paste them here.

NASA APOD extension: Download size: 2380443B
NASA APOD extension: Download successful
JS ERROR: Error: Property Gjs_ui_messageTray_NotificationPolicy.enable is not writable
notify@/home/usernamehere/.local/share/gnome-shell/extensions/nasa_apod@elinvention.ovh/notifications.js:16:21
_notifyAPIResults@/home/usernamehere/.local/share/gnome-shell/extensions/nasa_apod@elinvention.ovh/extension.js:294:23
wrapper@resource:///org/gnome/gjs/modules/script/_legacy.js:82:27
_download_image/<@/home/usernamehere/.local/share/gnome-shell/extensions/nasa_apod@elinvention.ovh/extension.js:516:22

../clutter/clutter/clutter-actor.c:10558: The clutter_actor_set_allocation() function can only be called from within the implementation of the ClutterActor::allocate() virtual function.
../clutter/clutter/clutter-actor.c:10558: The clutter_actor_set_allocation() function can only be called from within the implementation of the ClutterActor::allocate() virtual function.
../clutter/clutter/clutter-actor.c:10558: The clutter_actor_set_allocation() function can only be called from within the implementation of the ClutterActor::allocate() virtual function.
../clutter/clutter/clutter-actor.c:10558: The clutter_actor_set_allocation() function can only be called from within the implementation of the ClutterActor::allocate() virtual function.
JS ERROR: TypeError: this._workspacesViews[i] is undefined
_updateWorkspacesActualGeometry@resource:///org/gnome/shell/ui/workspacesView.js:773:13
vfunc_allocate@resource:///org/gnome/shell/ui/overviewControls.js:401:15
_computeWindowCenter@resource:///org/gnome/shell/ui/workspace.js:302:35
_init@resource:///org/gnome/shell/ui/workspace.js:160:14
_addWindowClone@resource:///org/gnome/shell/ui/workspace.js:1856:21
enable/Workspace.prototype._addWindowClone@/home/usernamehere/.local/share/gnome-shell/extensions/burn-my-windows@schneegans.github.com/extension.js:155:56
_init@resource:///org/gnome/shell/ui/workspace.js:1174:22
_init@resource:///org/gnome/shell/ui/workspacesView.js:348:27
_updateWorkspacesViews@resource:///org/gnome/shell/ui/workspacesView.js:680:24
show@resource:///org/gnome/shell/ui/workspacesView.js:612:14
show@resource:///org/gnome/shell/ui/viewSelector.js:276:33
_animateVisible@resource:///org/gnome/shell/ui/overview.js:580:27
show@resource:///org/gnome/shell/ui/overview.js:566:14
toggle@resource:///org/gnome/shell/ui/overview.js:689:18
_initializeUI/<@resource:///org/gnome/shell/ui/main.js:223:22

JS ERROR: TypeError: this._workspacesViews[i] is undefined
_updateWorkspacesFullGeometry@resource:///org/gnome/shell/ui/workspacesView.js:756:13
setWorkspacesFullGeometry@resource:///org/gnome/shell/ui/workspacesView.js:746:14
setWorkspacesFullGeometry@resource:///org/gnome/shell/ui/viewSelector.js:301:33
_updateWorkspacesGeometry@resource:///org/gnome/shell/ui/overviewControls.js:498:27
vfunc_allocate@resource:///org/gnome/shell/ui/overviewControls.js:402:14
_computeWindowCenter@resource:///org/gnome/shell/ui/workspace.js:302:35
_init@resource:///org/gnome/shell/ui/workspace.js:160:14
_addWindowClone@resource:///org/gnome/shell/ui/workspace.js:1856:21
enable/Workspace.prototype._addWindowClone@/home/usernamehere/.local/share/gnome-shell/extensions/burn-my-windows@schneegans.github.com/extension.js:155:56
_init@resource:///org/gnome/shell/ui/workspace.js:1174:22
_init@resource:///org/gnome/shell/ui/workspacesView.js:348:27
_updateWorkspacesViews@resource:///org/gnome/shell/ui/workspacesView.js:680:24
show@resource:///org/gnome/shell/ui/workspacesView.js:612:14
show@resource:///org/gnome/shell/ui/viewSelector.js:276:33
_animateVisible@resource:///org/gnome/shell/ui/overview.js:580:27
show@resource:///org/gnome/shell/ui/overview.js:566:14
toggle@resource:///org/gnome/shell/ui/overview.js:689:18
_initializeUI/<@resource:///org/gnome/shell/ui/main.js:223:22

Window manager warning: Buggy client sent a _NET_ACTIVE_WINDOW message with a timestamp of 0 for 0xa400004
NASA APOD extension: Next check @ local time 22:42
../clutter/clutter/clutter-actor.c:10558: The clutter_actor_set_allocation() function can only be called from within the implementation of the ClutterActor::allocate() virtual function.
../clutter/clutter/clutter-actor.c:10558: The clutter_actor_set_allocation() function can only be called from within the implementation of the ClutterActor::allocate() virtual function.
Failed to get Yr.no forecast data: 404 Not Found

Extension's settings

Some errors might be triggered by a spefic set of settings. The command below outputs all of the extension settigs that were changed from the default value.

Otherwise it is:
gsettings --schemadir ~/.local/share/gnome-shell/extensions/nasa_apod@elinvention.ovh/schemas/ list-recursively org.gnome.shell.extensions.nasa-apod.

org.gnome.shell.extensions.nasa-apod background-options 'default'
org.gnome.shell.extensions.nasa-apod image-resolution 'hd'
org.gnome.shell.extensions.nasa-apod pinned-background ''
org.gnome.shell.extensions.nasa-apod screensaver-options 'default'
org.gnome.shell.extensions.nasa-apod image-resolution-metered 'lowres'
org.gnome.shell.extensions.nasa-apod refresh-metered true
org.gnome.shell.extensions.nasa-apod notify true
org.gnome.shell.extensions.nasa-apod hide false
org.gnome.shell.extensions.nasa-apod set-background true
org.gnome.shell.extensions.nasa-apod download-folder ''
org.gnome.shell.extensions.nasa-apod last-refresh uint64 1674855748717
org.gnome.shell.extensions.nasa-apod api-keys ['XKSoS8Bv05ij8JH8UWa7eqMavXgGfFStcc6Pu3KH', 'jCUjMOBpL523SxLoi4PogFZ3YsvvFtVNyEvRd0IB']
org.gnome.shell.extensions.nasa-apod last-json "{\"copyright\":\"Dan Bartlett\",\"date\":\"2023-01-27\",\"explanation\":\"The current darling of the northern night, Comet C/2022 E3 ZTF is captured in this telescopic image from a dark sky location at June Lake, California. Of course Comet ZTF has been growing brighter in recent days, headed for its closest approach to Earth on February 1.  But this view was recorded on January 23, very close to the time planet Earth crossed the orbital plane of long-period Comet ZTF. The comet's broad, whitish dust tail is still curved and fanned out away from the Sun as Comet ZTF sweeps along its orbit. Due to perspective near the orbital plane crossing, components of the fanned out dust tail appear on both sides of the comet's green tinted coma though, to lend Comet ZTF a visually striking (left) anti-tail. Buffeted by solar activity the comet's narrower ion tail also streams away from the coma diagonally to the right, across the nearly three degree wide field of view.\",\"hdurl\":\"https://apod.nasa.gov/apod/image/2301/C2022E3ZTF_2023_01_23_054036PST_DEBartlett.jpg\",\"media_type\":\"image\",\"service_version\":\"v1\",\"title\":\"Comet ZTF: Orbital Plane Crossing\",\"url\":\"https://apod.nasa.gov/apod/image/2301/C2022E3ZTF_2023_01_23_054036PST_DEBartlett1024.jpg\"}\n"
org.gnome.shell.extensions.nasa-apod transient false
org.gnome.shell.extensions.nasa-apod set-lock-screen true
Elinvention commented 1 year ago

Thanks for taking time to fill in all these informations.

I tried to install burn my windows extension. So far I can't reproduce, but I'm on a very different environment from your's (GNOME 43.2). Unfortunately keeping backward compatibility with GNOME is a chore and I don't have time to support older versions.

From the logs it looks like burn my windows fiddles with the notifications code, but I don't know why. Of course you could "fix" this by renouncing to notifications and commenting out the call to notify that makes the extension crash.