MScholtes / PSVirtualDesktop

VirtualDesktop is a Powershell module that provides commandlets to manage virtual desktops of Windows 10.
MIT License
294 stars 18 forks source link

Request open application in a vitrual desktop #25

Closed Judimax closed 1 year ago

Judimax commented 1 year ago

Greetings how would I go about opening a program in an already given desktop

MScholtes commented 1 year ago

Hello @MichaelOdumosu57,

this is not the first request for this feature. I'm sorry I have to reject it.

The Windows API does not have an option for this so implementing would mean "start application, wait that application has started (whenever this is), move application to chosen desktop" or "switch to chosen desktop, start the application there, wait that application has started (whenever this is), switch back".

Besides the flickering of the screen there are so many options to start a program and so many failures that can happen in this procedure (think of complicated applications like chrome) that I'm not willing to support this.

You might look at the wrapper script of @SuperflyJon (https://github.com/SuperflyJon/FileStarter) or write the code by yourself (it is not difficult for "easy" programs).

Greetings

Markus

Judimax commented 1 year ago

actually you aux commands work quite well on my computer it move to the screen performs the command andmoves to thenext screen w.o any wait feature

On Mon, Feb 20, 2023 at 10:07 AM MScholtes @.***> wrote:

Hello @MichaelOdumosu57 https://github.com/MichaelOdumosu57,

this is not the first request for this feature. I'm sorry I have to reject it.

The Windows API does not have an option for this so implementing would mean "start application, wait that application has started (whenever this is), move application to chosen desktop" or "switch to chosen desktop, start the application there, wait that application has started (whenever this is), switch back".

Besides the flickering of the screen there are so many options to start a program and so many failures that can happen in this procedure (think of complicated applications like chrome) that I'm not willing to support this.

You might look at the wrapper script of @SuperflyJon https://github.com/SuperflyJon ( https://github.com/SuperflyJon/FileStarter) or write the code by yourself (it is not difficult for "easy" programs).

Greetings

Markus

— Reply to this email directly, view it on GitHub https://github.com/MScholtes/PSVirtualDesktop/issues/25#issuecomment-1437164800, or unsubscribe https://github.com/notifications/unsubscribe-auth/AFCVX4MURIVJPJREWAOKEFTWYOCEJANCNFSM6AAAAAAVBGRRPI . You are receiving this because you were mentioned.Message ID: @.***>

-- Michael Odumosu Fullstack Software Developer

Information Tel:929-353-8278 Linkedin: https://www.linkedin.com/in/michael-odumosu-a58367b1 Facebook: https://www.facebook.com/mchael.odumosu Github: https://github.com/MichaelOdumosu57

MScholtes commented 1 year ago

Workaround exists