Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 715228 - app-text/evince cannot open remote documents when used in conjunction with gui-wm/sway
Summary: app-text/evince cannot open remote documents when used in conjunction with gu...
Status: RESOLVED OBSOLETE
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Linux Gnome Desktop Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-03-29 07:45 UTC by Horea Christian
Modified: 2022-04-11 20:14 UTC (History)
4 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Horea Christian 2020-03-29 07:45:11 UTC
I am trying to open a remote file with evince, using `evince https://chymera.eu/articles/ofmhost_drlfom.pdf`. The window opens, but claims it cannot open the temp file. the temp file is indeed being created and has the correct permissions, but size zero. On systems on which evince works as expected, the file gets created with he same permissions but with with nonzero size. 

This only happens on a system using sway, but cannot be reproduce on other distributions, such as Arch Linux: https://github.com/swaywm/sway/issues/5147#issuecomment-604842434

Upstream Evince also has no idea why this may be happening: https://gitlab.gnome.org/GNOME/evince/-/issues/1358

The issue happens with both =app-text/evince-3.32.1 and =app-text/evince-3.34.2

All USE flags present on the syste on which it works are also present on the system on which it doesn't:

```
[I] app-text/evince
     Available versions:  3.32.1(0/evd3.4-evv3.3) (~)3.34.2(0/evd3.4-evv3.3) {djvu dvi gnome gnome-keyring gstreamer +introspection nautilus nsplugin postscript spell t1lib tiff xps}
     Installed versions:  3.34.2(0/evd3.4-evv3.3)(03:27:33 AM 03/29/2020)(gnome gnome-keyring gstreamer introspection nautilus spell tiff -djvu -dvi -nsplugin -postscript -t1lib -xps)
     Homepage:            https://wiki.gnome.org/Apps/Evince
     Description:         Simple document viewer for GNOME
```
Comment 1 Matthew Thode ( prometheanfire ) archtester Gentoo Infrastructure gentoo-dev Security 2020-03-29 18:04:25 UTC
I can't reproduce this, I'm running sway-1.4 with wlroots 0.10.0.

I installed the following version of evince.

app-text/evince-3.34.2:0/evd3.4-evv3.3::gentoo  USE="introspection nsplugin tiff -djvu -dvi -gnome -gnome-keyring -gstreamer -nautilus -postscript -spell -t1lib -xps"

This is what I have in my bashrc though, it may help you.

  # general
  export MESA_LOADER_DRIVER_OVERRIDE=iris
  export LIBVA_DRIVER_NAME=iHD
  export BEMENU_BACKEND=wayland
  export XDG_CURRENT_DESKTOP=Unity
  # java
  export _JAVA_AWT_WM_NONREPARENTING=1
  # sdl
  export SDL_VIDEODRIVER=wayland
  # gtk
  #export GDK_BACKEND=wayland,x11  # not needed with modern gdk
  export MOZ_ENABLE_WAYLAND=1
  export CLUTTER_BACKEND=wayland
  # terminal emulator
  export KITTY_ENABLE_WAYLAND=1
  # QT
  export QT_QPA_PLATFORM=wayland-egl
  export QT_WAYLAND_DISABLE_WINDOWDECORATION=1 # Qt adds titlebars under Wayland, this gets rid of them
  # broken apps
  alias spotify='GDK_BACKEND=x11 spotify'
  alias google-chrome-unstable='GDK_BACKEND=x11 google-chrome-unstable'
Comment 2 Horea Christian 2022-04-11 20:14:24 UTC
In the mean time I sadly gave up on evince in favour of zathura, but it seems to have been solved. Not sure if the fix was via sway or evince, but I have newer versions of both now:

```
chymera@decohost ~ $ eix -e sway
[I] gui-wm/sway
     Available versions:  1.7 **9999*l {X +man +swaybar +swaybg +swayidle +swaylock +swaymsg +swaynag tray wallpapers}
     Installed versions:  1.7(22:49:34 23/03/22)(X man swaybar swaybg swayidle swaylock swaymsg swaynag -tray -wallpapers)
     Homepage:            https://swaywm.org
     Description:         i3-compatible Wayland window manager

chymera@decohost ~ $ eix evince
[I] app-text/evince
     Available versions:  41.3(0/evd3.4-evv3.3) (~)42.1(0/evd3.4-evv3.3) {cups djvu dvi gnome gnome-keyring gstreamer gtk-doc +introspection nautilus postscript spell t1lib tiff xps}
     Installed versions:  42.1(0/evd3.4-evv3.3)(16:12:22 11/04/22)(cups introspection spell tiff -djvu -dvi -gnome -gnome-keyring -gstreamer -gtk-doc -nautilus -postscript -xps)
     Homepage:            https://wiki.gnome.org/Apps/Evince
     Description:         Simple document viewer for GNOME
```