You are not logged in.

#1 2023-07-16 20:12:30

itouni
Member
Registered: 2023-03-23
Posts: 2

[SOLVED] A few programs are long to startup

Hi,

since a few days a few months/weeks I have a few programs (e.g Thunderbird, blueman gui) that are long to startup (about 25 seconds).
According to what I read on some posts, especially this one, it might come from the way I start i3.
Indeed, as I said above I counted it and there is a delay of 25 seconds, which corresponds to the dbus timeout quoted in the thread.

I have also logged out the command journalctl -b | curl -F 'file=@-' 0x0.st and it appears that I have the same problem with flatpak/portal service failure/timing out...

So I checked the solution which was about broken xinitrc and here is my .xinitrc which is an exact same copy of my /etc/X11/xinit/xinirc, except for the 2 last lines (where I have added the execution of i3).
~/.xinitrc:

#!/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

# start some nice programs

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

twm &
xclock -geometry 50x50-1+1 &
xterm -geometry 80x50+494+51 &
xterm -geometry 80x20+494-0 &
xterm -geometry 80x66+0+0 -name login &
exec i3

and my /etc/X11/xinit/xinitrc:

#!/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

# start some nice programs

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

twm &
xclock -geometry 50x50-1+1 &
xterm -geometry 80x50+494+51 &
xterm -geometry 80x20+494-0 &
exec xterm -geometry 80x66+0+0 -name login

I think I followed what I've been said regarding the xinitrc part especially the note about the if and exec..

Some context:
This bug started to happen out of nowhere (I reboot my compuler on a very rare basis so it might have popped out after an update but I don't know which one...) and i never touched voluntarily my xinitrc (located in /etc/X11/xinit/) because before looking at the posts (including the one quoted above) I even had no ~/.xinitrc...
I only created it today in order to try to fix the issue.

One question that also still remains and saw in the posts is: how my i3 is launched if it wasn't in my .xinitrc (that even didn't have..)?
Well, if you know a way to find out, I'm all hear..

I installed my arch via the archinstall command (if it can give any clue...)

Last edited by itouni (2023-07-17 07:55:30)

Offline

#2 2023-07-16 20:22:06

ewaller
Administrator
From: Pasadena, CA
Registered: 2009-07-13
Posts: 20,648

Re: [SOLVED] A few programs are long to startup

Do you have xdg-desktop-portal installed?


Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
The shortest way to ruin a country is to give power to demagogues.— Dionysius of Halicarnassus
---
How to Ask Questions the Smart Way

Offline

#3 2023-07-16 21:22:31

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

Re: [SOLVED] A few programs are long to startup

Answer in the journal.

Jul 16 20:23:25 toto-desktop xdg-desktop-por[867]: Failed to create settings proxy: Error calling StartServiceByName for org.freedesktop.impl.portal.desktop.gnome: Timeout was reached
Jul 16 20:24:05 toto-desktop systemd[587]: xdg-desktop-portal.service: start operation timed out. Terminating.
Jul 16 20:24:05 toto-desktop systemd[587]: xdg-desktop-portal.service: Failed with result 'timeout'.
Jul 16 20:24:05 toto-desktop systemd[587]: Failed to start Portal service.

Offline

#4 2023-07-16 21:41:39

ewaller
Administrator
From: Pasadena, CA
Registered: 2009-07-13
Posts: 20,648

Re: [SOLVED] A few programs are long to startup

I admit, I did not comb through the journal.  My bad.
I had a similar issue that I traced down to xdg-desktop-portal.  try removing it or disabling it. 
It is part of flatpack


Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
The shortest way to ruin a country is to give power to demagogues.— Dionysius of Halicarnassus
---
How to Ask Questions the Smart Way

Offline

#5 2023-07-16 21:47:51

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

Re: [SOLVED] A few programs are long to startup

You're excused because emacs isn't really good at that tongue

Ftr, *everyone* has that problem recently because xdg-desktop-portal-gnome is systematically broken outside gnome sessions since v44

In the light of recent threads about what arch should be like - I'd have some suggestions as well…

Offline

#6 2023-07-17 07:39:24

itouni
Member
Registered: 2023-03-23
Posts: 2

Re: [SOLVED] A few programs are long to startup

ewaller wrote:

I admit, I did not comb through the journal.  My bad.
I had a similar issue that I traced down to xdg-desktop-portal.  try removing it or disabling it. 
It is part of flatpack

Removing xdg-desktop-portal-gnome (not xdg-desktop-portal) fixed the issue!!
Can't thank you enough!!

Thanks Seth too!

Marked as solved smile

Last edited by itouni (2023-07-17 07:40:47)

Offline

Board footer

Powered by FluxBB