Posts: 37
Threads: 8
Joined: Jul 2018
...even after I reinstall the whole thing.
Everytime I try to start the program, I get the message "Closing Hybrid, since it's running with administration rights!"
And then it closes.
Not sure what to do about this. :/
Posts: 10.598
Threads: 57
Joined: May 2017
best: don't start Hybrid with admin rights
possible:
https://forum.selur.net/showthread.php?t...38#pid4238
----
Dev versions are in the 'experimental'-folder of my GoogleDrive, which is linked on the download page.
Posts: 10.598
Threads: 57
Joined: May 2017
Quote:I really don't wanna use it until this gets fixed, or at least if you could be more clear of the dangers of running Hybrid with admin rights, is it really that bad?
You can use it with admin rights, just don't complain in case it does delete stuff or creates folders where it shouldn't.
Hybrid is developed using normal user rights in mind and I don't spend a thought about what it could do with admin rights.
What OS are you on?
Cu Selur
----
Dev versions are in the 'experimental'-folder of my GoogleDrive, which is linked on the download page.
Posts: 10.598
Threads: 57
Joined: May 2017
Strange thing is that for me Hybrid does start with my Administrator user on Windows 10 without problems.
Did you disable UAC ?
Cu Selur
----
Dev versions are in the 'experimental'-folder of my GoogleDrive, which is linked on the download page.
Posts: 10.598
Threads: 57
Joined: May 2017
Moving Hybrid after the installation without properly deinstalling completely will only break more things. So hopefully you deinstalled it properly beforehand.
Still confused why Hybrid would complain about the admin rights on your windows System and not on mine,...
The code Hybrid uses under Windows to check the admin rights is rather simple:
#ifdef Q_OS_WIN
bool HybridMainWindow::hasAdminRights()
{
SID_IDENTIFIER_AUTHORITY authority = { SECURITY_NT_AUTHORITY };
PSID adminGroup;
// Initialize SID.
if (!AllocateAndInitializeSid(&authority, 2, SECURITY_BUILTIN_DOMAIN_RID, DOMAIN_ALIAS_RID_ADMINS, 0, 0, 0, 0, 0, 0, &adminGroup))
return false;
BOOL isInAdminGroup = FALSE;
if (!CheckTokenMembership(nullptr, adminGroup, &isInAdminGroup)){
isInAdminGroup = FALSE;
}
FreeSid(adminGroup);
return bool(isInAdminGroup);
}
#endif
which here only aborts Hybrid in case it's run as administrator,....
Cu Selur
----
Dev versions are in the 'experimental'-folder of my GoogleDrive, which is linked on the download page.
Posts: 37
Threads: 8
Joined: Jul 2018
(29.03.2019, 19:12)Selur Wrote: best: don't start Hybrid with admin rights
possible: https://forum.selur.net/showthread.php?t...38#pid4238
But.. I'm not trying to start it with admin rights. It just happens when I start Hybrid. I don't know how to change it.
Posts: 10.598
Threads: 57
Joined: May 2017
fix is the same
----
Dev versions are in the 'experimental'-folder of my GoogleDrive, which is linked on the download page.