Package: tootle Version: 0.2.0-1 Severity: normal Tags: patch Dear Maintainer,
Scenario: you have a web browser installed, but GLib does not know about it. (For example, elinks.) 1) You start tootle 2) enter in the instance name 3) hit connect what happens: 4) an error message comes up, "Operation not supported" and in the console (which most tootle users may not know is there) there is a error message printed. what should happen: The user should be told how to actually get the information tootle needs in order to work (ie the API key) This patch adds a error dialog box so that when you try to connect, you are told to visit a website, which gets you a API key, so you can continue using tootle. -- System Information: Debian Release: buster/sid APT prefers testing APT policy: (500, 'testing') Architecture: amd64 (x86_64) Kernel: Linux 4.18.0-2-amd64 (SMP w/2 CPU cores) Locale: LANG=en_CA.UTF-8, LC_CTYPE=en_CA.UTF-8 (charmap=UTF-8), LANGUAGE=en_CA:en (charmap=UTF-8) Shell: /bin/sh linked to /bin/dash Init: systemd (via /run/systemd/system) LSM: AppArmor: enabled Versions of packages tootle depends on: ii dconf-gsettings-backend [gsettings-backend] 0.30.1-1 ii elementary-xfce-icon-theme 0.13.1-1 ii libc6 2.27-8 ii libgdk-pixbuf2.0-0 2.38.0+dfsg-6 ii libgee-0.8-2 0.20.1-1 ii libglib2.0-0 2.58.1-2 ii libgranite5 5.2.1-1 ii libgtk-3-0 3.24.1-2 ii libjson-glib-1.0-0 1.4.4-1 ii libsoup2.4-1 2.64.1-3 tootle recommends no packages. tootle suggests no packages. -- no debconf information
tells user what they need to do next in case web browser problems --- a/src/Desktop.vala +++ b/src/Desktop.vala @@ -8,7 +8,16 @@ catch (GLib.Error e){ warning ("Can't open %s: %s", uri, e.message); app.error (_("Error"), e.message); + /* + This happens if you don't have a web browser installed where + Gtk can see it. + */ + if (e.message == "Operation not supported") + { + app.error (_("Go to the following in a web browser:\n\n"+uri),""); + } } + } // Copy a string to the clipboard