Problema de encaixe
Recebi uma mensagem de erro semelhante no 16.04 LTS MATE com o Xorg:
$ cat /etc/os-release | grep PRETTY
PRETTY_NAME="Ubuntu 16.04.3 LTS"
$ export | grep XDG_SESSION
declare -x XDG_SESSION_DESKTOP="mate"
declare -x XDG_SESSION_ID="c2"
declare -x XDG_SESSION_PATH="/org/freedesktop/DisplayManager/Session0"
declare -x XDG_SESSION_TYPE="x11"
$ snap list | grep notepadqq
notepadqq 1.2.0-2 115 danieleds -
$ which notepadqq
/snap/bin/notepadqq
$ sudo snap run notepadqq
mkdir: cannot create directory '/run/user/0': Permission denied
No protocol specified
QXcbConnection: Could not connect to display :0.0
Aborted (core dumped)
$ pkexec snap run notepadqq
mkdir: cannot create directory '/run/user/0': Permission denied
QXcbConnection: Could not connect to display
Aborted (core dumped)
$ sudo notepadqq
mkdir: cannot create directory '/run/user/0': Permission denied
No protocol specified
QXcbConnection: Could not connect to display :0.0
Aborted (core dumped)
$ gksudo notepadqq
No protocol specified
QXcbConnection: Could not connect to display :0.0
$ sudo -u www-data notepadqq /var/www/html/index.html
2018/02/25 22:40:11.162682 cmd_run.go:562: WARNING: cannot create user data directory: cannot create "/var/www/snap/notepadqq/115": mkdir /var/www/snap: permission denied
cannot create user data directory: /var/www/snap/notepadqq/115: Read-only file system
Portanto, não é questão de Wayland.
Pode ser outra limitação do Snap. De qualquer forma eu relatei o erro 1751634 para o launchpad .
Obtenha o Notepadqq deb-packaged e execute-o
Descobrimos que o notepadqq snap não é iniciado como root, portanto
-
Removendo-o e instalando a versão normal de PPA da equipe “Notepadqq Team”
snap remove notepadqq sudo add-apt-repository -y ppa:notepadqq-team/notepadqq sudo apt-get update sudo apt-get install notepadqq
-
Em seguida, execute-o como usuário normal:
notepadqq
-
E como root:
gksudo notepadqq
Espero que isso ajude.