hellosiyan / Viewnior

Elegant Image Viewer
https://siyanpanayotov.com/project/viewnior/
GNU General Public License v3.0
319 stars 55 forks source link

Can't click on link in About #126

Closed jidanni closed 1 year ago

jidanni commented 1 year ago

Clicking on your website link causes Operation not supported. 20230118T164238 Viewnior 1.6

manungsa commented 1 year ago

After searching for some time, I found some old website and forum with (I think) related problem, so basically you need to install gvfs package. Do you have installed it? If it has been installed, I don't know more (I'm not pro at this).

Source:

jidanni commented 1 year ago

Well that is marvelous... One has to install a new big architecture, just to make a hyperlink work. What will they think up next. https://gitlab.gnome.org/Infrastructure/Infrastructure/-/issues/1016 https://en.wikipedia.org/wiki/Talk:GVfs

manungsa commented 1 year ago

Does installing gvfs solved your problem? Just to make sure.

ncmprhnsbl commented 1 year ago

fwiw, with 1.7 on arch, it works without gvfs. just guessing, but this sort of thing generally/often uses xdg-open, part of the xdg-utils package. see also: xdg-settings and xdg-mime.. ...maybe

jidanni commented 1 year ago

All I know is in Debian Sid,

Package: viewnior
Version: 1.6-1+b3
Versions of packages viewnior depends on:
ii  libc6                2.36-8
ii  libexiv2-27          0.27.6-1
ii  libgcc-s1            12.2.0-14
ii  libgdk-pixbuf-2.0-0  2.42.10+dfsg-1+b1
ii  libglib2.0-0         2.74.6-1
ii  libgtk2.0-0          2.24.33-2
ii  libstdc++6           12.2.0-14
viewnior recommends no packages.
viewnior suggests no packages.

I really am not in the mood to add new filesystem stuff to my computer to test this out.

jidanni commented 1 year ago
$ aptitude search ~i~nxdg
i   xdg-utils

So that's the only xdg package I have installed. Anyway, perhaps the Debian viewnior package is missing a dependency.

ncmprhnsbl commented 1 year ago

yes, they're all in the xdg-utils package suggestions: $ xdg-settings --list

$ xdg-settings get default-web-browser

$ xdg-settings set default-web-browser (some web browser).desktop

$man xdg-settings (for more)

jidanni commented 1 year ago
$ xdg-settings --list
Known properties:
  default-url-scheme-handler    Default handler for URL scheme
  default-web-browser           Default web browser
$ xdg-settings get default-web-browser
firefox.desktop
$ firefox --version
Mozilla Firefox 111.0.1

What am I doing wrong?

ncmprhnsbl commented 1 year ago

looks like the xdg thing isn't it. on another setup(void) also without gvfs, it seems to favour x-scheme-handler/http=(some-browser.desktop) set in /usr/share/applications/mimeinfo.cache (update-desktop-database generates this) looking at viewnior source suggests that the whole 'about' dialog relies on internal gtk stuff to handle this, so a question might be: does the about dialog in other gtk apps work correctly for you? unless something's changed in viewnior regarding this between 1.6 and 1.8..

jidanni commented 1 year ago

OK, I found some other GTK packages on my system,

set viewnior
aptitude show $@|grep --color gtk
set libgtk2.0-0
aptitude -s purge $@

And indeed, 20230404T160806 20230404T160922

https://gitlab.gnome.org/GNOME/gimp/-/issues/2257 https://oldforum.puppylinux.com/viewtopic.php?p=607244#p607244

jidanni commented 1 year ago
strace viewnior 2> /tmp/ddd
$ perl -nwle 'next unless /mime/i; next if m!/icons/!;  @F=split /"/; print $F[1];' /tmp/ddd|sort -u
/etc/xdg/mimeapps.list
/home/jidanni/.config/mimeapps.list
/home/jidanni/.local/share/applications/mimeapps.list
/home/jidanni/.local/share/applications/mimeinfo.cache
/home/jidanni/.local/share/mime//aliases
/home/jidanni/.local/share/mime//generic-icons
/home/jidanni/.local/share/mime//globs
/home/jidanni/.local/share/mime//globs2
/home/jidanni/.local/share/mime//icons
/home/jidanni/.local/share/mime//magic
/home/jidanni/.local/share/mime//mime.cache
/home/jidanni/.local/share/mime//subclasses
/usr/local/share//mime//aliases
/usr/local/share//mime//generic-icons
/usr/local/share//mime//globs
/usr/local/share//mime//globs2
/usr/local/share//mime//icons
/usr/local/share//mime//magic
/usr/local/share//mime//mime.cache
/usr/local/share//mime//subclasses
/usr/local/share/applications/mimeapps.list
/usr/local/share/applications/mimeinfo.cache
/usr/share//mime//mime.cache
/usr/share/applications/mimeapps.list
/usr/share/applications/mimeinfo.cache
[MIME Cache]

Gee, so many "//" !

$ locate -i mime
/etc/magic.mime
/etc/mime.types
/home/jidanni/.config/mimeapps.list
jidanni commented 1 year ago
cat /home/jidanni/.config/mimeapps.list
[Default Applications]
x-scheme-handler/http=chromium.desktop
x-scheme-handler/https=chromium.desktop
text/html=chromium.desktop
jidanni commented 1 year ago

OK, I updated it to

[Default Applications]
text/html=google-chrome-unstable.desktop
x-scheme-handler/https=google-chrome-unstable.desktop
x-scheme-handler/http=google-chrome-unstable.desktop
x-scheme-handler/webcal=google-chrome-unstable.desktop

And... it works. So I'll close this bug.

But I would just like to comment,

that 
      this
           whole
                  thing
takes
       several
               Ph. D's
                     to debug,
because,
            well,
                 whatever is to blame also takes many Ph. D's to figure out.
jidanni commented 1 year ago

Can someone do me a favor?

Can someone report a bug to the parties who create the "Could not show link Operation not supported" message seen on many programs.

And tell them to add some words saying why.

They could say "check your mimetypes files, Gramps" or something.

At least then we would have a more precise search string to Google with to find other people in the same predicament.

jidanni commented 1 year ago

Never mind, I'll just put it into https://unix.stackexchange.com/questions/742104/how-to-fix-could-not-show-link-operation-not-supported