Skip to content

armgit / kokon

Public Imported from GitHub
0

Edit photos by describing the change, on your own GPU. A free, open-source alternative to Nano Banana and ChatGPT image editing: photos stay on your computer, no daily limit. One installer for Windows, Mac and Linux sets up the best open model (Qwen-Image 2.1). MCP server for AI agents.

Docker: the start-up message gives the docker exec command for the password

Gabriele Lozupone2b833f48cf3b
diff --git a/crates/qls-service/src/main.rs b/crates/qls-service/src/main.rs
index b74acf3..fa7c983 100644
--- a/crates/qls-service/src/main.rs
+++ b/crates/qls-service/src/main.rs
@@ -325,7 +325,8 @@ async fn run(args: Vec<String>) {
if forced_remote && !state.remote.password_set() {
let msg = "--remote: no password is set yet, so other devices cannot connect. Run `kokon-service --set-password` (Docker: `docker exec -it kokon kokon-service --set-password`); it applies without a restart.";
tracing::warn!("{msg}");
- say(" Other devices: not yet, set a password first: kokon-service --set-password");
+ let cmd = if in_container() { "docker exec -it kokon kokon-service --set-password" } else { "kokon-service --set-password" };
+ say(&format!(" Other devices: not yet, set a password first: {cmd}"));
} else if !forced_remote && !cfg_now.remote_access {
say(" Other devices: off (start with --remote, or turn it on in the desktop app)");
}