You are not logged in.

#1 2014-03-17 14:43:18

drm00
Member
Registered: 2010-06-01
Posts: 38

Starting Zenity is very slow when not in Gnome/KDE/etc.

Hi all,

i'm using dwm as my window manager, and occasionally open a script that uses zenity to read in text via a text entry box.  Sadly, the box takes 6-7 seconds(!) to load when in dwm. When i compare this behavior to the 2 big desktop environments gnome and kde, in gnome, zenity always starts instantly (i suspect all needed libs/themes? are loaded with gnome on startup) and in kde, only the first start takes longer, but then after loading, the following calls are instant (so i suspect the loaded files are cached somewhere by kde).

Is there anything i can do to preload/cache all things that zenity needs in dwm?

Thanks,
drm

Offline

#2 2014-03-17 16:20:42

x33a
Forum Fellow
Registered: 2009-08-15
Posts: 4,587

Re: Starting Zenity is very slow when not in Gnome/KDE/etc.

I am using i3, and zenity starts slowly only on the first launch. Are you sure it starts slowly every time?

Offline

#3 2014-03-17 16:22:08

drm00
Member
Registered: 2010-06-01
Posts: 38

Re: Starting Zenity is very slow when not in Gnome/KDE/etc.

Yes, same behavior every time.  Maybe i3 has a workaround?

Offline

#4 2014-03-17 16:32:03

x33a
Forum Fellow
Registered: 2009-08-15
Posts: 4,587

Re: Starting Zenity is very slow when not in Gnome/KDE/etc.

I doubt if i3 does anything special. You may give i3 a try and see if you can reproduce the issue.

Offline

#5 2014-05-12 08:43:44

drm00
Member
Registered: 2010-06-01
Posts: 38

Re: Starting Zenity is very slow when not in Gnome/KDE/etc.

Problem solved: dbus wasn't running properly, hence the delay for whatever reason.  Zenity now takes ~1 sec to start, just as it does in gnome.

Offline

Board footer

Powered by FluxBB