Replies: 13 comments 12 replies
-
I personally start it manually every time, so unfortunately I have no advice to give 😅 |
Beta Was this translation helpful? Give feedback.
-
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
|
Beta Was this translation helpful? Give feedback.
-
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: |
Beta Was this translation helpful? Give feedback.
-
Maybe try this. |
Beta Was this translation helpful? Give feedback.
-
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 |
Beta Was this translation helpful? Give feedback.
-
I couldn't get the task scheduler thing to work. I ended up installing this program and manually hiding it each time. |
Beta Was this translation helpful? Give feedback.
-
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: |
Beta Was this translation helpful? Give feedback.
-
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 |
Beta Was this translation helpful? Give feedback.
-
I run Kanata on win10 **** update: made sure it runs under "windows terminal", not the old "conhost":
|
Beta Was this translation helpful? Give feedback.
-
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! |
Beta Was this translation helpful? Give feedback.
-
My working settings:
|
Beta Was this translation helpful? Give feedback.
-
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 |
Beta Was this translation helpful? Give feedback.
-
it actually easy What i do is install katana gui exe and make shortcut of it and put the shortcut in startup folder |
Beta Was this translation helpful? Give feedback.
-
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
Beta Was this translation helpful? Give feedback.
All reactions