Closed sheeepdev closed 3 years ago
It seem to detect libadwaita, so not #22. But you need the lastest version of libadwaita, specifically from the master branch. libadwaita 1.0.0-alpha-2 doesn't have Adw.Application yet
I have libadwaita-git installed from AUR (1.0.0+alpha.2+3+g959f434-2)
You might need something newer
So would I need to compile libadwaita directly from Gnome GitLab?
I checked on that specific libadwaita version, it is behind around 20+ commits to which have Adw.Application support, so yes you will need to wither compile it, or maybe something newer from aur
something easier though is temporarily replacing Adw.Application witj Gtk.Application in main.py
but you'll have broken css
I built libadwaita and it installed successfully and I rebuilt mousai but I get the same error :(
something easier though is temporarily replacing Adw.Application witj Gtk.Application in main.py
try this (there's two adw.application, replace both with Gtk.Application)
(python3:3777966): Gtk-CRITICAL **: 12:25:20.966: Error building template class 'MainWindow' for an instance of type 'MainWindow': .:0:0 Invalid object type 'AdwHeaderBar'
Traceback (most recent call last):
File "/usr/lib/python3.9/site-packages/gi/_gtktemplate.py", line 169, in <lambda>
lambda s: init_template(s, cls, base_init_template)
File "/usr/lib/python3.9/site-packages/gi/_gtktemplate.py", line 192, in init_template
raise RuntimeError(
RuntimeError: Handler 'get_visible_button' was declared with @Gtk.Template.Callback but was not present in template
Traceback (most recent call last):
File "/usr/local/share/mousai/mousai/main.py", line 36, in do_activate
win = MainWindow(self.settings, application=self)
File "/usr/local/share/mousai/mousai/widgets/main_window.py", line 28, in __init__
self.history_listbox.bind_model(self.history_model, self.new_song_row)
AttributeError: 'NoneType' object has no attribute 'bind_model'
after the line with Gtk.Application.do_startup, add Adw.init() to the next line
Launches now, but does not follow my system theme, plus the icon is bugged :( See screenshot below
that's expected. It is a bug with libadwaita.
im not sure though why the icon is missing
I'd love to use flatpak apps but I just can't get over how they are not themed :( Hope this resolves soon
one hack to make it follow your theme is to remove Adw.init() again then replace AdwHeaderBar in data/ui/window.ui and data/ui/token_dialog.ui with GtkHeaderBar
I'd love to use flatpak apps but I just can't get over how they are not themed :( Hope this resolves soon
The thing with libadwaita is not related on why certain apps installed with flatpak doesn't follow system theme. It is just libadwaita doesn't support third party themes yet, but hopefully, yeah.
I guess we can close this?
Yeah, I guess.
one hack to make it follow your theme is to remove Adw.init() again then replace AdwHeaderBar in data/ui/window.ui and data/ui/token_dialog.ui with GtkHeaderBar
Doesnt work
And when I try to listen it says muted
https://gitlab.gnome.org/GNOME/libadwaita/-/issues/215 You can also check this issue
one hack to make it follow your theme is to remove Adw.init() again then replace AdwHeaderBar in data/ui/window.ui and data/ui/token_dialog.ui with GtkHeaderBar
Doesnt work
I just realized there are also other libadwaita widgets, so you will also have to replace/remove those
And when I try to listen it says muted
then it doesn't detect your mic
Tried both desktop audio, and mic.
Tried both desktop audio, and mic.
it should follow the default audil source similar to what is shown in sound settings of gnome control center
I'm pretty sure this is related or even the same issue as #22 but I can't get it to build with meson :(