-
-
Notifications
You must be signed in to change notification settings - Fork 58
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
GLava occasionally not visible as a startup application in XFCE4 #54
Comments
I’m guessing that you need to add a sleep or delay on glava so that xfce has time to initialize first |
This fixed the problem, though Apport still throws a "System Program Problem Detected." Thanks for the suggestion! |
This is a known problem I have personally run into, but proper solutions vary based on the distro and WM. As @aaahh mentioned, a delay is a suitable workaround for the time being. Ideally, I should have glava itself wait on a window manager to be provided on the active display instead of needing workarounds like this, and since it seems to be a problem outside of my WM, I will reopen the issue. |
To be honest I feel like there should be a flag or a callback from these window managers once their all set up, but a quick fix I can think of is so When the window cannot be found (which I think happens) then glava should run a while loop until it is, with a timeout of say a minute |
I can try implementing this in a week or so, |
@aaahh yeah, sorry about being absent from this project. I'll dedicate a bit of time now. |
The above commit to @grublordgithub please test the |
It didn't seem to work with the delay clause removed, though that could be on my end. Here's what the .desktop file in my .config/autostart looks like:
|
@grublordgithub what exactly is happening to GLava when you try to start it like this? Does it appear to be running in the background? Can you manually bring it to focus with |
It doesn't appear at all in wmctrl -l and wmctrl -R glava shows nothing. I'll trying switching a few of the flags in the desktop file and see if that works. |
If I have terminal set to true and hidden set to false, it shows the program running, but the visualizer doesn't show up on my desktop. |
@grublordgithub so the window doesn't appear at all, but glava still runs? That's really odd, since This leads me to believe the X11 window exists but the window is not being managed under XFCE's client list (see |
|
Wait so you can see the visualizer, it just doesn’t react to audio? And clicking elsewhere sends glava behind the xfce window? (Disappear) |
I can't see the visualizer unless I run it in a terminal after boot. And then when I click on the desktop it disappears and I can't bring it back into focus. |
@grublordgithub it's likely related, if you weren't getting stacking issues (desktop/root window on top of glava) normally. The information you have provided clearly indicates that XFCE is not managing the glava window. This might actually be an XFCE bug. I did notice my |
I have been running a full hardware reboot on my computer whenever I test the startup entry, and if it's at all useful I can upload my rc.glsl. |
@grublordgithub Do you get similar issues with starting other applications? Try making an entry with |
That runs fine on boot, but it starts in it's own dedicated window, rather than against the desktop. |
@grublordgithub does starting glava as a regular window remove the problems? |
I'm going to try testing these problems in Xephyr in a container with XFCE4. |
Starting it as a regular window does eliminate the problem, but then it isn't persistent across desktops. |
This still points to a bug with XFCE4, but this makes things weirder:
If this is correct, this is probably some niche bug in XFCE4, but I'm going to continue testing this myself. |
I was not able to reproduce your issue by:
My advice is to make sure you have GLava pinned, and update |
@wacossusca34 |
@aaahh unlikely, since GLava was started (and waiting) beforehand, although still a possibility. |
I can't currently update xfwm as I'm on Xubuntu, and pinning does not seem to fix the issue of it disappearing when I click anywhere on the desktop. |
@grublordgithub I can't get this behavior myself at all, so you definitely should compile your own build of |
It disappears regardless of when or how I run it, it would seem.
|
@grublordgithub whoops, I guess I didn't test the problem enough. I went back and managed to get it to behave this way, and sure enough At the moment though, you can (ab)use some weird functionality in the window manager to fix the issue. |
It's possible that the above fix also fixes the original issue, as the initial stacking order of desktop windows may simply depend on which window was mapped first on startup (in which case, @aaahh would be right about a race condition). |
That does fix the issue with it going behind to desktop for me, though not the startup bug. However, I'll just be using the sleep condition at startup to fix that, which seems to make everything run perfectly. The bugs are all seemingly in my desktop and window manager, so I'll sort those out on my own end. Thank you so much for all your help, people like you are why I love open source software.
|
@grublordgithub it may be very difficult to diagnose the issue with your window manager. I would try to manually raise the window with |
Post a list of all the windows |
@aaahh that will show the client list from the window manager, desktop windows won't be included by that. |
I am closing this issue due to inactivity and the nature of the startup bug (cannot reproduce, probably related to a race condition in certain scenario(s), and not a bug in glava). The stacking order bug can be fixed with |
This happened to me running as startup application on Ubuntu 20.04 and switches audio channels between built-in speakers and bluetooth audio. /home/user/.config/autostart/glava.desktop
When running via cli |
Have tried using it through cron, systemd, and .config/autostart, but none of them are persistent after reboot.
The text was updated successfully, but these errors were encountered: