Replies: 18 comments 22 replies
|
I personally start it manually every time, so unfortunately I have no advice to give 😅 |
|
below in this comment are my unsuccessful tries to run kanata as a service. But I found an easy workaround: I tried to create a service from elevated command prompt (start on demand is choosen to not mess up system boot)
this already looks iffy or both complain Der angegebene Dienst ist kein installierter Dienst. meaning this service is not an installed service |
|
I got this working using Task Scheduler. This runs kanata in the background without opening a console window. Note: Can uncheck Run With Highest Priveleges if you don't need to run kanata as admin. Put in the path to kanata exe in program/script. Put in directory where kanata.exe is stored in start in. Add These are some settings I use to make sure this will run on laptop battery: These settings I set to make sure the task runs for a long time: |
|
Maybe try this. |
|
I use a headless conhost on Windows 10. Command is something like This can be run in a scheduled task with the "At log on" trigger, and using the "Run only when user logged in" security option. Can also be launched via a shortcut in Works with both variants. (another option is to launch via |
|
I couldn't get the task scheduler thing to work. I ended up installing this program and manually hiding it each time. |
|
Another way is using the windows registry. Many applications seem to do it this way. Just check what is already there to see which applications already do it. Registry key: |
|
You could meanwhile test this GUI kanata native Windows tray app from this PR #990 and autostart it by simply adding a link to your Startup folder |
|
I run Kanata on win10 **** update: made sure it runs under "windows terminal", not the old "conhost": |
|
After researching and testing diffirence methods, I beleive this is the easiest and the best solution so far: Just modify the following command to your use case and run it: For example this is what I use personally: Add registry value to Hope I can help, happy using Kanata guys! |
|
My working settings: |
|
This is a part of my Windows 11 post installation scripts. Run the following command in # Specify the repository and file name
$repo = 'jtroo/kanata'
$fileName = 'kanata_gui.exe'
$installDir = 'C:\Program Files\Kanata'
$installPath = Join-Path -Path $installDir -ChildPath $fileName
# Get the latest release information using GitHub API
$latestRelease = Invoke-RestMethod -Uri "https://api.github.com/repos/$repo/releases/latest"
$version = $latestRelease.tag_name
# Create the download link by replacing the placeholder with the version
$downloadLink = "https://github.com/$repo/releases/download/$version/$fileName"
# Create the installation directory if it doesn't exist
New-Item -ItemType Directory -Path $installDir -Force
# Download
Write-Output "Downloading kanata_gui.exe..."
Invoke-WebRequest -Uri $downloadLink -OutFile $installPath -ErrorAction Stop
# Create shortcut in the Startup folder
$startupFolder = [Environment]::GetFolderPath('Startup')
$shortcutPath = Join-Path -Path $startupFolder -ChildPath 'kanata_gui.lnk'
# Create WScript Shell Object
$WScriptShell = New-Object -ComObject WScript.Shell
# Create the shortcut
$Shortcut = $WScriptShell.CreateShortcut($shortcutPath)
$Shortcut.TargetPath = $installPath
$Shortcut.Description = "Kanata GUI"
$Shortcut.WorkingDirectory = $installDir
$Shortcut.Save()
Write-Output "Installation complete! Kanata GUI will start automatically with Windows."
Write-Output "Now copy the `kanata.kbd` in the `C:\Program Files\Kanata` folder."
# Open `C:\Program Files\Kanata` folder
Start-Process -FilePath $installDir
Copy the |
|
it actually easy What i do is install katana gui exe and make shortcut of it and put the shortcut in startup folder |
|
Is it possible to run kanata as on linux like systemd service? |
|
I recall reading that there's now a native Tray/GUI solution for Kanata on Windows. Is there any documentation on this, or am I mistaken? :) |
|
Since there is now an official way to run Kanata in systray on Windows, can this question be marked as answered? |
|
I've created a cd "[kanata.exe-root-folder-full-path]"
START /MIN C:\Windows\System32\conhost.exe --headless kanata.exe <flags-and-other-config>It takes a while until it loads (like every startup task/service in windows) depending on how many startup items you run. |
|
Do you encounter slow startup of kanata_gui? |











Uh oh!
There was an error while loading. Please reload this page.
What's a good way to have kanata run on login and/or in the background without a console window on my windows desktop?
Powershell and background jobs might be an option? Task scheduler? Not sure.
Apologies if this already answered somewhere
All reactions