Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

applauncher broken #18

Closed
Incognitux opened this issue Jul 30, 2023 · 8 comments
Closed

applauncher broken #18

Incognitux opened this issue Jul 30, 2023 · 8 comments

Comments

@Incognitux
Copy link

Incognitux commented Jul 30, 2023

I am on the latest build and I seem to be having a few issues:

  1. Audio is completely broken, no audio at all and the widgets are missing
    I get this error on trying to increase/decrease volume:
(ags:90262): Gjs-CRITICAL **: 15:13:03.651: JS ERROR: TypeError: ags.Service.Audio.speaker is undefined
anonymous@resource:///com/github/Aylur/ags/js/app.js line 114 > Function:3:1
_exportActions/<@resource:///com/github/Aylur/ags/js/app.js:115:13
main@resource:////com/github/Aylur/ags/js/main.js:45:26
run@resource:///org/gnome/gjs/modules/script/package.js:206:19
  1. Application launcher also seems to be broken, it displays nothing
    Error when trying to search something:
(ags:90262): Gjs-CRITICAL **: 15:13:50.664: JS ERROR: TypeError: search.toLowerCase is not a function
_match@resource:///com/github/Aylur/ags/js/service/apps.js:16:48
_search@resource:///com/github/Aylur/ags/js/service/apps.js:20:12
query/<@resource:///com/github/Aylur/ags/js/service/apps.js:39:48
query@resource:///com/github/Aylur/ags/js/service/apps.js:39:27
query@resource:///com/github/Aylur/ags/js/service/apps.js:61:38
onChange@/home/incognitux/.config/ags/modules/applauncher.js:128:26
Entry/<@resource:///com/github/Aylur/ags/js/widgets.js:277:19
Widget.widgets.applauncher/<.connections<@/home/incognitux/.config/ags/modules/applauncher.js:143:19
connect/bind<@resource:///com/github/Aylur/ags/js/utils.js:78:66
_load/</<@resource:///com/github/Aylur/ags/js/app.js:94:53
closeWindow@resource:///com/github/Aylur/ags/js/app.js:40:15
Window/<@resource:///com/github/Aylur/ags/js/window.js:74:43
main@resource:////com/github/Aylur/ags/js/main.js:45:26
run@resource:///org/gnome/gjs/modules/script/package.js:206:19
@Incognitux Incognitux changed the title audio and other things broken applauncher broken Jul 30, 2023
@Incognitux
Copy link
Author

A reboot seemed to have fixed the problem with audio, dunno what that was about.
Still seem to be having the issue with the app launcher though.

@Aylur
Copy link
Owner

Aylur commented Jul 30, 2023

what is the output of this script?

imports.gi.versions.Gtk = '3.0';

const app = new imports.gi.Gtk.Application();
app.connect('activate', () => {
    const list = imports.gi.Gio.AppInfo.get_all()
        .filter(app => app.should_show())
        .map(app =>
            typeof app.get_description() !== 'string' &&
                typeof app.get_description() !== 'object' ||
                typeof app.get_name() !== 'string' ||
                typeof app.get_executable() !== 'string' ||
                typeof app.get_id() !== 'string'
                ? app : null
        )
        .filter(app => app);

    list.length > 0
        ? list.forEach(app => print(app.get_name()))
        : print('ok');
});
app.run(null);
# run with
gjs file.js

@Incognitux
Copy link
Author

It just outputs "ok"

@Aylur
Copy link
Owner

Aylur commented Jul 30, 2023

weird, whenever you try to search this error pops up?

@Incognitux
Copy link
Author

precisely, it is also empty when I launch it

image

@Incognitux
Copy link
Author

af8eb56

This commit introduces the bug for me, before this it works as expected

@Aylur
Copy link
Owner

Aylur commented Jul 30, 2023

oh yeah, that was a breaking change, if you are using my configs, make sure you pull those too Aylur/dotfiles@46843e5 was the commit addressing it

@Incognitux
Copy link
Author

that fixed it, thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants