Permission for snap applications

Clash Royale CLAN TAG#URR8PPP up vote
2
down vote
favorite
I have some trouble with the Ubuntu notepadqq package. After opening a file from my apache webroot I cannot see any content. Saving the file is also not possible. I thougt this would be a classic permission issue. Therefore, I changed the group of the webroot from root to www-data and added my user to this group. Permissions are 775, so in theory it should now be possible for me to edit files in my webroot. But nevertheless, when I open a file of this directory with notepadqq, it still only shows an empty file.
When using gksudo notepadqq I get the following error message:
No protocol specified
QXcbConnection: Could not connect to display :0
I figured out that notepadqq is a so called snap application and I wonder if this is the reason for my problems.
Can someone give me a hint how I could fix this issue (without using 777 permissions)?
permissions snap
add a comment |Â
up vote
2
down vote
favorite
I have some trouble with the Ubuntu notepadqq package. After opening a file from my apache webroot I cannot see any content. Saving the file is also not possible. I thougt this would be a classic permission issue. Therefore, I changed the group of the webroot from root to www-data and added my user to this group. Permissions are 775, so in theory it should now be possible for me to edit files in my webroot. But nevertheless, when I open a file of this directory with notepadqq, it still only shows an empty file.
When using gksudo notepadqq I get the following error message:
No protocol specified
QXcbConnection: Could not connect to display :0
I figured out that notepadqq is a so called snap application and I wonder if this is the reason for my problems.
Can someone give me a hint how I could fix this issue (without using 777 permissions)?
permissions snap
I don't know what to do for this. Could you explain?
â lukasl1991
Feb 26 at 6:24
add a comment |Â
up vote
2
down vote
favorite
up vote
2
down vote
favorite
I have some trouble with the Ubuntu notepadqq package. After opening a file from my apache webroot I cannot see any content. Saving the file is also not possible. I thougt this would be a classic permission issue. Therefore, I changed the group of the webroot from root to www-data and added my user to this group. Permissions are 775, so in theory it should now be possible for me to edit files in my webroot. But nevertheless, when I open a file of this directory with notepadqq, it still only shows an empty file.
When using gksudo notepadqq I get the following error message:
No protocol specified
QXcbConnection: Could not connect to display :0
I figured out that notepadqq is a so called snap application and I wonder if this is the reason for my problems.
Can someone give me a hint how I could fix this issue (without using 777 permissions)?
permissions snap
I have some trouble with the Ubuntu notepadqq package. After opening a file from my apache webroot I cannot see any content. Saving the file is also not possible. I thougt this would be a classic permission issue. Therefore, I changed the group of the webroot from root to www-data and added my user to this group. Permissions are 775, so in theory it should now be possible for me to edit files in my webroot. But nevertheless, when I open a file of this directory with notepadqq, it still only shows an empty file.
When using gksudo notepadqq I get the following error message:
No protocol specified
QXcbConnection: Could not connect to display :0
I figured out that notepadqq is a so called snap application and I wonder if this is the reason for my problems.
Can someone give me a hint how I could fix this issue (without using 777 permissions)?
permissions snap
permissions snap
asked Feb 25 at 18:32
lukasl1991
1818
1818
I don't know what to do for this. Could you explain?
â lukasl1991
Feb 26 at 6:24
add a comment |Â
I don't know what to do for this. Could you explain?
â lukasl1991
Feb 26 at 6:24
I don't know what to do for this. Could you explain?
â lukasl1991
Feb 26 at 6:24
I don't know what to do for this. Could you explain?
â lukasl1991
Feb 26 at 6:24
add a comment |Â
3 Answers
3
active
oldest
votes
up vote
1
down vote
accepted
Snap problem
I got similar error message on 16.04 LTS MATE with 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
So it is not Wayland issue.
May be it is other limitation of Snap. Anyway I reported bug 1751634 to launchpad.
Get deb-packaged Notepadqq and run it
We discovered, that notepadqq snap does not launch as root, so we
Removing it and installing normal version from âÂÂNotepadqq Teamâ team PPA
snap remove notepadqq
sudo add-apt-repository -y ppa:notepadqq-team/notepadqq
sudo apt-get update
sudo apt-get install notepadqqThen run it as normal user:
notepadqqAnd as root:
gksudo notepadqq
Hope this helps.
Thank you very much! The deb-packaged notepadqq works fine!
â lukasl1991
Feb 26 at 6:24
add a comment |Â
up vote
0
down vote
For anyone from Ubuntu 18.04
snap install notepadqq --devmode
I now run 18.04 but this doesn't work for me.
â lukasl1991
Jun 1 at 8:47
add a comment |Â
up vote
0
down vote
notepadqq does not have all the capabilities of Notepad++. I installed the Windows version on Ubuntu 18.04.* by running the installer with Wine. It works perfectly fine and you get many more features and none of the problems you experienced.
I've tried this but it does not work. Notepadd++ tells me that the file cannot be opened because its parent directory does not exist.
â lukasl1991
Jun 1 at 8:48
add a comment |Â
3 Answers
3
active
oldest
votes
3 Answers
3
active
oldest
votes
active
oldest
votes
active
oldest
votes
up vote
1
down vote
accepted
Snap problem
I got similar error message on 16.04 LTS MATE with 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
So it is not Wayland issue.
May be it is other limitation of Snap. Anyway I reported bug 1751634 to launchpad.
Get deb-packaged Notepadqq and run it
We discovered, that notepadqq snap does not launch as root, so we
Removing it and installing normal version from âÂÂNotepadqq Teamâ team PPA
snap remove notepadqq
sudo add-apt-repository -y ppa:notepadqq-team/notepadqq
sudo apt-get update
sudo apt-get install notepadqqThen run it as normal user:
notepadqqAnd as root:
gksudo notepadqq
Hope this helps.
Thank you very much! The deb-packaged notepadqq works fine!
â lukasl1991
Feb 26 at 6:24
add a comment |Â
up vote
1
down vote
accepted
Snap problem
I got similar error message on 16.04 LTS MATE with 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
So it is not Wayland issue.
May be it is other limitation of Snap. Anyway I reported bug 1751634 to launchpad.
Get deb-packaged Notepadqq and run it
We discovered, that notepadqq snap does not launch as root, so we
Removing it and installing normal version from âÂÂNotepadqq Teamâ team PPA
snap remove notepadqq
sudo add-apt-repository -y ppa:notepadqq-team/notepadqq
sudo apt-get update
sudo apt-get install notepadqqThen run it as normal user:
notepadqqAnd as root:
gksudo notepadqq
Hope this helps.
Thank you very much! The deb-packaged notepadqq works fine!
â lukasl1991
Feb 26 at 6:24
add a comment |Â
up vote
1
down vote
accepted
up vote
1
down vote
accepted
Snap problem
I got similar error message on 16.04 LTS MATE with 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
So it is not Wayland issue.
May be it is other limitation of Snap. Anyway I reported bug 1751634 to launchpad.
Get deb-packaged Notepadqq and run it
We discovered, that notepadqq snap does not launch as root, so we
Removing it and installing normal version from âÂÂNotepadqq Teamâ team PPA
snap remove notepadqq
sudo add-apt-repository -y ppa:notepadqq-team/notepadqq
sudo apt-get update
sudo apt-get install notepadqqThen run it as normal user:
notepadqqAnd as root:
gksudo notepadqq
Hope this helps.
Snap problem
I got similar error message on 16.04 LTS MATE with 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
So it is not Wayland issue.
May be it is other limitation of Snap. Anyway I reported bug 1751634 to launchpad.
Get deb-packaged Notepadqq and run it
We discovered, that notepadqq snap does not launch as root, so we
Removing it and installing normal version from âÂÂNotepadqq Teamâ team PPA
snap remove notepadqq
sudo add-apt-repository -y ppa:notepadqq-team/notepadqq
sudo apt-get update
sudo apt-get install notepadqqThen run it as normal user:
notepadqqAnd as root:
gksudo notepadqq
Hope this helps.
edited Feb 25 at 19:41
answered Feb 25 at 18:55
N0rbert
16.4k33377
16.4k33377
Thank you very much! The deb-packaged notepadqq works fine!
â lukasl1991
Feb 26 at 6:24
add a comment |Â
Thank you very much! The deb-packaged notepadqq works fine!
â lukasl1991
Feb 26 at 6:24
Thank you very much! The deb-packaged notepadqq works fine!
â lukasl1991
Feb 26 at 6:24
Thank you very much! The deb-packaged notepadqq works fine!
â lukasl1991
Feb 26 at 6:24
add a comment |Â
up vote
0
down vote
For anyone from Ubuntu 18.04
snap install notepadqq --devmode
I now run 18.04 but this doesn't work for me.
â lukasl1991
Jun 1 at 8:47
add a comment |Â
up vote
0
down vote
For anyone from Ubuntu 18.04
snap install notepadqq --devmode
I now run 18.04 but this doesn't work for me.
â lukasl1991
Jun 1 at 8:47
add a comment |Â
up vote
0
down vote
up vote
0
down vote
For anyone from Ubuntu 18.04
snap install notepadqq --devmode
For anyone from Ubuntu 18.04
snap install notepadqq --devmode
edited Apr 27 at 21:22
David Foerster
26.4k1362106
26.4k1362106
answered Apr 27 at 18:09
Ligemer
1136
1136
I now run 18.04 but this doesn't work for me.
â lukasl1991
Jun 1 at 8:47
add a comment |Â
I now run 18.04 but this doesn't work for me.
â lukasl1991
Jun 1 at 8:47
I now run 18.04 but this doesn't work for me.
â lukasl1991
Jun 1 at 8:47
I now run 18.04 but this doesn't work for me.
â lukasl1991
Jun 1 at 8:47
add a comment |Â
up vote
0
down vote
notepadqq does not have all the capabilities of Notepad++. I installed the Windows version on Ubuntu 18.04.* by running the installer with Wine. It works perfectly fine and you get many more features and none of the problems you experienced.
I've tried this but it does not work. Notepadd++ tells me that the file cannot be opened because its parent directory does not exist.
â lukasl1991
Jun 1 at 8:48
add a comment |Â
up vote
0
down vote
notepadqq does not have all the capabilities of Notepad++. I installed the Windows version on Ubuntu 18.04.* by running the installer with Wine. It works perfectly fine and you get many more features and none of the problems you experienced.
I've tried this but it does not work. Notepadd++ tells me that the file cannot be opened because its parent directory does not exist.
â lukasl1991
Jun 1 at 8:48
add a comment |Â
up vote
0
down vote
up vote
0
down vote
notepadqq does not have all the capabilities of Notepad++. I installed the Windows version on Ubuntu 18.04.* by running the installer with Wine. It works perfectly fine and you get many more features and none of the problems you experienced.
notepadqq does not have all the capabilities of Notepad++. I installed the Windows version on Ubuntu 18.04.* by running the installer with Wine. It works perfectly fine and you get many more features and none of the problems you experienced.
answered Jun 1 at 0:03
Hedley Finger
1561114
1561114
I've tried this but it does not work. Notepadd++ tells me that the file cannot be opened because its parent directory does not exist.
â lukasl1991
Jun 1 at 8:48
add a comment |Â
I've tried this but it does not work. Notepadd++ tells me that the file cannot be opened because its parent directory does not exist.
â lukasl1991
Jun 1 at 8:48
I've tried this but it does not work. Notepadd++ tells me that the file cannot be opened because its parent directory does not exist.
â lukasl1991
Jun 1 at 8:48
I've tried this but it does not work. Notepadd++ tells me that the file cannot be opened because its parent directory does not exist.
â lukasl1991
Jun 1 at 8:48
add a comment |Â
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1009698%2fpermission-for-snap-applications%23new-answer', 'question_page');
);
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
I don't know what to do for this. Could you explain?
â lukasl1991
Feb 26 at 6:24