Whell i think i found a solution with the help of a script.
The script isn’t myne i found it here (https://www.reddit.com/r/Fedora/comments/5eb633/solution_running_graphical_app_with_sudo_in/)
But i can write it down with a few more info (how we can make script executable…for us newbies!!! i found it in an other link!!)
So i found this code in the link i gave:
#small script to enable root access to x-windows system
#disable root access after application terminates
#print access status to allow verification that root access was removed
So lets start!
1)make an empty text file in your home directory (for me is /home/chris) with a name to remember what it does!! for example wsudo
2)copy the code i gave above and save the file.
3)go to your home folder (where the wsudo file is) and run from konsole : chmod +x wsudo so it will be executable.
4)To make it run from any place we must run : gedit .bashrc and in the file that opens we add this line to the end of it : alias <Name_with which you wanna call it >=’./filename.sh’ so for our example it will be :
5)commit the changes with : source ~/.bashrc
We are fine!
So now we can run from konsole : wsudo gedit /home/chris/test and opens gedit with no errors
Sorry for the way of writing it but i am newbie i feel newbie so i write as newbie!!!
So if this can be a “solution” please a mod mark it as solved!