You are not logged in.
Hi everyone, thanks for you support and sorry for my bad english.
I have installed archlinux about 9 months ago, with gnome.
Yesterday i have installed a plugin for gnome ( a touchpad manager) when i reboot the laptop, the desktop don't appears but i only see a terminal.
I research on internet and i have reinstalled gnome,xorg-xinit,xterm.
Then i reboot and gnome now it's work's fine.
But there is a big problem, when i try to start up some application with sudo privileges, the terminal responds with this error:"GTk-warming **:cannot open display:0.
I have installed gksu but when i type, for example, gksu nautilus the terminal responds with the same errors.
I check my name of localhost and i try to change it but with no result.
If i start other application ( like docker) with sudo privileges it works fine.
The only way for bypass the problem is typing xhost+; but i don't think that it's the right way.
Furthermore at every reboot i must typing xhost+ because, logically, the problems reappears
I don't have any ideas where is it the problem, somebody can help me?
Thank you very much.
Sorry yet for my bad english.
Last edited by nicolodo93 (2016-12-20 22:01:32)
Offline
GNOME is likely booting with Wayland, the terminal is unable to create GUI apps within Wayland, the easiest thing to do is to logout and change desktop environment to GNOME with x.org.
Offline
sudo did never and will never (easily) work this way. Unless you're really on wayland (though iirc gksu should handle that) and because you mentioned it, please post the output of "hostnamectl"
Offline
Thank you for you kind and fast reply.
GNOME is likely booting with Wayland, the terminal is unable to create GUI apps within Wayland, the easiest thing to do is to logout and change desktop environment to GNOME with x.org.
I try to login in my desktop envoirment in Gnome->x.org, and i open the terminal, it works fine and the sudo comand works like before....but big issue, the trakcpad isn't recognize by the system.
sudo did never and will never (easily) work this way. Unless you're really on wayland (though iirc gksu should handle that) and because you mentioned it, please post the output of "hostnamectl".
my output is this: "
Static hostname: myhost
Icon name: computer-laptop
Chassis: laptop
Machine ID: 1dd911a522fc449e9e13ddb20d66c9ff
Boot ID: 92a0cb6c1e834ddea3989b928431dc89
Operating System: Arch Linux
Kernel: Linux 4.8.13-1-ARCH
Architecture: x86-64
"
UPDATE
i have deleted the config file in etc/x11/xorg.conf "70 ###".conf and the touchpad now works fine.
But i have some question. I have edited this file because i wanted to mapping my touchpad( i don't wanted the mdile past button) now i use gnome.xorg and the midle past button seems disappared, this is good for me but i don't understand the reason
An other question is why in normal gnome (no xorg) the terminal don't allow me to launch application in sudo "Mode". For me this is very strange. Can you solve my doubts?
Finally can you explain why "sudo did never and will never (easily) work this way", i used it, i.e, for modify file with nautilus that i don't have permission to change, this is very comfortable for me.
Thank you very much.
Last edited by nicolodo93 (2016-12-21 00:53:38)
Offline
Sudo doesn't change the mode of a program, it starts a program as a different user. If a user is not specified it assumes root. If another user that you didn't have control over were able to create windows on your desktop it would be a security risk as they could steal your data. Wayland is a much more paranoid protocol than Xorg was, and slowly that will show to be a good thing.
Thanks,
Core2idiot
Offline
Because sudo doesn't (by default) inherit your (eg. DISPLAY) environment or X authority (which imply major security risks). Tools like kdesu and gksu have been written to handle this for desktop users (perform only the absolutely required breaches.
For wayland, things like xterm run on an X11 server "emulation" which is provided "by wayland" (think a bit like the headless mode of virtual machines) what requires some extra mapping (i thought gksu would already handle that)
Your hostname changes worked and if you need to know about your touchpad configuration, you need to post your config and Xorg log ;-)
Offline
Ok you are so clear.
But i don't understand beacause in xorg the touchpad work's fine and if i typing xinput list i can show my touchpad, and the middle paste don't works ( and i repeat this is great for me).
Instead in wayland if i typing xinput list , the terminal show this :"
Virtual core pointer id=2 [master pointer (3)]
⎜ ↳ Virtual core XTEST pointer id=4 [slave pointer (2)]
⎜ ↳ xwayland-pointer:13 id=6 [slave pointer (2)]
⎣ Virtual core keyboard id=3 [master keyboard (2)]
↳ Virtual core XTEST keyboard id=5 [slave keyboard (3)]
↳ xwayland-keyboard:13
"
But the touchpad work's, eaven if the middle past is enabled and i hate this things.
For curiosity can you explain in which way i can run, i.e, nautilus in super user mode in wayland? gksu doesn't works and xhost+ I do not think a just solution.
Thank you very much.
Offline
Wayland is simply (still) premature and I've zip experience with gnome3, sorry.
xinput in wayland is pointless - it's some sort of "emulation" layer for the X11 clients and has no impact on native wayland clients (gtk3 and qt5 at least) - the configuration there must be done in some gnome settings (as gnome-shell/mutter will be the input mapper)
Offline