sdias / win-10-virtual-desktop-enhancer

An application that enhances the Windows 10 multiple desktops feature by adding additional keyboard shortcuts and support for multiple wallpapers.
MIT License
1.76k stars 267 forks source link

Issue with windows "run as" #21

Open aNaoy opened 7 years ago

aNaoy commented 7 years ago

First of all, thanks for your hard work, it's well done.

As IT administrator, I often use the "run as another user" feature, but when I switch to a desktop with a program executed as another user (which isn't the user running the current session), no shortcut works.

Is there a way to detect the shortcuts even in a process which isn't run by the user who owns virtual-desktop-enhancer?

sdias commented 7 years ago

Thanks. I really don't know, to be honest. I didn't develop the underlying library that this program uses to interact with Windows (Ciantic did), so I don't know how ownership of processes affects this program's functionality. I might look into it at some point. Please let me know if you learn anything more about this issue.

cruzer619 commented 7 years ago

i'm an IT admin as well.. if you run the exe as administrator.. your able to switch desktops when you switch desktops. But it does break the desktop icon in the taskbar. That icon stop switching, ie.. you switch to desktop 2 icon still says 1.

GioBonvi commented 7 years ago

But it does break the desktop icon in the taskbar

@cruzer619 Can you confirm that this is still the case with the latest version? I am not able to reproduce this behaviour.

cruzer619 commented 7 years ago

nice.. didnt see there is newer version.. downloading now.. going to test it out.

cruzer619 commented 7 years ago

nope still the same thing... I right click on virtual-desktop-enhancer.exe, run as administrator.. and when I switch desktop via keyboard shortcut, always shows "1". If I run virtual-desktop-enhancer.exe as a normal user functions as it suppose to.

GioBonvi commented 7 years ago

Reporting here my observations on running WIndows 10 Virtual Desktop Enhancer as administrator or as other user:

MitjaBezensek commented 7 years ago

Lastly: if your account has administrative rights there seems to be no difference between running the program normally and running it with administrative rights (right click -> Run as administrator -> Click "Yes" on the UAC popup): everything will work in both cases (even popups and the tray icon)

I have an admin account with UAC turned on. But for me, there is a difference. If I run it without administrator privileges then I have to click on the desktop in order for the keyboard shortcuts to work (so I click desktop then press Alt + 2 to go to the second desktop, then click the desktop and press Alt+1 to go back to the first one). If I don't click on the desktop then nothing happens. But if I run as administrator then the shortcuts work all the time.

I also tried to add it to startup and it also does not work. I created the shortcut and added it to startup as described in the installation guide. I tried setting the shortcut to run as administrator and without. When I then login VDE is started, but the icon that is shown is the "H" icon from AutoHotkey I guess. VDE also does not work when pressing the shortcuts.

My windows version is 10.0.15063. Any ideas what might be causing this?

Right now I just removed it from startup and manually start via a shortcut that is set to run as administrator.