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

[Ubuntu] Applications not launching when pressing enter in the launcher #1194

Open
tyalie opened this issue Sep 27, 2021 · 1 comment · May be fixed by #1205
Open

[Ubuntu] Applications not launching when pressing enter in the launcher #1194

tyalie opened this issue Sep 27, 2021 · 1 comment · May be fixed by #1205

Comments

@tyalie
Copy link
Contributor

tyalie commented Sep 27, 2021

(1) Issue/Bug Description:
When using the launcher applications will not start-up when selecting and pressing enter on them. Instead the window will partially freeze by not refreshing the results anymore (search and navigation still works), even though pop-launcher continuous to send new search results.

Diving deeper into the launcher code will reveal, that the issue is the unknown property Shell.AppLaunchGpu used in launcher.ts#launch_desktop_entry to assign gpuPref. Everything in the stack (shell, launcher, ...) up to this point works as expected. This will crash the function almost silently and as such the code to start the applications is not reached.

journalctl will log this problem as the following, even though it is unclear to me when the error will be printed as it doesn't seem to be attached to the crashing of the above mentioned function

JS WARNING: [/home/elizabeth/.local/share/gnome-shell/extensions/[email protected]/launcher.js 164]: reference to undefined property "AppLaunchGpu"

(2) Steps to reproduce (if you know):
Probably using a non pop-os versioned gnome?

(3) Expected behavior:
Should launch

(4) Distribution (run cat /etc/os-release):
Default Ubuntu 20.04 with Wayland

(5) Gnome Shell version:
3.39.6

(6) Pop Shell version (run apt policy pop-shell or provide the latest commit if building locally):

Pop-Shell: 5220303
Pop-Launcher: pop-os/launcher@5cea115

(7) Where was Pop Shell installed from:
Manually

(10) Other Notes:
Replacing Shell.AppLaunchGpu with an empty string will fix this problem.

My recommendation would be to wrap the assignment of gpuPref into a try / catch block, or test beforehand whether the "needed" property exists in the gnome shell.

@tyalie
Copy link
Contributor Author

tyalie commented Sep 27, 2021

I hit upon this issue in pop-os/launcher#30 (comment)

@jacobgkau jacobgkau changed the title Applications not launching when pressing enter in the launcher [Ubuntu] Applications not launching when pressing enter in the launcher Sep 27, 2021
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 a pull request may close this issue.

1 participant