I have created a non-root user profile (ubuntu 18.04) using
sudo adduser john
su - john
Now, when I want to access/open my applications which were installed as root user (for example vscode) from my non root user profile 'john'. It didn't work. Is it because all configuration files are in my root user profile or only root users can use these applications? Can't I somehow use these applications (maybe not with sudo privileges) from my 'john' profile? If yes, can someone please guide me how. If not then what is the point of making a non-root user profile?.
Also, If I can access the application, then can I edit the configurations specific to 'john' profile?
I am still new to linux and learning about it. Any help would be greatly appreciated. Thank you!
Edit:
I am not able to access any of my applications. For eg: if I try opening vscode (in non-root user 'john') using
code .
It just didn't open up. Some other application like opening up (pre-installed for root user) 'simplescreenrecorder' using terminal with 'john' user gives error.
No protocol specified
qt.qpa.xcb: could not connect to display :1
qt.qpa.plugin: Could not load the Qt platform plugin "xcb" in ""
even though it was found.
This application failed to start because no Qt platform plugin
could be initialized. Reinstalling the application may fix this
problem.
Available platform plugins are: eglfs, linuxfb, minimal,
minimalegl, offscreen, vnc, xcb.
Aborted (core dumped)
I tried making 'john' a sudoer and even then I couldn't access my applications. I tried installing these applications in 'john' user, for eg:
sudo apt-get install simplescreenrecorder
But it is showing that it is already installed. I am more confused now. Also, is copy pasting the configuration files the way to access the applications? Can't it make the default configurations on its own or maybe somehow I can give access to root user configurations