Bug#995267: devhelp doesn't load the selected content

2021-12-06 Thread Alberto Garcia
On Mon, Dec 06, 2021 at 12:45:58AM +0300, Rinat Ibragimov wrote:

> > Who registers that MIME type there ? I'm not familiar with it, it
> > looks like WebKit doesn't know about it either and treats it like
> > binary data.
> I've searched sources a bit, and found that GLib library
> has some code that creates similar xml files named
> "user-extension-%s.xml". Particular function name is
> "g_desktop_app_info_set_as_default_for_extension()"
> which is an implementation that is called by
> "g_app_info_set_as_default_for_extension()".  So any application
> that calls "g_app_info_set_as_default_for_extension()", creates such
> XML files.
> 
> For example, Firefox does that when one presses "Set as default
> browser" button.  To make it create files again, press "Make
> default..." button in the settings.  I suspect this is the way files
> were created on my machine.

I see... the problem is I don't know what application/x-extension-html
is supposed to be used for, so I'm tempted to close this as wontfix.

Berto



Bug#995267: devhelp doesn't load the selected content

2021-11-24 Thread Alberto Garcia
Control: tags -1 moreinfo

On Sat, Oct 02, 2021 at 11:46:10PM +0300, Rinat Ibragimov wrote:
> Looks like it's sufficient to remove
> ~/.local/share/mime/application/x-extension-html.xml and then to
> regenerate database:
> 
> update-mime-database ~/.local/share/mime
> 
> More information is available in bug #722279, which is very
> similar to this one. In short, libwebkit2gtk doesn't like
> "application/x-extension-html" and decides to not render such
> documents.

Who registers that MIME type there ? I'm not familiar with it, it
looks like WebKit doesn't know about it either and treats it like
binary data.

Berto



Bug#995267: Re: Bug#995267: devhelp doesn't load the selected content

2021-10-06 Thread Evangelos Ribeiro Tzaras
Hi,

On Sat, 02 Oct 2021 23:46:10 +0300 =?UTF-8?B?UmluYXQgSWJyYWdpbW92?=
 wrote:
> Looks like it's sufficient to remove
~/.local/share/mime/application/x-extension-html.xml
> and then to regenerate database:
> 
> update-mime-database ~/.local/share/mime
> 

On my system I still had some 'user-extension-*htm*.xml' files in
~/.local/share/mime/packages and updating the database would regenerate
the files under ~/.local/share/mime/applications.

After removing *those* as well and regenerating the database it started
working again.


-- 
Evangelos
PGP: B938 6554 B7DD 266B CB8E 29A9 90F0 C9B1 8A6B 4A19





signature.asc
Description: This is a digitally signed message part


Bug#995267: devhelp doesn't load the selected content

2021-10-02 Thread Rinat Ibragimov
Looks like it's sufficient to remove 
~/.local/share/mime/application/x-extension-html.xml
and then to regenerate database:

update-mime-database ~/.local/share/mime

More information is available in bug #722279, which is very similar to this 
one. In short,
libwebkit2gtk doesn't like "application/x-extension-html" and decides to not 
render such
documents.



Bug#995267: devhelp doesn't load the selected content

2021-10-01 Thread Simon McVittie
On Fri, 01 Oct 2021 at 11:39:14 +0530, crvi c wrote:
> Clearing ~/.local/share/mime seems to fix the issue.

What was in it previously?

I think ~/.local/share/mime/packages is the "source code", and
everything else is generated from those. The only files I have in
~/.local/share/mime have come from either Wine associating various
Windows-related formats with itself, or the GLib test suite using
"application/x-extension-gio-tests" to make sure this is still something
that is possible to do.

I would guess that the most likely root cause would be some sort of
misconfiguration for text/html or a related file type, which might make
devhelp misinterpret HTML files as something that it doesn't know how
to load?

smcv



Bug#995267: devhelp doesn't load the selected content

2021-10-01 Thread crvi c
Clearing ~/.local/share/mime seems to fix the issue.

Thanks!

On Wed, 29 Sept 2021 at 20:34, crvi c  wrote:

> Created a new user and devhelp works. So, I'm not sure what is stopping it
> from working for my current user.
>
> Results are the same across Xorg/Wayland.
>


Bug#995267: devhelp doesn't load the selected content

2021-09-29 Thread crvi c
Created a new user and devhelp works. So, I'm not sure what is stopping it
from working for my current user.

Results are the same across Xorg/Wayland.


Bug#995267: devhelp doesn't load the selected content

2021-09-29 Thread Simon McVittie
On Wed, 29 Sep 2021 at 17:41:33 +0530, crvi c wrote:
> (devhelp:123569): devhelp-WARNING **: 17:36:49.637: Failed to read 
> “/usr/share/
> doc/google-chrome-stable/google-chrome-stable.devhelp2”: Error opening file /
> usr/share/doc/google-chrome-stable/google-chrome-stable.devhelp2: Permission
> denied

Maybe this is causing problems for unrelated manuals? I don't know. I don't
have Chrome installed, and I don't get that warning.

I'm surprised devhelp gets EPERM reading files in /usr/share/doc that I
would have expected to be world-readable. Are the permissions on
any element of that that path more restrictive?

Or is this maybe an AppArmor proplem? (Please check the systemd journal.)

> (devhelp:123569): devhelp-WARNING **: 17:36:49.803: The file 
> 'file:///usr/share
> /gtk-doc/html/gtk-faq/gtk-faq.devhelp' uses the Devhelp index file format
> version 1, which is deprecated. A future version of Devhelp may remove the
> support for the format version 1. The index file should be ported to the
> Devhelp index file format version 2.
> (devhelp:123569): devhelp-WARNING **: 17:36:49.803: The file 
> 'file:///usr/share
> /gtk-doc/html/gtk-tutorial/gtk-tutorial.devhelp' uses the Devhelp index file
> format version 1, which is deprecated. A future version of Devhelp may remove
> the support for the format version 1. The index file should be ported to the
> Devhelp index file format version 2.
> (devhelp:123569): devhelp-WARNING **: 17:36:49.845: The file 
> 'file:///usr/share
> /gtk-doc/html/libxml2/libxml2.devhelp' uses the Devhelp index file format
> version 1, which is deprecated. A future version of Devhelp may remove the
> support for the format version 1. The index file should be ported to the
> Devhelp index file format version 2.
> 
> (WebKitWebProcess:2): dbind-WARNING **: 17:36:50.297: AT-SPI: Error retrieving
> accessibility bus address: org.freedesktop.DBus.Error.ServiceUnknown:
> org.freedesktop.DBus.Error.ServiceUnknown

Those warnings can be ignored, I get those too (and devhelp still works).

smcv



Bug#995267: devhelp doesn't load the selected content

2021-09-29 Thread crvi c
> If you run devhelp from a terminal (gnome-terminal or xterm or equivalent)
and click on one of the manuals, what messages does it produce?

Following is the log while devhelp is started.

$ devhelp

(devhelp:123569): devhelp-WARNING **: 17:36:49.637: Failed to read
“/usr/share/doc/google-chrome-stable/google-chrome-stable.devhelp2”: Error
opening file
/usr/share/doc/google-chrome-stable/google-chrome-stable.devhelp2:
Permission denied
(devhelp:123569): devhelp-WARNING **: 17:36:49.637: Failed to read
“/usr/share/doc/google-chrome-stable/google-chrome-stable.devhelp2.gz”:
Error opening file
/usr/share/doc/google-chrome-stable/google-chrome-stable.devhelp2.gz:
Permission denied
(devhelp:123569): devhelp-WARNING **: 17:36:49.637: Failed to read
“/usr/share/doc/google-chrome-stable/google-chrome-stable.devhelp”: Error
opening file
/usr/share/doc/google-chrome-stable/google-chrome-stable.devhelp:
Permission denied
(devhelp:123569): devhelp-WARNING **: 17:36:49.637: Failed to read
“/usr/share/doc/google-chrome-stable/google-chrome-stable.devhelp.gz”:
Error opening file
/usr/share/doc/google-chrome-stable/google-chrome-stable.devhelp.gz:
Permission denied
(devhelp:123569): devhelp-WARNING **: 17:36:49.803: The file
'file:///usr/share/gtk-doc/html/gtk-faq/gtk-faq.devhelp' uses the Devhelp
index file format version 1, which is deprecated. A future version of
Devhelp may remove the support for the format version 1. The index file
should be ported to the Devhelp index file format version 2.
(devhelp:123569): devhelp-WARNING **: 17:36:49.803: The file
'file:///usr/share/gtk-doc/html/gtk-tutorial/gtk-tutorial.devhelp' uses the
Devhelp index file format version 1, which is deprecated. A future version
of Devhelp may remove the support for the format version 1. The index file
should be ported to the Devhelp index file format version 2.
(devhelp:123569): devhelp-WARNING **: 17:36:49.845: The file
'file:///usr/share/gtk-doc/html/libxml2/libxml2.devhelp' uses the Devhelp
index file format version 1, which is deprecated. A future version of
Devhelp may remove the support for the format version 1. The index file
should be ported to the Devhelp index file format version 2.

(WebKitWebProcess:2): dbind-WARNING **: 17:36:50.297: AT-SPI: Error
retrieving accessibility bus address:
org.freedesktop.DBus.Error.ServiceUnknown:
org.freedesktop.DBus.Error.ServiceUnknown


On Wed, 29 Sept 2021 at 14:29, Simon McVittie  wrote:

> Control: tags -1 + moreinfo
>
> On Tue, 28 Sep 2021 at 23:35:13 +0530, crvi wrote:
> > Opening devhelp succeeds, but the content is not getting loaded in the
> right
> > side pane.
>
> This is working fine for me, with the same package versions and even
> the same locale that you report, so there must be more to it than that -
> perhaps some configuration or system difference that is making this work
> for me but not for you.
>
> Over in Ubuntu, Jeremy sees this problem but Sebastien Bacher does not,
> so again there's probably some system configuration difference that
> triggers this.
>
> If you run devhelp from a terminal (gnome-terminal or xterm or equivalent)
> and click on one of the manuals, what messages does it produce?
>
> Is anything logged in the systemd journal when this happens?
>
> smcv
>


Bug#995267: devhelp doesn't load the selected content

2021-09-29 Thread Simon McVittie
Control: tags -1 + moreinfo

On Tue, 28 Sep 2021 at 23:35:13 +0530, crvi wrote:
> Opening devhelp succeeds, but the content is not getting loaded in the right
> side pane.

This is working fine for me, with the same package versions and even
the same locale that you report, so there must be more to it than that -
perhaps some configuration or system difference that is making this work
for me but not for you.

Over in Ubuntu, Jeremy sees this problem but Sebastien Bacher does not,
so again there's probably some system configuration difference that
triggers this.

If you run devhelp from a terminal (gnome-terminal or xterm or equivalent)
and click on one of the manuals, what messages does it produce?

Is anything logged in the systemd journal when this happens?

smcv



Bug#995267: devhelp doesn't load the selected content

2021-09-28 Thread Jeremy Bicha
Control: reassign -1 webkit2gtk 2.33.3-1
Control: affects devhelp

On Tue, Sep 28, 2021 at 2:09 PM crvi  wrote:
> Opening devhelp succeeds, but the content is not getting loaded in the right
> side pane.

Yes, I reported a similar issue on Ubuntu, but hadn't gotten around to
testing on Debian yet. Ubuntu's webkit2gtk packaging has diverged a
bit so I didn't know whether Debian was affected too. Let's reassign
to webkit2gtk.

https://launchpad.net/bugs/1942951

Thanks,
Jeremy Bicha



Bug#995267: devhelp doesn't load the selected content

2021-09-28 Thread crvi
Package: devhelp
Version: 41.1-1
Severity: important
X-Debbugs-Cc: crvi...@gmail.com

Dear Maintainer,

Opening devhelp succeeds, but the content is not getting loaded in the right
side pane.

Attached a screenshot of the issue.

Thanks!

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

Kernel: Linux 5.14.0-1-amd64 (SMP w/4 CPU threads)
Kernel taint flags: TAINT_PROPRIETARY_MODULE, TAINT_OOT_MODULE,
TAINT_UNSIGNED_MODULE
Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.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 devhelp depends on:
ii  libc6 2.32-4
ii  libdevhelp-3-641.1-1
ii  libglib2.0-0  2.70.0-1+b1
ii  libgtk-3-03.24.30-3
ii  libpango-1.0-01.48.10+ds1-1
ii  libwebkit2gtk-4.0-37  2.34.0-1
ii  python3   3.9.2-3

Versions of packages devhelp recommends:
ii  libglib2.0-doc   2.70.0-1
ii  libgtk-3-doc 3.24.30-3
ii  libpango1.0-doc  1.48.10+ds1-1

devhelp suggests no packages.