AhmedSaadi0 / my-hyprland-config

a Linux "rice" configuration using Hyprland and AGS. It includes multiple themes and supports Google Material 3 themes.
237 stars 23 forks source link

Ags doesn't work #18

Closed Buer-Nahida closed 3 months ago

Buer-Nahida commented 3 months ago

log:

Gjs-Console-Message: 10:24:36.134: Error reading .ahmed-config.json file

(com.github.Aylur.ags:2509697): Gjs-WARNING **: 10:24:36.423: JS ERROR: GLib.SpawnError: 执行子进程“plasma-apply-colorscheme”失败(No such file or directory)
proc@resource:///com/github/Aylur/ags/utils/exec.js:11:27
execAsync@resource:///com/github/Aylur/ags/utils/exec.js:77:19
changePlasmaColor@file:///home/nahida/.config/ags/modules/services/ThemeService.js:230:15
changeTheme@file:///home/nahida/.config/ags/modules/services/ThemeService.js:56:14
ThemeService@file:///home/nahida/.config/ags/modules/services/ThemeService.js:37:14
@file:///home/nahida/.config/ags/modules/services/ThemeService.js:458:22
_init/GLib.MainLoop.prototype.runAsync/</<@resource:///org/gnome/gjs/modules/core/overrides/GLib.js:266:34

(com.github.Aylur.ags:2509697): Gjs-Console-WARNING **: 10:24:36.424: Error: can't assign "audio-volume-overamplified-symbolic" as icon, it is not a file nor a named icon
set icon@resource:///com/github/Aylur/ags/widgets/icon.js:45:30
_handleParamProp@resource:///com/github/Aylur/ags/widgets/widget.js:124:13
Icon@resource:///com/github/Aylur/ags/widgets/icon.js:25:14
newIcon@resource:///com/github/Aylur/ags/widgets/icon.js:8:12
AudioSlider@file:///home/nahida/.config/ags/modules/menus/AudioBrightnessMenu.js:18:35
@file:///home/nahida/.config/ags/modules/menus/AudioBrightnessMenu.js:104:16
async*_init/GLib.MainLoop.prototype.runAsync/</<@resource:///org/gnome/gjs/modules/core/overrides/GLib.js:266:34

(com.github.Aylur.ags:2509697): Gjs-Console-CRITICAL **: 10:24:36.453: net.hadess.PowerProfiles is not available

(com.github.Aylur.ags:2509697): Gjs-CRITICAL **: 10:24:37.173: JS ERROR: TypeError: json.data.timings is undefined
getNextPrayerTime@file:///home/nahida/.config/ags/modules/services/PrayerTimesService.js:197:20
get nextPrayerName@file:///home/nahida/.config/ags/modules/services/PrayerTimesService.js:269:21
MenuRevealer/<.child<@file:///home/nahida/.config/ags/modules/menus/PrayerTimesMenu.js:77:32
hook/id<@resource:///com/github/Aylur/ags/widgets/widget.js:36:21
initPrayerTimes/<@file:///home/nahida/.config/ags/modules/services/PrayerTimesService.js:62:22
_init/GLib.MainLoop.prototype.runAsync/</<@resource:///org/gnome/gjs/modules/core/overrides/GLib.js:266:34

(com.github.Aylur.ags:2509697): Gjs-CRITICAL **: 10:24:46.540: Attempting to call back into JSAPI during the sweeping phase of GC. This is most likely caused by not destroying a Clutter actor or Gtk+ widget with ::destroy signals connected, but can also be caused by using the destroy(), dispose(), or remove() vfuncs. Because it would crash the application, it has been blocked and the JS callback not invoked.
The offending signal was destroy on Ags_Box 0x27be0800.
== Stack trace for context 0x26e98580 ==
#0       26fab1b8 i   resource:///org/gnome/gjs/modules/core/overrides/GLib.js:266 (3c79d2f7d560 @ 139)

(com.github.Aylur.ags:2509697): Gjs-CRITICAL **: 10:24:46.541: Attempting to call back into JSAPI during the sweeping phase of GC. This is most likely caused by not destroying a Clutter actor or Gtk+ widget with ::destroy signals connected, but can also be caused by using the destroy(), dispose(), or remove() vfuncs. Because it would crash the application, it has been blocked and the JS callback not invoked.
The offending signal was destroy on Ags_Label 0x27bde880.
== Stack trace for context 0x26e98580 ==
#0       26fab1b8 i   resource:///org/gnome/gjs/modules/core/overrides/GLib.js:266 (3c79d2f7d560 @ 139)

(com.github.Aylur.ags:2509697): Gjs-CRITICAL **: 10:24:46.541: Attempting to call back into JSAPI during the sweeping phase of GC. This is most likely caused by not destroying a Clutter actor or Gtk+ widget with ::destroy signals connected, but can also be caused by using the destroy(), dispose(), or remove() vfuncs. Because it would crash the application, it has been blocked and the JS callback not invoked.
The offending signal was destroy on Ags_Label 0x27bdf860.
== Stack trace for context 0x26e98580 ==
#0       26fab1b8 i   resource:///org/gnome/gjs/modules/core/overrides/GLib.js:266 (3c79d2f7d560 @ 139)

(com.github.Aylur.ags:2509697): Gjs-CRITICAL **: 10:24:46.541: Attempting to call back into JSAPI during the sweeping phase of GC. This is most likely caused by not destroying a Clutter actor or Gtk+ widget with ::destroy signals connected, but can also be caused by using the destroy(), dispose(), or remove() vfuncs. Because it would crash the application, it has been blocked and the JS callback not invoked.
The offending signal was destroy on Ags_Box 0x27be33f0.
== Stack trace for context 0x26e98580 ==
#0       26fab1b8 i   resource:///org/gnome/gjs/modules/core/overrides/GLib.js:266 (3c79d2f7d560 @ 139)

(com.github.Aylur.ags:2509697): Gjs-CRITICAL **: 10:24:46.541: Attempting to call back into JSAPI during the sweeping phase of GC. This is most likely caused by not destroying a Clutter actor or Gtk+ widget with ::destroy signals connected, but can also be caused by using the destroy(), dispose(), or remove() vfuncs. Because it would crash the application, it has been blocked and the JS callback not invoked.
The offending signal was destroy on Ags_Label 0x27be16d0.
== Stack trace for context 0x26e98580 ==
#0       26fab1b8 i   resource:///org/gnome/gjs/modules/core/overrides/GLib.js:266 (3c79d2f7d560 @ 139)

(com.github.Aylur.ags:2509697): Gjs-CRITICAL **: 10:24:46.541: Attempting to call back into JSAPI during the sweeping phase of GC. This is most likely caused by not destroying a Clutter actor or Gtk+ widget with ::destroy signals connected, but can also be caused by using the destroy(), dispose(), or remove() vfuncs. Because it would crash the application, it has been blocked and the JS callback not invoked.
The offending signal was destroy on Ags_Label 0x27be25d0.
== Stack trace for context 0x26e98580 ==
#0       26fab1b8 i   resource:///org/gnome/gjs/modules/core/overrides/GLib.js:266 (3c79d2f7d560 @ 139)

(com.github.Aylur.ags:2509697): Gjs-CRITICAL **: 10:24:46.541: Attempting to call back into JSAPI during the sweeping phase of GC. This is most likely caused by not destroying a Clutter actor or Gtk+ widget with ::destroy signals connected, but can also be caused by using the destroy(), dispose(), or remove() vfuncs. Because it would crash the application, it has been blocked and the JS callback not invoked.
The offending signal was destroy on Ags_Box 0x2768bff0.
== Stack trace for context 0x26e98580 ==
#0       26fab1b8 i   resource:///org/gnome/gjs/modules/core/overrides/GLib.js:266 (3c79d2f7d560 @ 139)

(com.github.Aylur.ags:2509697): Gjs-CRITICAL **: 10:24:46.541: Attempting to call back into JSAPI during the sweeping phase of GC. This is most likely caused by not destroying a Clutter actor or Gtk+ widget with ::destroy signals connected, but can also be caused by using the destroy(), dispose(), or remove() vfuncs. Because it would crash the application, it has been blocked and the JS callback not invoked.
The offending signal was destroy on Ags_Label 0x27be4170.
== Stack trace for context 0x26e98580 ==
#0       26fab1b8 i   resource:///org/gnome/gjs/modules/core/overrides/GLib.js:266 (3c79d2f7d560 @ 139)

(com.github.Aylur.ags:2509697): Gjs-CRITICAL **: 10:24:46.541: Attempting to call back into JSAPI during the sweeping phase of GC. This is most likely caused by not destroying a Clutter actor or Gtk+ widget with ::destroy signals connected, but can also be caused by using the destroy(), dispose(), or remove() vfuncs. Because it would crash the application, it has been blocked and the JS callback not invoked.
The offending signal was destroy on Ags_Label 0x27be4ea0.
== Stack trace for context 0x26e98580 ==
#0       26fab1b8 i   resource:///org/gnome/gjs/modules/core/overrides/GLib.js:266 (3c79d2f7d560 @ 139)

(com.github.Aylur.ags:2509697): Gjs-CRITICAL **: 10:24:46.541: Attempting to call back into JSAPI during the sweeping phase of GC. This is most likely caused by not destroying a Clutter actor or Gtk+ widget with ::destroy signals connected, but can also be caused by using the destroy(), dispose(), or remove() vfuncs. Because it would crash the application, it has been blocked and the JS callback not invoked.
The offending signal was destroy on Ags_Box 0x27be9040.
== Stack trace for context 0x26e98580 ==
#0       26fab1b8 i   resource:///org/gnome/gjs/modules/core/overrides/GLib.js:266 (3c79d2f7d560 @ 139)

(com.github.Aylur.ags:2509697): Gjs-CRITICAL **: 10:24:46.541: Attempting to call back into JSAPI during the sweeping phase of GC. This is most likely caused by not destroying a Clutter actor or Gtk+ widget with ::destroy signals connected, but can also be caused by using the destroy(), dispose(), or remove() vfuncs. Because it would crash the application, it has been blocked and the JS callback not invoked.
The offending signal was destroy on Ags_Label 0x27be7350.
== Stack trace for context 0x26e98580 ==
#0       26fab1b8 i   resource:///org/gnome/gjs/modules/core/overrides/GLib.js:266 (3c79d2f7d560 @ 139)

(com.github.Aylur.ags:2509697): Gjs-CRITICAL **: 10:24:46.541: Attempting to call back into JSAPI during the sweeping phase of GC. This is most likely caused by not destroying a Clutter actor or Gtk+ widget with ::destroy signals connected, but can also be caused by using the destroy(), dispose(), or remove() vfuncs. Because it would crash the application, it has been blocked and the JS callback not invoked.
The offending signal was destroy on Ags_Label 0x27be81b0.
== Stack trace for context 0x26e98580 ==
#0       26fab1b8 i   resource:///org/gnome/gjs/modules/core/overrides/GLib.js:266 (3c79d2f7d560 @ 139)

(com.github.Aylur.ags:2509697): Gjs-CRITICAL **: 10:24:46.541: Attempting to call back into JSAPI during the sweeping phase of GC. This is most likely caused by not destroying a Clutter actor or Gtk+ widget with ::destroy signals connected, but can also be caused by using the destroy(), dispose(), or remove() vfuncs. Because it would crash the application, it has been blocked and the JS callback not invoked.
The offending signal was destroy on Ags_Box 0x27bebac0.
== Stack trace for context 0x26e98580 ==
#0       26fab1b8 i   resource:///org/gnome/gjs/modules/core/overrides/GLib.js:266 (3c79d2f7d560 @ 139)

(com.github.Aylur.ags:2509697): Gjs-CRITICAL **: 10:24:46.541: Attempting to call back into JSAPI during the sweeping phase of GC. This is most likely caused by not destroying a Clutter actor or Gtk+ widget with ::destroy signals connected, but can also be caused by using the destroy(), dispose(), or remove() vfuncs. Because it would crash the application, it has been blocked and the JS callback not invoked.
The offending signal was destroy on Ags_Label 0x27be9dd0.
== Stack trace for context 0x26e98580 ==
#0       26fab1b8 i   resource:///org/gnome/gjs/modules/core/overrides/GLib.js:266 (3c79d2f7d560 @ 139)

(com.github.Aylur.ags:2509697): Gjs-CRITICAL **: 10:24:46.541: Attempting to call back into JSAPI during the sweeping phase of GC. This is most likely caused by not destroying a Clutter actor or Gtk+ widget with ::destroy signals connected, but can also be caused by using the destroy(), dispose(), or remove() vfuncs. Because it would crash the application, it has been blocked and the JS callback not invoked.
The offending signal was destroy on Ags_Label 0x27beac30.
== Stack trace for context 0x26e98580 ==
#0       26fab1b8 i   resource:///org/gnome/gjs/modules/core/overrides/GLib.js:266 (3c79d2f7d560 @ 139)

(com.github.Aylur.ags:2509697): Gjs-CRITICAL **: 10:24:46.541: Attempting to call back into JSAPI during the sweeping phase of GC. This is most likely caused by not destroying a Clutter actor or Gtk+ widget with ::destroy signals connected, but can also be caused by using the destroy(), dispose(), or remove() vfuncs. Because it would crash the application, it has been blocked and the JS callback not invoked.
The offending signal was destroy on Ags_Box 0x27bee540.
== Stack trace for context 0x26e98580 ==
#0       26fab1b8 i   resource:///org/gnome/gjs/modules/core/overrides/GLib.js:266 (3c79d2f7d560 @ 139)

(com.github.Aylur.ags:2509697): Gjs-CRITICAL **: 10:24:46.541: Attempting to call back into JSAPI during the sweeping phase of GC. This is most likely caused by not destroying a Clutter actor or Gtk+ widget with ::destroy signals connected, but can also be caused by using the destroy(), dispose(), or remove() vfuncs. Because it would crash the application, it has been blocked and the JS callback not invoked.
The offending signal was destroy on Ags_Label 0x27bec850.
== Stack trace for context 0x26e98580 ==
#0       26fab1b8 i   resource:///org/gnome/gjs/modules/core/overrides/GLib.js:266 (3c79d2f7d560 @ 139)

(com.github.Aylur.ags:2509697): Gjs-CRITICAL **: 10:24:46.541: Attempting to call back into JSAPI during the sweeping phase of GC. This is most likely caused by not destroying a Clutter actor or Gtk+ widget with ::destroy signals connected, but can also be caused by using the destroy(), dispose(), or remove() vfuncs. Because it would crash the application, it has been blocked and the JS callback not invoked.
The offending signal was destroy on Ags_Label 0x27bed6b0.
== Stack trace for context 0x26e98580 ==
#0       26fab1b8 i   resource:///org/gnome/gjs/modules/core/overrides/GLib.js:266 (3c79d2f7d560 @ 139)

(com.github.Aylur.ags:2509697): Gjs-CRITICAL **: 10:24:46.541: Attempting to call back into JSAPI during the sweeping phase of GC. This is most likely caused by not destroying a Clutter actor or Gtk+ widget with ::destroy signals connected, but can also be caused by using the destroy(), dispose(), or remove() vfuncs. Because it would crash the application, it has been blocked and the JS callback not invoked.
The offending signal was destroy on Ags_Box 0x27bf1060.
== Stack trace for context 0x26e98580 ==
#0       26fab1b8 i   resource:///org/gnome/gjs/modules/core/overrides/GLib.js:266 (3c79d2f7d560 @ 139)

(com.github.Aylur.ags:2509697): Gjs-CRITICAL **: 10:24:46.541: Attempting to call back into JSAPI during the sweeping phase of GC. This is most likely caused by not destroying a Clutter actor or Gtk+ widget with ::destroy signals connected, but can also be caused by using the destroy(), dispose(), or remove() vfuncs. Because it would crash the application, it has been blocked and the JS callback not invoked.
The offending signal was destroy on Ags_Label 0x27bef2d0.
== Stack trace for context 0x26e98580 ==
#0       26fab1b8 i   resource:///org/gnome/gjs/modules/core/overrides/GLib.js:266 (3c79d2f7d560 @ 139)

(com.github.Aylur.ags:2509697): Gjs-CRITICAL **: 10:24:46.541: Attempting to call back into JSAPI during the sweeping phase of GC. This is most likely caused by not destroying a Clutter actor or Gtk+ widget with ::destroy signals connected, but can also be caused by using the destroy(), dispose(), or remove() vfuncs. Because it would crash the application, it has been blocked and the JS callback not invoked.
The offending signal was destroy on Ags_Label 0x27bf0130.
== Stack trace for context 0x26e98580 ==
#0       26fab1b8 i   resource:///org/gnome/gjs/modules/core/overrides/GLib.js:266 (3c79d2f7d560 @ 139)

(com.github.Aylur.ags:2509697): Gjs-CRITICAL **: 10:24:46.541: Attempting to call back into JSAPI during the sweeping phase of GC. This is most likely caused by not destroying a Clutter actor or Gtk+ widget with ::destroy signals connected, but can also be caused by using the destroy(), dispose(), or remove() vfuncs. Because it would crash the application, it has been blocked and the JS callback not invoked.
The offending signal was destroy on Ags_Label 0x27b97bd0.
== Stack trace for context 0x26e98580 ==
#0       26fab1b8 i   resource:///org/gnome/gjs/modules/core/overrides/GLib.js:266 (3c79d2f7d560 @ 139)

(com.github.Aylur.ags:2509697): Gjs-CRITICAL **: 10:24:46.541: Attempting to call back into JSAPI during the sweeping phase of GC. This is most likely caused by not destroying a Clutter actor or Gtk+ widget with ::destroy signals connected, but can also be caused by using the destroy(), dispose(), or remove() vfuncs. Because it would crash the application, it has been blocked and the JS callback not invoked.
The offending signal was destroy on Ags_Label 0x277f5b40.
== Stack trace for context 0x26e98580 ==
#0       26fab1b8 i   resource:///org/gnome/gjs/modules/core/overrides/GLib.js:266 (3c79d2f7d560 @ 139)

(com.github.Aylur.ags:2509697): Gjs-CRITICAL **: 10:24:46.541: Attempting to call back into JSAPI during the sweeping phase of GC. This is most likely caused by not destroying a Clutter actor or Gtk+ widget with ::destroy signals connected, but can also be caused by using the destroy(), dispose(), or remove() vfuncs. Because it would crash the application, it has been blocked and the JS callback not invoked.
The offending signal was destroy on Ags_Label 0x278672e0.
== Stack trace for context 0x26e98580 ==
#0       26fab1b8 i   resource:///org/gnome/gjs/modules/core/overrides/GLib.js:266 (3c79d2f7d560 @ 139)

(com.github.Aylur.ags:2509697): Gjs-CRITICAL **: 10:24:46.541: Attempting to call back into JSAPI during the sweeping phase of GC. This is most likely caused by not destroying a Clutter actor or Gtk+ widget with ::destroy signals connected, but can also be caused by using the destroy(), dispose(), or remove() vfuncs. Because it would crash the application, it has been blocked and the JS callback not invoked.
The offending signal was destroy on Ags_Label 0x27d30540.
== Stack trace for context 0x26e98580 ==
#0       26fab1b8 i   resource:///org/gnome/gjs/modules/core/overrides/GLib.js:266 (3c79d2f7d560 @ 139)

(com.github.Aylur.ags:2509697): Gjs-CRITICAL **: 10:24:46.541: Attempting to call back into JSAPI during the sweeping phase of GC. This is most likely caused by not destroying a Clutter actor or Gtk+ widget with ::destroy signals connected, but can also be caused by using the destroy(), dispose(), or remove() vfuncs. Because it would crash the application, it has been blocked and the JS callback not invoked.
The offending signal was destroy on Ags_Label 0x27d32760.
== Stack trace for context 0x26e98580 ==
#0       26fab1b8 i   resource:///org/gnome/gjs/modules/core/overrides/GLib.js:266 (3c79d2f7d560 @ 139)

(com.github.Aylur.ags:2509697): Gjs-CRITICAL **: 10:24:46.541: Attempting to call back into JSAPI during the sweeping phase of GC. This is most likely caused by not destroying a Clutter actor or Gtk+ widget with ::destroy signals connected, but can also be caused by using the destroy(), dispose(), or remove() vfuncs. Because it would crash the application, it has been blocked and the JS callback not invoked.
The offending signal was destroy on Ags_Label 0x27dd0760.
== Stack trace for context 0x26e98580 ==
#0       26fab1b8 i   resource:///org/gnome/gjs/modules/core/overrides/GLib.js:266 (3c79d2f7d560 @ 139)

(com.github.Aylur.ags:2509697): Gjs-CRITICAL **: 10:24:46.541: Attempting to call back into JSAPI during the sweeping phase of GC. This is most likely caused by not destroying a Clutter actor or Gtk+ widget with ::destroy signals connected, but can also be caused by using the destroy(), dispose(), or remove() vfuncs. Because it would crash the application, it has been blocked and the JS callback not invoked.
The offending signal was destroy on Ags_Label 0x27dd1500.
== Stack trace for context 0x26e98580 ==
#0       26fab1b8 i   resource:///org/gnome/gjs/modules/core/overrides/GLib.js:266 (3c79d2f7d560 @ 139)
AhmedSaadi0 commented 3 months ago

This error is due to not having plasma-apply-colorscheme and not be able to convert string into JSON object in prayer time service

I've added more setting to control these things in this pull request

try updating the files and create a file in your home directory with the name .ahmed-config.json and add these into it

{
  "username": "Your name",
  "networkMonitor": "your_network_monitor",
  "networkTimeout": 300,
  "networkInterval": 1000,
  "darkM3WallpaperPath": "/home/myuser/wallpapers/dark",
  "lightM3WallpaperPath": "/home/myuser/wallpapers/light",
  "weatherLocation": "your_city_name",
  "city": "your_city_name",
  "country": "your_country_name",
  "usePrayerTimes": false,
  "changePlasmaColor": false
}

and run again

Buer-Nahida commented 3 months ago

Thanks, it working now.