Bug#1006323: eom: cannot open two windows on two different X displays

2022-02-24 Thread Francesco Potortì
 Package: eom
 Version: 1.26.0-1
 Severity: normal
 X-Debbugs-Cc: none, Francesco Potortì 

 I have eom woth a window opened on display :7

 If I call it on display :0 it just exits without messages.

 Killing it on display :7 fixes the problem.

 This is what I get on ~/.xsession-errors:

 Window manager warning: Buggy client sent a _NET_ACTIVE_WINDOW
 message with a timestamp of 0 for 0x527 (Eye of MAT)
 Window manager warning: meta_window_activate called by a pager with
 a 0 timestamp; the pager needs to be fixed.

>>>
>>> Please try "dbus-run-session eom" on your second $DISPLAY. This is a
>>> DBus session specific feature added with Debian 9 or 10.
>>
>> Sort of works.  I am using Xpra remotely on display :7.  Emacs is  
>> running on the server on :0.  I create an Emacs frame on display :7  
>> so that I can access it from home.  An Eom process is running on :0.  
>>  From the Emacs frame on :7 I call eom and it exits without  
>> messages.  Then I call dbus-run-session eom and it spits the  
>> following:
>>
>> [...]
>
>I'd rather recommend starting Emacs on :7 with dbus-run-session. In  
>fact, Xpra should be bright enough to handle this for you.

In fact, I start Emacs on the server with Screen runing on a virtual terminal 
on :0.  Then, from there, I create a frame on the server display :0 and one 
more on the Xpra display :7.  I then work on the server, both on a virtual 
terminal and on display :0  when I am at the office and Screen and Xpra over 
ssh when I am out of office.

I think it is already awfully complex as is, and launching Emacs from :7 would 
expose my long-running Emacs process to one more layer of software (Xpra) with 
possible instabilities.

I often run programs from inside Emacs and launch them without worrying where 
from, like Libreoffice, Gnumeric, Inkscape, Atril, and not one of them has had 
problems (until now, at least) with having windows on both :0 and :7 displays.

As far as I can tell, Eom requiring a specific trick to obtain seamless 
behaviour should be seen as a regression.

Even if there was a good reason to forcing the user to use the dbus trick, I 
think that the delay and the warning messages that I observed shouldn't be seen 
as normal.



Bug#1006323: eom: cannot open two windows on two different X displays

2022-02-24 Thread Francesco Potortì
>> Package: eom
>> Version: 1.26.0-1
>> Severity: normal
>> X-Debbugs-Cc: none, Francesco Potortì 
>>
>> I have eom woth a window opened on display :7
>>
>> If I call it on display :0 it just exits without messages.
>>
>> Killing it on display :7 fixes the problem.
>>
>> This is what I get on ~/.xsession-errors:
>>
>> Window manager warning: Buggy client sent a _NET_ACTIVE_WINDOW  
>> message with a timestamp of 0 for 0x527 (Eye of MAT)
>> Window manager warning: meta_window_activate called by a pager with  
>> a 0 timestamp; the pager needs to be fixed.
>>
>
>Please try "dbus-run-session eom" on your second $DISPLAY. This is a  
>DBus session specific feature added with Debian 9 or 10.

Sort of works.  I am using Xpra remotely on display :7.  Emacs is running on 
the server on :0.  I create an Emacs frame on display :7 so that I can access 
it from home.  An Eom process is running on :0.  From the Emacs frame on :7 I 
call eom and it exits without messages.  Then I call dbus-run-session eom and 
it spits the following:

dbus-daemon[2348073]: [session uid=1000 pid=2348073] Activating service 
name='org.gtk.vfs.Daemon' requested by ':1.0' (uid=1000 pid=2348074 comm="eom 
The competition Venue.png ")
dbus-daemon[2348078]: writing oom_score_adj error: Permission denied
dbus-daemon[2348073]: [session uid=1000 pid=2348073] Successfully activated 
service 'org.gtk.vfs.Daemon'
fusermount3: failed to access mountpoint /run/user/1000/gvfs: Permission denied

(eom:2348074): dbind-WARNING **: 16:22:43.518: Couldn't connect to 
accessibility bus: Failed to connect to socket /tmp/dbus-FzQejMAbpw: No such 
file or directory
dbus-daemon[2348073]: [session uid=1000 pid=2348073] Activating service 
name='org.freedesktop.portal.Desktop' requested by ':1.0' (uid=1000 pid=2348074 
comm="eom The competition Venue.png ")
dbus-daemon[2348089]: writing oom_score_adj error: Permission denied
dbus-daemon[2348073]: [session uid=1000 pid=2348073] Activating service 
name='org.freedesktop.portal.Documents' requested by ':1.2' (uid=1000 
pid=2348089 comm="/usr/libexec/xdg-desktop-portal ")
dbus-daemon[2348094]: writing oom_score_adj error: Permission denied
dbus-daemon[2348073]: [session uid=1000 pid=2348073] Activating service 
name='org.freedesktop.impl.portal.PermissionStore' requested by ':1.3' 
(uid=1000 pid=2348094 comm="/usr/libexec/xdg-document-portal ")
dbus-daemon[2348098]: writing oom_score_adj error: Permission denied
dbus-daemon[2348073]: [session uid=1000 pid=2348073] Successfully activated 
service 'org.freedesktop.impl.portal.PermissionStore'
dbus-daemon[2348073]: [session uid=1000 pid=2348073] Successfully activated 
service 'org.freedesktop.portal.Documents'
fuse: mountpoint is not empty
fuse: if you are sure this is safe, use the 'nonempty' mount option
error: fuse init failed: Can't mount fuse fs on /run/user/1000/doc: File exists
dbus-daemon[2348073]: [session uid=1000 pid=2348073] Activating service 
name='org.freedesktop.portal.Documents' requested by ':1.2' (uid=1000 
pid=2348089 comm="/usr/libexec/xdg-desktop-portal ")
dbus-daemon[2348104]: writing oom_score_adj error: Permission denied
dbus-daemon[2348073]: [session uid=1000 pid=2348073] Successfully activated 
service 'org.freedesktop.portal.Documents'
fuse: mountpoint is not empty
fuse: if you are sure this is safe, use the 'nonempty' mount option
error: fuse init failed: Can't mount fuse fs on /run/user/1000/doc: File exists
dbus-daemon[2348073]: [session uid=1000 pid=2348073] Activating service 
name='org.freedesktop.impl.portal.desktop.gtk' requested by ':1.2' (uid=1000 
pid=2348089 comm="/usr/libexec/xdg-desktop-portal ")
dbus-daemon[2348109]: writing oom_score_adj error: Permission denied

(xdg-desktop-portal-gtk:2348109): dbind-WARNING **: 16:22:43.679: Couldn't 
connect to accessibility bus: Failed to connect to socket /tmp/dbus-FzQejMAbpw: 
No such file or directory
dbus-daemon[2348073]: [session uid=1000 pid=2348073] Successfully activated 
service 'org.freedesktop.impl.portal.desktop.gtk'
dbus-daemon[2348073]: [session uid=1000 pid=2348073] Activating service 
name='org.freedesktop.secrets' requested by ':1.2' (uid=1000 pid=2348089 
comm="/usr/libexec/xdg-desktop-portal ")
dbus-daemon[2348118]: writing oom_score_adj error: Permission denied

Then, after maybe 20 seconds, the Eom window appears and the following further 
messages are written:

dbus-daemon[2348073]: [session uid=1000 pid=2348073] Activated service 
'org.freedesktop.secrets' failed: Process org.freedesktop.secrets received 
signal 15

** (/usr/libexec/xdg-desktop-portal:2348089): WARNING **: 16:23:01.492: Failed 
to create secret proxy: Error calling StartServiceByName for 
org.freedesktop.secrets: Process org.freedesktop.secrets received signal 15

** (/usr/libexec/xdg-desktop-portal:2348089): WARNING **: 16:23:01.492: No 
skeleton to export
dbus-daemon[2348073]: [session uid=1000 pid=2348073] Successfully activated 
service 'org.freedesktop.portal.Desktop'
dbus-daemon[2348073]: 

Bug#1006323: eom: cannot open two windows on two different X displays

2022-02-23 Thread Francesco Potortì
Package: eom
Version: 1.26.0-1
Severity: normal
X-Debbugs-Cc: none, Francesco Potortì 

I have eom woth a window opened on display :7

If I call it on display :0 it just exits without messages.

Killing it on display :7 fixes the problem.

This is what I get on ~/.xsession-errors:

Window manager warning: Buggy client sent a _NET_ACTIVE_WINDOW message with a 
timestamp of 0 for 0x527 (Eye of MAT)
Window manager warning: meta_window_activate called by a pager with a 0 
timestamp; the pager needs to be fixed.


-- System Information:
Debian Release: bookworm/sid
  APT prefers testing
  APT policy: (990, 'testing'), (101, 'unstable')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 5.15.0-3-amd64 (SMP w/4 CPU threads)
Kernel taint flags: TAINT_PROPRIETARY_MODULE, TAINT_WARN, TAINT_OOT_MODULE, 
TAINT_UNSIGNED_MODULE
Locale: LANG=C.UTF-8, LC_CTYPE=it_IT.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages eom depends on:
ii  dconf-gsettings-backend [gsettings-backend]  0.40.0-3
ii  eom-common   1.26.0-1
ii  gir1.2-eom-1.0   1.26.0-1
ii  libatk1.0-0  2.36.0-3
ii  libc62.33-6
ii  libcairo21.16.0-5
ii  libexempi8   2.5.2-1
ii  libexif120.6.24-1
ii  libgdk-pixbuf-2.0-0  2.42.6+dfsg-2
ii  libgirepository-1.0-11.70.0-3
ii  libgl1   1.4.0-1
ii  libgl1-mesa-glx  21.2.6-1
ii  libglib2.0-0 2.70.4-1
ii  libgtk-3-0   3.24.31-1
ii  libjpeg62-turbo  1:2.1.2-1
ii  liblcms2-2   2.12~rc1-2
ii  libmate-desktop-2-17 1.26.0-1
ii  libpeas-1.0-01.30.0-4
ii  librsvg2-2   2.52.5+dfsg-3+b1
ii  librsvg2-common  2.52.5+dfsg-3+b1
ii  libx11-6 2:1.7.2-2+b1
ii  libxml2  2.9.12+dfsg-6
ii  mate-desktop-common  1.26.0-1
ii  shared-mime-info 2.1-2
ii  zlib1g   1:1.2.11.dfsg-2

eom recommends no packages.

eom suggests no packages.

-- no debconf information