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

Can't start when no windows are active #18

Closed
ging-dev opened this issue Jul 15, 2023 · 8 comments
Closed

Can't start when no windows are active #18

ging-dev opened this issue Jul 15, 2023 · 8 comments
Assignees
Labels
bug Something isn't working

Comments

@ging-dev
Copy link

I tried adding cortile to autostart list in xfce but it seems cortile can't start when no windows are active.
cortile.log:
Error on initialization GetProperty: No such property '_NET_ACTIVE_WINDOW' on window 765.

@leukipp leukipp self-assigned this Jul 16, 2023
@leukipp leukipp added the bug Something isn't working label Jul 16, 2023
@leukipp
Copy link
Owner

leukipp commented Jul 16, 2023

I made a potential fix, please try to follow the dev install instructions and install cortile via remote source from the develop branch. Let me know if this version solves your problem.

If not, you may temporarily delay autostart. e.g. via,

bash -c "sleep 10 && /home/USER/.go/bin/cortile -vvv"

we can than investigate the issue further.

@ging-dev
Copy link
Author

ging-dev commented Jul 17, 2023

I made a potential fix, please try to follow the dev install instructions and install cortile via remote source from the develop branch. Let me know if this version solves your problem.

If not, you may temporarily delay autostart. e.g. via,

bash -c "sleep 10 && /home/USER/.go/bin/cortile -vvv"

we can than investigate the issue further.

Thank you, develop branch solved the problem!
Updated: Well it seems it doesn't work sometimes

@leukipp
Copy link
Owner

leukipp commented Jul 23, 2023

Updated: Well it seems it doesn't work sometimes

Can you confirm that the sleep command,

bash -c "sleep 10 && /home/USER/.go/bin/cortile -vvv"

solves the issue on startup, regardless if windows are active or not in the first 10 seconds?

Please also provide additional infos about the Desktop Environment/Window Manager you are using.

@ging-dev
Copy link
Author

Updated: Well it seems it doesn't work sometimes

Can you confirm that the sleep command,

bash -c "sleep 10 && /home/USER/.go/bin/cortile -vvv"

solves the issue on startup, regardless if windows are active or not in the first 10 seconds?

Please also provide additional infos about the Desktop Environment/Window Manager you are using.

To make cortile start normally, I have to open any window before cortile start, if no window is active, cortile will fail to start. Using the sleep command only works if before 10 seconds a certain window is opened.

i use XFCE desktop environment and Metacity as window manager.

@leukipp
Copy link
Owner

leukipp commented Jul 24, 2023

I understand, but unfortunately I can't reproduce the problem properly on my system.

Are you using a desktop manager (e.g. xfdesktop) or are panels (e.g. xfce4-panel) configured, or is the desktop initially completely empty (no background image etc.) before other windows are opened?

Please also run the latest develop branch using cortile -v, as I have changed some logging levels and let me know what the result is.

@ging-dev
Copy link
Author

I understand, but unfortunately I can't reproduce the problem properly on my system.

Are you using a desktop manager (e.g. xfdesktop) or are panels (e.g. xfce4-panel) configured, or is the desktop initially completely empty (no background image etc.) before other windows are opened?

Yes, my xfdesktop and xfce4-panel always start up immediately.

Please also run the latest develop branch using cortile -v, as I have changed some logging levels and let me know what the result is.

Thank you, looks like this commit fixed the problem, i was able to start cortile without the sleep command and open the window manually. 👉👈

@leukipp
Copy link
Owner

leukipp commented Aug 2, 2023

This fix has been included in the latest released version.

@leukipp leukipp closed this as completed Aug 2, 2023
@leukipp
Copy link
Owner

leukipp commented Oct 30, 2023

There might be some new issues related to system startup caused by this commit (346a89b). If you are still using cortile, it would be helpful if you could confirm that version v2.3.0 is working as expected.

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