Hey wysota,
Thanks for that info on linux. What if the software is installed in a user's home directory, so they have privileges to run it, but aren't root. Any idea what to do then?
David
Hey wysota,
Thanks for that info on linux. What if the software is installed in a user's home directory, so they have privileges to run it, but aren't root. Any idea what to do then?
David
What do you need that information for? If the software is executing (as you want to do something from within the program), the user obviously has rights to execute it... For arbitrary files there is QFileInfo::isExecutable().
I don't need it in linux and solaris anymore. What i wanted was to know whether i had permission to execute a given file from within my program, depending on who i was logged in as, and where I was. On Windows I always needed to be Admin user.
All is good now![]()
Couldn't you just try and execute the file and if you get an error you obviously didn't have permission?
Bookmarks