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

Some minor fixes #962

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open

Conversation

jo-so
Copy link

@jo-so jo-so commented May 29, 2023

No description provided.

uuid: string,
...args: any[]
) {
if (incompatibleExtensions.includes(uuid)) return;
// eslint-disable-next-line prefer-rest-params
originalFunction!.apply(this, arguments);
await originalFunction!.apply(this, arguments);
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We should return the orginalFunction result instead of await

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That's okay. Should I add an undefined to the return in line 28, too?

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Returning nothing is similar as returning undefined

…nction

The original method is defined as async. Hence, we need to pass through the
return value of the originalFunction and in case of an early return, we need
to return a resolved promise.

https://github.com/GNOME/gnome-shell/blob/ba43c6191798dd07f66693ec90e2808ec9954e5c/js/ui/extensionSystem.js#L217
With parallel make execution the targets are run in parallel and you get the
conflict:

```
% make compile
rm -rf dist
cp -r schemas dist
mkdir dist
glib-compile-schemas dist/schemas/
mkdir: cannot create directory ‘dist’: File exists
```
There are some changes in 4.8 and 4.9 they gives errors while compiling.
Hence, pin the version to 4.6.x.
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

Successfully merging this pull request may close these issues.

None yet

2 participants