D4koon / WhatsappTray

Minimize Whatsapp Desktop-Client to Tray
GNU General Public License v3.0
388 stars 30 forks source link

how can i make whatsapp tray work with store version of whatsapp on windows 11? #126

Open ghost opened 2 years ago

ghost commented 2 years ago

how can i make whatsapp tray work with store version of whatsapp on windows 11?

ghost commented 2 years ago

maybe you can consider this as a bug

JCAguilera commented 2 years ago

It works with the store version, you just have to create a shorcut like this:

  1. Find the WhatsApp Desktop folder in C:/Program Files/WindowsApps (if there's multiple WhatsApp Desktop folders, use the one with more files in it).
  2. Go inside the WhatsApp Desktop folder, then go to the app folder and find WhatsApp.exe.
  3. Create a shorcut to WhatsApp.exe and place it in this directory %APPDATA%/Microsoft/Windows/Start Menu/Programs/WhatsApp.

It should work right away. Also, you should notice that if WhatsApp Desktop is updated, the folder may change, so you have to do this for every update.

If you want a more "automated" way to create the shorcut, you can use this script I made. Just install node.js in your machine and follow the instuctions.

CarloHD commented 2 years ago

It works with the store version, you just have to create a shorcut like this:

With WhatsApp Beta doesn't work; Whatsapp Tray can start Whatsapp Beta (then the path is correct), but no icon on tray, the log say:

16:21:20.337 - WhatsappTray::StartWhatsapp: Starting WhatsApp from canonical-path:'C:\Program Files\WindowsApps\5319275A.51895FA4EA97F_2.2229.3.0_x64__cv1g1gvanyjgm\WhatsApp.exe' 16:21:21.339 - WhatsappTray::StartWhatsapp: WhatsApp-Window not found yet after 1000ms. Continue waiting ... 16:21:22.432 - WhatsappTray::StartWhatsapp: WhatsApp-Window not found yet after 1000ms. Continue waiting ... 16:21:23.570 - WhatsappTray::StartWhatsapp: WhatsApp-Window not found yet after 1000ms. Continue waiting ... 16:23:32.227 - WhatsappTray::StartWhatsapp: WhatsApp-Window not found yet after 1000ms. Continue waiting ... 16:23:37.569 - WhatsappTray::WndProc: WM_DESTROY 16:23:37.569 - WhatsappTray::WndProc: QuitMessage posted.

other log say:

16:36:38.413 - WhatsappTray::FindWhatsappWindowHandle: Found window with title: 'WhatsApp' hwnd=0x000206B2

kipusoep commented 2 years ago

@JCAguilera thanks for the tool. I couldn't access the WindowsApps folder and couldn't get permissions to do so. Your script helped me out :-)

ghost commented 2 years ago

It works with the store version, you just have to create a shorcut like this:

  1. Find the WhatsApp Desktop folder in C:/Program Files/WindowsApps (if there's multiple WhatsApp Desktop folders, use the one with more files in it).
  2. Go inside the WhatsApp Desktop folder, then go to the app folder and find WhatsApp.exe.
  3. Create a shorcut to WhatsApp.exe and place it in this directory %APPDATA%/Microsoft/Windows/Start Menu/Programs/WhatsApp.

It should work right away. Also, you should notice that if WhatsApp Desktop is updated, the folder may change, so you have to do this for every update.

If you want a more "automated" way to create the shorcut, you can use this script I made. Just install node.js in your machine and follow the instuctions.

this was working for me after 22h2 and whatsapp latest update(they changed the whole application) it stopped working,