Skip to content

Commit

Permalink
Make startup script non-blocking
Browse files Browse the repository at this point in the history
  • Loading branch information
Davidy22 committed Apr 28, 2022
1 parent 519e79b commit a48d015
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
8 changes: 4 additions & 4 deletions guake/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -613,15 +613,15 @@ def main():
startup_script = instance.settings.general.get_string("startup-script")
if startup_script:
log.info("Calling startup script: %s", startup_script)
with subprocess.Popen(
pid = subprocess.Popen( # pylint: disable=consider-using-with
[startup_script],
shell=True,
shell=False,
stdin=None,
stdout=None,
stderr=None,
close_fds=True,
) as pid:
log.info("Startup script started with pid: %s", pid)
)
log.info("Startup script started with pid: %s", pid)
# Please ensure this is the last line !!!!
else:
log.info("--no-startup-script argument defined, so don't execute the startup script")
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
fixes:
- |
- Hooks > onStart delay Guake start by ~100s #1982

0 comments on commit a48d015

Please sign in to comment.