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
Start in daemon mode #631
Comments
A few things here, What desktop manager are you using. If it's gnome and other similar managers you may have a "run" dialog type tool built in. Try this by pressing alt+f2 and typing qutebrowser. Also fairly sure this isnt the type of app that would run as a daemon. You might also be able to make a link or short cut depending on your window manager. But if you want to fork or sepperate the process from a terminal you can do one of two things I'm aware of. You can add a & to the end of the command. Or "nohup qutebrowser" And you should then be able to close your terminal just fine. But i suggest some type of menu or launcher app. |
Sorry, I forgot to mention that I'm on OS X. I will try your suggestions. All I want is to be able to close/restart my terminal without killing my browser:) |
I still think this could be handy. Having an instance running in the background Linus Pettersson wrote:
|
It would be cool to be able to handle it like a regular OS X app as well. So you can start it with Alfred, have a nice icon in the dock and so on :) |
I think we're talking about two different things right now 😉 I plan to look into building and distributing an
It already is one. I think you could (auto-)start qutebrowser with |
Florian Bruhin wrote:
|
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
hmm have problems with qutebrowser, if I start it with --nowindow parameter and I close the last window with the ":close" command it quits the windowless window. That I guess this is a bug. I use the version from nixos, v 0.7.0. |
@spiderbit Right now |
it really hurts me... I am switching from conkeror, I dont use tabs, whenever I want a new site open I open a new window with a shortcut... in conkeror that takes under 1 sek. I have no deamon there too, but because the start is under 1 second it does not matter. While the very slow python aparently needs 4 to 5 seconds to start, btw even if a instance is open already. I seen a workaround for that, but it depends on a instance already running. So I would have to build a script like (if instalnce running) do that, (if not) do that. and bind that to my shortcut. So this really hurts the usability for me. |
I mean I understand taht this is maybe no high priority for you, but its at least a bug. it does not make any sense to start a instance with no window and then when you close a window the instance exits, for what is then the quit button, if close does the same thing. I just also think that would be a much easier workaround than trying to make the starttime 5 times faster or at least 3 times faster, or do you think that would be easy to do? |
If you say it takes 4-5 seconds on your system even with an instance running, how does this change anything? |
there is a workaround which enables you to send a new-window command or something I found somewhere here. that shoul then be faster wasnt it even in the faq, wait a second I search it. |
this echo command at the bottom, dont have this socat installed, so I cant test it, but it should work I guess? open a new window with open also is instant, so open it twice with one instance should not take longer. |
Most time is taken by PyQt imports, which are also done when opening a second instance which just communicates with the first one. |
wouldnt it be possible to have either a second starter or some if/else that forgoes that, if a instance is already open, or a flag or something? |
I don't understand that question. |
so you say it imports PyQt, if only creates a new window with a existing instance, it would not be needed to import that again right? so you could have some kind of detection or start parameter that makes the starter not import that pyqt a second time. or is the starter always start a new instance? |
Well no matter what the answer is to that, this echo command dont imports pyqt again, so its faster (if its still working), so if --no-window would keep open a instance I could load one instance without a window at windowmanager start, and then use this echo command to start new windows of qutebrowser. That would fit my workflow. |
@spiderbit First of all: Every time you do a comment here, you send mail to something like 100 people. Can you please stop the rapid double-comments? 😉 Some PyQt imports are needed because qutebrowser uses Qt's QLocalSocket to communicate with the existing instance. Though imports could certainly be rearranged a bit to speed things up, that's why #1098 exists. An alternative would be to have a FWIW on my (5 year old) laptop it takes ~1s to spawn a new instance, and less than that to communicate with an existing one. PRs to improve this would certainly be welcome, but again, I won't get the time to work on this anytime soon. |
I have here a new Acer Chromebook 11 some kind of pentium somthing dualcore with around 2ghz and I tihnk 2gb ram, and some sort of internal flash memory. And I just again tried it, as far as good I can press the stop clock its around 4 to 5 seconds. On my core i5 thinkpad x220 its around 1 sek. so there its fast enough, with a real ssd. But that does not help me on my chromebook :) |
Piggybacking off of this thread, I'm loving qutebrowser but was wondering if running qutebrowser as a daemon would enable faster start-up times for new windows compared to both having an instance already open and no instances open. |
I'm now using |
one way would be to detect a "crash" in systemd and then restart the service I think? That would be at least a improvement right? Adding under [Service] should do the trick? |
I already did that, but if I restart qutebrowser (kill and start it again) too quickly, it will start in the foreground, which is annoying. I want to be able to close all windows and open a new one very quickly, without waiting for the background process to restart. I use this quite a lot in my workflow to clean old tabs. |
The fact that |
Just in case someone may find it useful, I am using the following as my The script does a few extra stuff that are somewhat relevant to running in daemon mode, but possibly of no interest to others:
|
Hi!
Is there a way to start qutebrowser as a daemon (in background)? Currently, when I just run
qutebrowser
from the terminal it locks up that terminal window and outputs the logs. Or are you supposed to start it in some other way?The text was updated successfully, but these errors were encountered: