mirror of
https://github.com/LGUG2Z/komorebi.git
synced 2026-01-11 14:40:25 +01:00
[BUG]: Visual Studio 2022 isnt managed #611
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @SebbeJohansson on GitHub (May 7, 2025).
Summary
Hi! I cant get Visual Studio 2022 to be managed by komorebi. Ive tried with the auto generated applications.json file, and with my own rules.
Version Information
OS Name: Microsoft Windows 11 Business
OS Version: 10.0.26100 N/A Build 26100
komorebic 0.1.36
tag:v0.1.36
commit_hash:8ef1bcf2
build_time:2025-04-13 03:10:57 +00:00
build_env:rustc 1.86.0 (05f9846f8 2025-03-31),stable-x86_64-pc-windows-msvc
Komorebi Configuration
Hotkey Configuration
Output of komorebic check
No KOMOREBI_CONFIG_HOME detected, defaulting to C:\Users\DragonSebastianJohan
Looking for configuration files in C:\Users\DragonSebastianJohan
Found komorebi.json; this file can be passed to the start command with the --config flag
Application specific configuration file path has not been set. Try running 'komorebic fetch-asc'
Found C:\Users\DragonSebastianJohan.config\whkdrc; key bindings will be loaded from here when whkd is started, and you can start it automatically using the --whkd flag
@LGUG2Z commented on GitHub (May 7, 2025):
Reminder: If you are using komorebi at work you are required to purchase a license
As for VS, are you running the process as a regular user process or as an elevated administrator process?
@SebbeJohansson commented on GitHub (May 8, 2025):
@LGUG2Z very nice catch with the business license, but this is on my personal laptop which runs Business. But! The idea is to run it in my work laptop too when I get everything to work.
I'm running vs as an elevated admin process. Is that not possible? I'm gonna check if that's required for my personal project. But I know it is for one of the projects at work, so if I wanna use this across all my devices I'd need it to work with admin processes too!
@SebbeJohansson commented on GitHub (May 8, 2025):
@LGUG2Z since you were such a hawk and because I thought it was funny that you noticed the windows license, I have donated to the PCRF and sponsored the project!
@LGUG2Z commented on GitHub (May 8, 2025):
It's possible but then you also need to run komorebi as an elevated admin process - part of Windows' security model at the operating system level is to not allow user-level processes to manipulate the windows of administrator-level processes 🔒
@SebbeJohansson commented on GitHub (May 8, 2025):
@LGUG2Z interesting! So just run it from the terminal with the terminal being in elevated administrator?
@LGUG2Z commented on GitHub (May 8, 2025):
Yeah exactly, just make sure to
komorebic stopwith all the various flags for the components you have started first before callingkomorebic startfrom an admin terminal@SebbeJohansson commented on GitHub (May 9, 2025):
Running the terminal as administrator did not work. Changing visual studio to not run as administrator works, but means that I wont be able to use this on my work laptop.
I tried setting
run as administratoron the komorebi exe's, and that didn't help either.Any ideas?
@CtByte commented on GitHub (May 9, 2025):
@SebbeJohansson I use the community version, not business, but I run komorebi as admin, vs does not get managed if opened as admin.
What I need to do is to minimize vs and when I restore it (un-minimize) it gets managed but as a floating window for some reason. However now it is managed fine, just need to minimize it, restore it and then "de-float" it
@LGUG2Z commented on GitHub (May 9, 2025):
From the sounds of it, it looks like the app isn't sending a SHOW event on launch and is probably sending OBJECT_NAMECHANGE instead like Intellij and Firefox to - it's worth adding an object_name_change rule to see if this workaround helps