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

GNOME: Broken icons at startup #77

Closed
zzkW35 opened this issue Dec 28, 2020 · 4 comments
Closed

GNOME: Broken icons at startup #77

zzkW35 opened this issue Dec 28, 2020 · 4 comments
Labels
bug Something isn't working

Comments

@zzkW35
Copy link

zzkW35 commented Dec 28, 2020

Bug description

Icons aren't shown properly when the program is launched at startup.

Screenshots

Screenshot from 2020-12-28 19-15-12

Expected behavior

Screenshot from 2020-12-28 19-22-04

Environment

  • OS: Arch Linux
  • Desktop environment: GNOME
  • Optimus Manager version: 1.3.1.r48.g0aed196-1
  • Optimus Manager Qt version: 1.5.2

Additional context

My best guess is that the program is launched before the system can load its icons, in fact I managed to fix the issue by delaying optimus-manager-qt's autostart by 1 second editing the launch command in .config/autostart/io.optimus_manager.OptimusManagerQt.desktop:

Exec=bash -c "sleep 1 && optimus-manager-qt"

@zzkW35 zzkW35 added the bug Something isn't working label Dec 28, 2020
@Shatur
Copy link
Owner

Shatur commented Dec 28, 2020

Thanks for the issue! I will pin it to let other users know. But I can't fix it because it is definitely a GNOME issue :(
The program works correctly in other DE's.

@Shatur Shatur closed this as completed Dec 28, 2020
@Shatur Shatur pinned this issue Dec 28, 2020
@zzkW35
Copy link
Author

zzkW35 commented Dec 28, 2020

My idea of a fix -source side- was to have a file written for the sole purpose of being cloned to .config/autostart. It would be exactly like io.optimus_manager.OptimusManagerQt.desktop with only the Exec line edited the way I mentioned previously.

The downside is that everyone would have that delay, but, being of just 1 second, I doubt people would actually notice it.
I'll try to write a pull request, but honestly speaking C++ isn't my cup of tea.

@Shatur
Copy link
Owner

Shatur commented Dec 28, 2020

My idea of a fix -source side- was to have a file written for the sole purpose of being cloned to .config/autostart. It would be exaclt like io.optimus_manager.OptimusManagerQt.desktop with only the Exec line edited the way I mentioned previously.

Sorry, I don't like this idea to have an autostart delay in all other DE's. The correct solution is to fix the problem in GNOME.

@zzkW35
Copy link
Author

zzkW35 commented Dec 28, 2020

Fair enough. I'll try to come up with something.

@Shatur Shatur changed the title Broken icons at startup GNOME: Broken icons at startup Mar 7, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants