You are not logged in.

#1 2022-08-13 14:55:05

duyinthee
Member
Registered: 2015-06-14
Posts: 242
Website

[SOLVED] evince is slow to open at first time

Hi all,
I am using ./xinitrc to start xsessions. My .xinitrc file is copied from default /etc/X11/xinit/xinitrc file.

#!/bin/sh

userresources=$HOME/.Xresources
usermodmap=$HOME/.Xmodmap
sysresources=/etc/X11/xinit/.Xresources
sysmodmap=/etc/X11/xinit/.Xmodmap

# merge in defaults and keymaps

if [ -f $sysresources ]; then
    xrdb -merge $sysresources
fi

if [ -f $sysmodmap ]; then
    xmodmap $sysmodmap
fi

if [ -f "$userresources" ]; then
    xrdb -merge "$userresources"
fi

if [ -f "$usermodmap" ]; then
    xmodmap "$usermodmap"
fi

if [ -d /etc/X11/xinit/xinitrc.d ] ; then
 for f in /etc/X11/xinit/xinitrc.d/?*.sh ; do
  [ -x "$f" ] && . "$f"
 done
 unset f
fi

# exec awesome
exec dwm

If I open evince in dwm or awesome just after bootup, it takes very long time to open. After that first, evince is ok and fast to open.

$ strace evince myfile.pdf

shows that it is taking long time here at

poll([{fd=10, events=POLLIN}], 1, 25000) = 1 ([{fd=10, revents=POLLIN}])
read(10, "\1\0\0\0\0\0\0\0", 16)        = 8
poll([{fd=10, events=POLLIN}], 1, 25000

I found this https://bbs.archlinux.org/viewtopic.php?id=239331
But the issue I am experiencing is not like that, I think.

If I open evince in sway, it is normal, fast to open.

Is there anyone having that issue?
Thanks all...

Last edited by duyinthee (2022-08-16 00:50:44)

Offline

#2 2022-08-13 19:47:43

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 76,234

Re: [SOLVED] evince is slow to open at first time

w/o context and knowing what fd 10 actually is, this is pretty useless.
Wild guess:

pacman -Qs 'flatpak|portal'

Offline

#3 2022-08-14 01:38:03

duyinthee
Member
Registered: 2015-06-14
Posts: 242
Website

Re: [SOLVED] evince is slow to open at first time

I don't have flatpak installed but portal.

$ pacman -Qs 'flatpak|portal'
local/xdg-desktop-portal 1.14.6-1
    Desktop integration portals for sandboxed apps
local/xdg-desktop-portal-wlr 0.6.0-1
    xdg-desktop-portal backend for wlroots
$ pacman -Qi xdg-desktop-portal
Name            : xdg-desktop-portal
Version         : 1.14.6-1
Description     : Desktop integration portals for sandboxed apps
Architecture    : x86_64
URL             : https://github.com/flatpak/xdg-desktop-portal
Licenses        : LGPL
Groups          : None
Provides        : None
Depends On      : glib2  pipewire  fuse3  geoclue2  rtkit  systemd
                  xdg-desktop-portal-impl
Optional Deps   : None
Required By     : xdg-desktop-portal-wlr
Optional For    : firefox  flameshot
Conflicts With  : None
Replaces        : None
Installed Size  : 1941.54 KiB
Packager        : Jan Alexander Steffens (heftig) <heftig@archlinux.org>
Build Date      : Tue 02 Aug 2022 10:03:27 PM +0630
Install Date    : Wed 03 Aug 2022 10:10:07 AM +0630
Install Reason  : Installed as a dependency for another package
Install Script  : No
Validated By    : Signature

and

$ pacman -Qi xdg-desktop-portal-wlr
Name            : xdg-desktop-portal-wlr
Version         : 0.6.0-1
Description     : xdg-desktop-portal backend for wlroots
Architecture    : x86_64
URL             : https://github.com/emersion/xdg-desktop-portal-wlr
Licenses        : MIT
Groups          : None
Provides        : xdg-desktop-portal-impl
Depends On      : xdg-desktop-portal  pipewire  pipewire-session-manager
                  libinih
Optional Deps   : slurp: to choose which output to screencast using slurp
                  [installed]
                  wofi: to choose which output to screencast using wofi
                  [installed]
                  bemenu: to choose which output to screencast using bemenu
                  [installed]
Required By     : xdg-desktop-portal
Optional For    : None
Conflicts With  : None
Replaces        : None
Installed Size  : 101.62 KiB
Packager        : Christian Rebischke <Chris.Rebischke@archlinux.org>
Build Date      : Sat 11 Jun 2022 11:29:35 PM +0630
Install Date    : Sat 02 Jul 2022 04:01:46 PM +0630
Install Reason  : Explicitly installed
Install Script  : No
Validated By    : Signature

Should I remove them?

Actually, the way I am using is not so clean because I use sway, dwm and awesome. So, back and forth Wayland and X11.

Offline

#4 2022-08-14 06:13:11

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 76,234

Re: [SOLVED] evince is slow to open at first time

Should I remove them?

Yup.

Offline

#5 2022-08-16 00:49:56

duyinthee
Member
Registered: 2015-06-14
Posts: 242
Website

Re: [SOLVED] evince is slow to open at first time

Yeah, removing those packages solved the problem.

Offline

#6 2023-06-13 09:54:31

curlywei
Member
Registered: 2022-05-30
Posts: 10

Re: [SOLVED] evince is slow to open at first time

I also encounter this problem in this days.
My desktop environment is Cinnamon.

So, these packages:

* xdg-desktop-portal-xapp
* xdg-desktop-portal-gtk
* xdg-desktop-portal
* libportal-gtk3
* libportal

are necessary dependencies for Cinnamon.

Finally, I discover `xdg-desktop-portal-gnome` is not necessary, so I remove it.

This problem is solved for me.

Last edited by curlywei (2023-06-13 09:56:41)

Offline

#7 2023-06-13 11:09:40

2ManyDogs
Forum Fellow
Registered: 2012-01-15
Posts: 4,648

Re: [SOLVED] evince is slow to open at first time

Closing this old solved topic.

Offline

Board footer

Powered by FluxBB