I have an application written in qt5 that may need root rights when saving a file. That is, the user himself chooses in QFileDialog :: getSaveFileName () where to save it. And if he chooses something of type in / etc, then he may need root rights.
So, how to organize it? That is, the root rights request should occur exactly when the user chooses a save path that cannot be rooted without. Who will advise what? Are there any ready-made arrangements for this?
-sand owner root bits (but carefully calculate all the consequences, we don’t know what your application can do in principle). - avp