In Linux how to add a build step in Qt Creator that uses su privileges without getting the wrong password attempts on builds?

后端 未结 4 1746
故里飘歌
故里飘歌 2021-01-02 20:36

My goal is to successfully link a folder to /opt/ directory- which needs to be run with sudo.

I have tried this:

 system(sudo ln -s $$OUT_PWD/xampp /         


        
4条回答
  •  半阙折子戏
    2021-01-02 21:12

    I think you should use gksudo (in GNOME) or kdesudo (in KDE). The commands will then use a window to prompt for your password.

提交回复
热议问题