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

Hidamari auto launch not working properly on Ubuntu 20.04 #17

Closed
KleberMotta opened this issue May 11, 2021 · 15 comments
Closed

Hidamari auto launch not working properly on Ubuntu 20.04 #17

KleberMotta opened this issue May 11, 2021 · 15 comments

Comments

@KleberMotta
Copy link

KleberMotta commented May 11, 2021

The application is executed but for some reason Hidamari doesn't load.

Using top or htop I can see that the process is running (and using 100% of a single thread of the processor, I wonder why)

I tried manually creating a systemd user service, same result.

The only thing I didn't try yet is a cron job.

@jeffshee
Copy link
Owner

Hi,
Thanks for your feedback.
Is the problem occurs only when auto launching Hidamari at login, or you can't launch the Hidamari normally as well?
It might be helpful if you can try run it in terminal, and paste the output here. Perhaps I can find some error here.

@KleberMotta
Copy link
Author

Hi! I can run it normally using a desktop entry or command line. I just can't run it automatically after login, the app starts in the background, its process is shown and all, but it just doesn't start. Plus when this happens, apparently multiple instances of the application are running, at least that's what htop shows me. I would send you a log folder but couldn't find one.

@jeffshee
Copy link
Owner

Hmm, that’s weird.. Unfortunately I haven’t implement logging feature to the program, so there isn’t any log file generated right now. Currently, the only way to access the log is through launching the program using terminal. Maybe someday I will improve this.
For now, I will investigate this issue with Ubuntu 20.04 VM to see if there is any distro specific issue.
Thanks.

@jeffshee
Copy link
Owner

Hi,
I tested with Ubuntu 20.04 in VM, and it seems that I couldn't reproduce the issue..
By any chance, are you using DE other than GNOME or other Ubuntu spin?
Also, could you attach the configuration file located at ~/.config/hidamari/hidamari.config?
Thanks!

@KleberMotta
Copy link
Author

Hi, I'm using gnome, maybe my Linux distro is tainted, IDK, 'cause it's a Dell computer shipped with Linux, but the issue is happening to me nonetheless. I'm sending the hidamari folder, but despite the result, I appreciate your effort in helping me, thanks!

hidamari.config.zip

@jeffshee
Copy link
Owner

Hmm, I inspected the zip file that you provided, it was empty inside tho? (It only contains directories but not file) 😅

@KleberMotta
Copy link
Author

Sorry man, I end up uninstalling it, but the config file was normal, I assure you. The app was working great! But the fact that I had to launch it manually threw me off. You can close the issue if want to, and sorry that I couldn't be of more help, Hidamari is a cool project! I tried others like it, wallset and komorebi, and def Hidamari was the best. All the best and good luck!

@jeffshee
Copy link
Owner

Sure! I will continue to improve the app and hopefully it will become more stable in the future~ 😊

@nicole-smartb
Copy link

Hi! I thought why not just open the same issue here rather than open a new one. So I also had the autostart problem, and tried to tinker around (on Ubuntu settings, not Hidamari source files).

So I found out that after first run of the app and chose a video/picture as desktop background, you need to 'quit Himadari" properly (that is via right click on desktop) to make sure Himadari run well at the next boot/restart. Also, at the Startup Application, you need to set the command to its main file /usr/bin/Himadari, otherwise you'll get Error: Failed to create server when launch via terminal.

I'm using Ubuntu 21.04 on Xorg for this, because I tried Himadari on Wayland and it doesn't work for me. Hope this help?

@jeffshee
Copy link
Owner

@nicole-smartb Hi, thanks for reporting!
Yep, let's reopen this issue. We need a better startup procedure.

@jeffshee jeffshee reopened this Jun 30, 2021
@constarg
Copy link

constarg commented Jul 4, 2021

Hello, I do not know if I can help, but I had a similar problem and I fixed it by doing the following:
1) I went to the /usr/bin/ folder and i find the python file that called hidamari.
2) I added 2 lines to the code that start the program so that it starts after 5 seconds.

I know not the best solution, but it fixes the problem (for me at least).

#!/usr/bin/env python3
import server
import time

time.sleep(5)
server.run()

I also did some experiments and apparently this problem happens because hidamari loads before the xfdesktop process (not always), as a result xfdesktop loads its own background over hidamari.

disclaimer: I'm not sure the above case is correct.
Environment: XFCE

@jeffshee
Copy link
Owner

jeffshee commented Jul 6, 2021

@rounnus Sure! Collaborations are always welcome. The good thing about OSS is that everyone can help. 😉
It might be the solution and also a good workaround for this issue IMO. I had noticed some apps like conky also use a short pause like this. Maybe it is required for a slower machine or some environment, that something might not have initialized properly when we run the server too early.
Thanks, I will work on this soon.

@jeffshee
Copy link
Owner

jeffshee commented Jul 6, 2021

The initial fix is in master now 😃

@jeffshee jeffshee mentioned this issue Jan 23, 2022
@TheFeelTrain
Copy link

Even though you fixed it, you never made a new release for it. You have development up to October 2021 but the latest release is from May 2021.

@jeffshee
Copy link
Owner

@TheFeelTrain
Sorry but right now I'm too busy for university... Maybe I'll be able to continue working on this project after this month.
Actually, I have some upcoming updates at dev branch already. But still, I'm lacking the time for polishing it as the final release...
(Is there anyone have the skill and interest to help? ;-) )

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

5 participants