Re: sudo 4.6.4 Aborted

2017-05-15 Thread Martin Měřinský
On Mon, 2017-05-15 at 06:37 -0700, Dirk Hohndel wrote: > On Mon, May 15, 2017 at 09:05:03AM +0200, Martin Měřinský wrote: > > On Sun, 2017-05-14 at 23:54 -0700, Thiago Macieira wrote: > > > On domingo, 14 de maio de 2017 23:22:55 PDT Martin Měřinský > > > wrote: > > > > > we should fix the reason y

Re: sudo 4.6.4 Aborted

2017-05-15 Thread Thiago Macieira
On segunda-feira, 15 de maio de 2017 08:40:38 PDT Dirk Hohndel wrote: > > On May 15, 2017, at 8:32 AM, Thiago Macieira wrote: > > > > On segunda-feira, 15 de maio de 2017 06:38:51 PDT Dirk Hohndel wrote: > >> I understand that. For us as a user of the library, though, having the > >> app > >> cra

Re: sudo 4.6.4 Aborted

2017-05-15 Thread Dirk Hohndel
> On May 15, 2017, at 8:32 AM, Thiago Macieira wrote: > > On segunda-feira, 15 de maio de 2017 06:38:51 PDT Dirk Hohndel wrote: >> I understand that. For us as a user of the library, though, having the app >> crash on something as trivial as not being able to connect to the display, >> that does

Re: sudo 4.6.4 Aborted

2017-05-15 Thread Thiago Macieira
On segunda-feira, 15 de maio de 2017 06:38:51 PDT Dirk Hohndel wrote: > I understand that. For us as a user of the library, though, having the app > crash on something as trivial as not being able to connect to the display, > that does seem a bit crude. I know. It's a side-effect of not using exce

Re: sudo 4.6.4 Aborted

2017-05-15 Thread Dirk Hohndel
On Sun, May 14, 2017 at 10:01:34PM -0700, Thiago Macieira wrote: > On domingo, 14 de maio de 2017 21:52:56 PDT Dirk Hohndel wrote: > > Ah, apparently this is a Qt bug that was declared not a bug at some point > > (you can find quite a few threads about this), and the way to work around > > it is to

Re: sudo 4.6.4 Aborted

2017-05-15 Thread Dirk Hohndel
On Mon, May 15, 2017 at 09:05:03AM +0200, Martin Měřinský wrote: > On Sun, 2017-05-14 at 23:54 -0700, Thiago Macieira wrote: > > On domingo, 14 de maio de 2017 23:22:55 PDT Martin Měřinský wrote: > > > > we should fix the reason you run as root in the first place. > > > > > > > > > Because importi

Re: sudo 4.6.4 Aborted

2017-05-15 Thread Martin Měřinský
On Sun, 2017-05-14 at 23:54 -0700, Thiago Macieira wrote: > On domingo, 14 de maio de 2017 23:22:55 PDT Martin Měřinský wrote: > > > we should fix the reason you run as root in the first place. > > > > > > > Because importing dives from DC doesn't work for me as a user. > > > > So > > > > for > >

Re: sudo 4.6.4 Aborted

2017-05-14 Thread Thiago Macieira
On domingo, 14 de maio de 2017 23:22:55 PDT Martin Měřinský wrote: > > we should fix the reason you run as root in the first place. > > > > > Because importing dives from DC doesn't work for me as a user. So > > > for > > > the short moment I run Subsurface as a root. > > > > > > I tried, what ma

Re: sudo 4.6.4 Aborted

2017-05-14 Thread Martin Měřinský
> we should fix the reason you run as root in the first place. > > > Because importing dives from DC doesn't work for me as a user. So > > for > > the short moment I run Subsurface as a root. > > > > I tried, what manual says, but it didn't work. > > > > sudo usermod -a -G dialout mermar > > sud

Re: sudo 4.6.4 Aborted

2017-05-14 Thread Thiago Macieira
On domingo, 14 de maio de 2017 21:52:56 PDT Dirk Hohndel wrote: > Ah, apparently this is a Qt bug that was declared not a bug at some point > (you can find quite a few threads about this), and the way to work around > it is to implement your own Logger class and exit() instead of abort() > when you

Re: sudo 4.6.4 Aborted

2017-05-14 Thread Dirk Hohndel
On Mon, May 15, 2017 at 06:43:36AM +0200, Martin Měřinský wrote: > > New info: happens only with Wayland. Under X, it requests for -- > allow_run_as_root and with this option it works. I was going to ask you about that as that's the error I get. I wonder why you don't get that under Wayland... bu

Re: sudo 4.6.4 Aborted

2017-05-14 Thread Dirk Hohndel
On Sun, May 14, 2017 at 09:43:49PM -0700, Dirk Hohndel wrote: > On Sun, May 14, 2017 at 09:32:45PM -0700, Thiago Macieira wrote: > > On domingo, 14 de maio de 2017 21:20:01 PDT Martin Měřinský wrote: > > > sudo subsurface divelog.xml > > > [sudo] password for mermar: > > > QStandardPaths: XDG_RUNTI

Re: sudo 4.6.4 Aborted

2017-05-14 Thread Dirk Hohndel
On Sun, May 14, 2017 at 09:32:45PM -0700, Thiago Macieira wrote: > On domingo, 14 de maio de 2017 21:20:01 PDT Martin Měřinský wrote: > > sudo subsurface divelog.xml > > [sudo] password for mermar: > > QStandardPaths: XDG_RUNTIME_DIR not set, defaulting to '/tmp/runtime- > > root' > > No protocol s

Re: sudo 4.6.4 Aborted

2017-05-14 Thread Martin Měřinský
On Sun, 2017-05-14 at 21:32 -0700, Thiago Macieira wrote: > On domingo, 14 de maio de 2017 21:20:01 PDT Martin Měřinský wrote: > > sudo subsurface divelog.xml > > [sudo] password for mermar: > > QStandardPaths: XDG_RUNTIME_DIR not set, defaulting to > > '/tmp/runtime- > > root' > > No protocol spec

Re: sudo 4.6.4 Aborted

2017-05-14 Thread Thiago Macieira
On domingo, 14 de maio de 2017 21:20:01 PDT Martin Měřinský wrote: > sudo subsurface divelog.xml > [sudo] password for mermar: > QStandardPaths: XDG_RUNTIME_DIR not set, defaulting to '/tmp/runtime- > root' > No protocol specified > QXcbConnection: Could not connect to display :0 > Aborted (core du

sudo 4.6.4 Aborted

2017-05-14 Thread Martin Měřinský
Hi. In Ubuntu 17.04, running Subsurface under sudo (two displays setup) makes it fail. Without sudo it seems to work. subsurface --version Subsurface v4.6.4, built with libdivecomputer v0.6.0-devel-Subsurface- branch (b04f393b97fbc5762ac21b09df8e097f205ba0ec) sudo subsurface divelog.xml  [sudo] p