Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Missing Daemon mode #514
I understand why the daemon mode was removed from rofi.
But it had a huge benefit, IMHO : rofi was almost instantaneous when pressing the trigger key.
Now, as my computer is often slow, there can be many seconds before rofi starts (on a cold start).
Is there any hope to have the daemon mode reactivated ?
This has been discussed many times before and there seems to be myths going around about it.
Secondly, rofi is very fast starting up and the difference between daemon mode and non daemon mode always been neglectable for me (milliseconds difference). ( in git the startup time and time to be interactive has been improved even further).
So the only thing is if you use rofi very infrequently on a very low memory machine its library like cairo, libxcb (That are shared with many others apps) might get discarded. But in situations like this even when running in background it is likely that its memory is swapped away in that case.
See also here for a more detailed discussion on this.
Some numbers: So on my laptop, rofi grabs the keyboard after 15ms of running, from command issue, to rofi executing main is 12 ms. So within 30ms I can start typing. I know this is a reasonably quick laptop, I will add numbers from my slow arm notebook that runs of a cheap usb stick later.
As the seconds startup, this is likely I/O? please post a timing trace (see wiki) to actually see where this time is spend.
My computer is not slow, but for some reason when I start rofi via some i3 binding, it doesn't seem to run rofi until I release the shortcut keys. But this only happens with rofi, it doesn't happen when I start a terminal emulator or run some other program that I have direct shorcuts for.
It does run rofi, but rofi terminates itself almost instantaneously. As long as i keep pressing my i3 shorcut, it it will start rofi and rofi will abort, until i release the shortcut, then rofi will not exit and show itself.
After login the output of rofi to a file, and pressing the shortcut for a couple seconds, I get:
Because everything happens so fast, I suspect the lines are not in the correct order,