Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.bugs.dist > #1017541

Bug#964846: reportbug-gtk: mua xdg-email: does not work with the GTK UI

From Paul Wise <pabs@debian.org>
Newsgroups linux.debian.bugs.dist
Subject Bug#964846: reportbug-gtk: mua xdg-email: does not work with the GTK UI
Date 2020-07-11 11:40 +0200
Message-ID <Ark9b-4Ll-11@gated-at.bofh.it> (permalink)
References <ArcOl-7oh-1@gated-at.bofh.it> <ArcOl-7oh-1@gated-at.bofh.it> <AriK5-421-3@gated-at.bofh.it> <ArcOl-7oh-1@gated-at.bofh.it> <AriK5-421-3@gated-at.bofh.it>
Organization Debian

Show all headers | View raw


[Multipart message — attachments visible in raw view] - view raw

On Sat, 2020-07-11 at 09:54 +0200, Nis Martensen wrote:

> Could you please test this with xdg-email and mailto URIs on the command
> line to narrow down the problem and file a bug with your desktop
> environment's mailto handling tool?

xdg-email works fine and xdg-open mailto: also, both in a terminal and
from the non-terminal-based GNOME command running dialog (Alt+F2). 

They also work with the reportbug text/urwid UIs, the issue only occurs
with the reportbug GTK UI for some reason.

If I add some debugging to the SystemPage execute function from the
gtk_ui.py file to print the xdg-email command that is run under a VTE
terminal. I then copied the command into a GNOME Terminal and it ran
there just fine. I then commented out the self.terminal.spawn_sync call
and the black screen in the reportbug UI stayed around instead of
closing immediately. Then I tested subprocess.run() instead of Vte
spawn_sync and it worked. Then I tested the mutt reportbug option and
it worked fine. Then I tested setting the reportbug mua option to the
evolution MUA (which xdg-email opens normally) and it worked fine. Then
I hacked the code to append "; sleep inf" to the command being run and
xdg-email worked fine. Then I tried "; sleep 0.1s" and it did not work.
0.5s does not work but 0.9s does work. So I think there is some sort of
race condition within VTE or something.

BTW, I think the GTK UI should not be running the MUAs under a VTE
terminal unless the MUA is marked as needing a terminal. Same for any
other commands it runs under a VTE terminal. For xdg-email probably
most of the commands that runs don't need a terminal.

BTW, I think that reportbug shouldn't be running commands via the shell
and definitely shouldn't be using bash even if shell really is needed.

BTW, while debugging I saw this deprecation warning:

<stdin>:1: DeprecationWarning: Vte.Terminal.spawn_sync is deprecated
https://developer.gnome.org/vte/unstable/VteTerminal.html#vte-terminal-spawn-sync

-- 
bye,
pabs

https://wiki.debian.org/PaulWise

Back to linux.debian.bugs.dist | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

Bug#964846: reportbug-gtk: mua xdg-email: does not work with the GTK UI Paul Wise <pabs@debian.org> - 2020-07-11 03:50 +0200
  Bug#964846: reportbug-gtk: mua xdg-email: does not work with the GTK UI Nis Martensen <nis.martensen@web.de> - 2020-07-11 10:10 +0200
    Bug#964846: reportbug-gtk: mua xdg-email: does not work with the GTK UI Paul Wise <pabs@debian.org> - 2020-07-11 11:40 +0200
      Bug#964846: reportbug-gtk: mua xdg-email: does not work with the GTK UI Nis Martensen <nis.martensen@web.de> - 2020-07-11 12:40 +0200
        Bug#964846: reportbug-gtk: mua xdg-email: does not work with the GTK UI Simon McVittie <smcv@debian.org> - 2020-07-11 19:30 +0200
          Bug#964846: reportbug-gtk: mua xdg-email: does not work with the GTK UI Paul Wise <pabs@debian.org> - 2020-07-12 02:50 +0200
            Bug#964846: reportbug-gtk: mua xdg-email: does not work with the GTK UI Nis Martensen <nis.martensen@web.de> - 2020-07-12 10:20 +0200
            Bug#964846: reportbug-gtk: mua xdg-email: does not work with the GTK UI Simon McVittie <smcv@debian.org> - 2020-07-12 21:30 +0200
      Re: reportbug-gtk: mua xdg-email: does not work with the GTK UI Nis Martensen <nis.martensen@web.de> - 2020-07-13 01:20 +0200

csiph-web