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

System freezes when clicking on "Show service status" #1

Open
SamLukeYes opened this issue Mar 24, 2021 · 6 comments
Open

System freezes when clicking on "Show service status" #1

SamLukeYes opened this issue Mar 24, 2021 · 6 comments

Comments

@SamLukeYes
Copy link

SamLukeYes commented Mar 24, 2021

Thank you for creating this extension. As far as I observe, most of the features works as expected, except for "show service status". Every time I click this menu item, the whole system freezes immediately. At this stage, I can do nothing except a long press on power button to perform a force shutdown.

My distro is Arch Linux, installed this extension from extensions.gnome.org, using gnome on Wayland.

@giacomoboldini
Copy link

Same issue using Wayland in PopOS.
Using Xorg it seems to work properly without this problem.

I also have installed it from extensions.gnome.org.

@SamLukeYes
Copy link
Author

Using Xorg it seems to work properly without this problem.

Oh yes, I'm using Wayland too. Thank you for reminding of this point :)

@giacomoboldini
Copy link

Does exists a workaround for this problem?

@Silvanoc
Copy link

I've found another extension facing the same issue.

In this extension ( oneDrive) the function GLib.spawn_command_line_sync is being called on other places of the extension without issues, but with other commands. So it appears to be an issue calling specifically gnome-terminal.

@Silvanoc
Copy link

I got an explanation why the system is freezing, because it's a sync call. Just call GLib.spawn_command_line_async (notice the 'a' almost in the end) and the system won't freeze anymore. The invocation of gnome-terminal won't work though.

@SamLukeYes
Copy link
Author

Does exists a workaround for this problem?

I‘m now using Console instead of Terminal. Clicking "Show service status" doesn't freeze the system now, instead it doesn't do anything :p

To view the service status, use systemctl --user status onedrive

Silvanoc added a commit to Silvanoc/oneDrive that referenced this issue Mar 28, 2022
Don't block the shell when showing the terminal with the status of the
OneDrive service.

Additionally launch gnome-terminal not from a command line call, but as
an app.

Signed-off-by: Silvano Cirujano Cuesta <[email protected]>
spbisc97 referenced this issue in spbisc97/oneDrive Nov 9, 2022
Don't block the shell when showing the terminal with the status of the
OneDrive service.

Additionally launch gnome-terminal not from a command line call, but as
an app.

Signed-off-by: Silvano Cirujano Cuesta <[email protected]>
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

3 participants