Skip to content
This repository has been archived by the owner on Dec 23, 2018. It is now read-only.

Issue with windows "run as" #21

Open
aNaoy opened this issue Feb 21, 2017 · 7 comments
Open

Issue with windows "run as" #21

aNaoy opened this issue Feb 21, 2017 · 7 comments
Labels

Comments

@aNaoy
Copy link

aNaoy commented Feb 21, 2017

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 sdias added the bug label Feb 22, 2017
@sdias
Copy link
Owner

sdias commented Feb 22, 2017

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
Copy link

cruzer619 commented Mar 21, 2017

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
Copy link
Collaborator

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
Copy link

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

@cruzer619
Copy link

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
Copy link
Collaborator

GioBonvi commented Jun 14, 2017

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

  • If you run the program with a different user from the current one it won't work at all: a tray icon with AutoHotkey's logo will appear, but you won't be able to switch desktops or anything else
  • As @aNaoy initially reported, if you run Windows 10 Virtual Desktop Enhancer without administrative rights it won't work when a window of a program run as another user is focused (probably because non-administrator users don't have access to each other's processes). This also happens with some particular programs like Windows Task Scheduler (I think they run with higher privileges).
  • If you run Windows 10 Virtual Desktop Enhancer with administrative rights, but your current user does not have administrative rights (so you effectively run it as another user, but with more privileges):
    • As reported by @cruzer619 it will work OK even when windows of programs run as other users are focued (probably because administrative rights let you manage other user processes)
    • However the tray icon will stop updating when switching desktops and the tooltips will not be shown anymore (I am not sure why this would happen)
  • 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)

@MitjaBezensek
Copy link

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.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

5 participants