Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 273066 - kde-4.2.4: Empty "open with" dialog in all kde applications when in non-kde session
Summary: kde-4.2.4: Empty "open with" dialog in all kde applications when in non-kde s...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] KDE (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo KDE team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 277868
  Show dependency tree
 
Reported: 2009-06-07 16:33 UTC by ???
Modified: 2009-09-12 20:09 UTC (History)
2 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 ??? 2009-06-07 16:33:14 UTC
I am using kde-4.2.4 and in all kde applications, when I try to open a file (e.g. in dolphin), an "open with" dialog with no applications listed pops up.

Interestingly this only happends when I'm not running a full kde session. I tested it in fluxbox and awesome.

If I try use a kde3 application and try to open a file I also get the empty dialog - no matter if in a kde4 session or in fluxbox/awesome.

The first time this happened to me was either after the upgrade to 4.2.2 or 4.2.3 - I can't remember exactly when it was.

I suspect it's not just a config error since I already tried mv-ing my .kde/.kde4 directories away.

I also guess this is a related problem:
When running in a non-kde session digikam (0.10.0-r1) doesn't recognize any kipi-plugins (0.3.0) - when running in a full kde session it does.

Reproducible: Always

Steps to Reproduce:
1. Start alternative window manager - e.g. fluxbox
2. Run any kde application, e.g. dolphin
3. Try to open a file by simply clicking on it
Actual Results:  
Empty "open with" dialog pops up

Expected Results:  
File should be opened with a default application - if no default application is available an "open with" dialog with all installed applications should be shown.

Portage 2.1.6.13 (default/linux/x86/2008.0, gcc-4.3.2, glibc-2.8_p20080602-r1, 2.6.28-gentoo-r5 i686)
=================================================================
System uname: Linux-2.6.28-gentoo-r5-i686-AMD_Athlon-tm-_64_X2_Dual_Core_Processor_3800+-with-glibc2.0
Timestamp of tree: Sat, 06 Jun 2009 19:00:01 +0000
app-shells/bash:     3.2_p39
dev-java/java-config: 2.1.7
dev-lang/python:     2.5.4-r2
dev-util/cmake:      2.6.4
sys-apps/baselayout: 1.12.11.1
sys-apps/sandbox:    1.6-r2
sys-devel/autoconf:  2.63
sys-devel/automake:  1.5, 1.7.9-r1, 1.9.6-r2, 1.10.2
sys-devel/binutils:  2.18-r3
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   1.5.26
virtual/os-headers:  2.6.27-r2
ACCEPT_KEYWORDS="x86"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=i686 -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/config"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c /etc/udev/rules.d"
CXXFLAGS="-O2 -march=i686 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="distlocks fixpackages parallel-fetch protect-owned sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo"
LANG="en_US.UTF-8"
LDFLAGS="-Wl,-O1"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="3dnow X a52 aac acl alsa arts berkdb bzip2 cli cracklib crypt cups dbus dri dvd dvdnav dvdr flac fortran gdbm gif gpm hal iconv ipv6 isdnlog jpeg kde midi mmx mp3 mp4 mpeg mudflap ncurses nls nptl nptlonly ogg opengl openmp pam pcre perl png pppd python qt3 qt4 readline reflection samba session spl sse sse2 ssl sysfs tcpd tiff truetype unicode vorbis win32codecs x86 xcomposite xinerama xorg zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1 emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" ELIBC="glibc" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" USERLAND="GNU" VIDEO_CARDS="nvidia"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LC_ALL, LINGUAS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY
Comment 1 ??? 2009-06-07 17:28:37 UTC
Hm, just found that bug at bugs.kde.org: https://bugs.kde.org/show_bug.cgi?id=190560

So probably this is an upstream bug?
Comment 2 Maciej Mrozowski gentoo-dev 2009-06-30 14:12:48 UTC
Not necessarily.
Please attach your emerge --info and output of:
echo XDG_DATA_DIRS
(run it within kde4 session and outside of it as well)
As well ensure you've run env-update after installing KDE4
Comment 3 ??? 2009-06-30 16:31:27 UTC
$XDG_DATA_DIRS in kde4 session:
/usr/share:/usr/local/share:/usr/share

$XDG_DATA_DIRS in fluxbox/awesome:
/usr/local/share:/usr/kde/3.5/share:/usr/share

I also ran env-update as root before doing echo $XDG_DATA_DIRS...

emerge --info (hasn't changed very much, but anyway :):

Portage 2.1.6.13 (default/linux/x86/2008.0, gcc-4.3.2, glibc-2.9_p20081201-r2, 2.6.29-gentoo-r5 i686)
=================================================================
System uname: Linux-2.6.29-gentoo-r5-i686-AMD_Athlon-tm-_64_X2_Dual_Core_Processor_3800+-with-glibc2.0
Timestamp of tree: Sat, 27 Jun 2009 12:00:01 +0000
app-shells/bash:     3.2_p39
dev-java/java-config: 2.1.7
dev-lang/python:     2.5.4-r2
dev-util/cmake:      2.6.4
sys-apps/baselayout: 1.12.11.1
sys-apps/sandbox:    1.6-r2
sys-devel/autoconf:  2.63
sys-devel/automake:  1.5, 1.7.9-r1, 1.9.6-r2, 1.10.2
sys-devel/binutils:  2.18-r3
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   1.5.26
virtual/os-headers:  2.6.27-r2
ACCEPT_KEYWORDS="x86"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=i686 -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/config"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c /etc/udev/rules.d"
CXXFLAGS="-O2 -march=i686 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="distlocks fixpackages parallel-fetch protect-owned sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo"
LANG="en_US.UTF-8"
LDFLAGS="-Wl,-O1"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="3dnow X a52 aac acl alsa arts berkdb bzip2 cli cracklib crypt cups dbus dri dvd dvdnav dvdr flac fortran gdbm gif gpm hal iconv ipv6 isdnlog jpeg kde midi mmx mp3 mp4 mpeg mudflap ncurses nls nptl nptlonly ogg opengl openmp pam pcre perl png pppd python qt3 qt4 readline reflection samba session spl sse sse2 ssl sysfs tcpd tiff truetype unicode vorbis win32codecs x86 xcomposite xinerama xorg zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1 emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" ELIBC="glibc" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" USERLAND="GNU" VIDEO_CARDS="nvidia"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LC_ALL, LINGUAS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY

Comment 4 Maciej Mrozowski gentoo-dev 2009-07-01 01:09:44 UTC
When you run kbuildsycoca4 --noincremental in your KDE4 session - does the problem disappear?

Anyway - mimetype handlers for use with KDE, are defined in .desktop files installed by particular applications handling them. Those .desktop files need to be somewhere in XDG_DATA_DIRS to be used. So that ensuring valid XDG_DATA_DIRS is set, and running kbuildsycoca4 in general should make those 'applications appear'.

So.. try the following:

in fluxbox/awesome session, as normal user, in your favourite terminal run:
export XDG_DATA_DIRS=/usr/local/share:/usr/share:/usr/kde/3.5/share
/usr/bin/kbuildsycoca4 --noincremental

See whether it fixes this issue.
Comment 5 ??? 2009-07-01 20:33:44 UTC
Hm, seems to have no effect whatsoever...
Comment 6 Maciej Mrozowski gentoo-dev 2009-07-17 13:08:47 UTC
I've just run into this after uninstalling kde4 (having kde3 and on kde4 in /usr).
Apparently kbuildyscoca --noincremental is required to be run.
Please try just this:

kbuildsycoca --noinremental

I'll experiment with this and if it works, I'll have it called in kde4 eclass as well.
Comment 7 ??? 2009-07-17 14:05:45 UTC
Ok, I tried running kbuildsycoca --noincremental both in a full kde4 session and awesome session.

After having run the command in the kde4 session (where file associations already worked well for kde4 apps) file associations started working for kde3 apps.

After that I launched an awesome session - fired up both kde3 and kde4 apps, but file associations didn't work in either case.

Then I tried running kbuildsycoca --noincremental - but it gave me the following error output line and it didn't get any better:
kbuildsycoca: ERROR: applications.menu not found in (/home/XXX/.config/menus/,/etc/xdg/menus/)

Also a file called "applications.menu" doesn't exist when running a kde4 session either.

Running kbuildsycoca4 --noincremental (I thought I'd give it a try...) in the awesome session didn't end up in an error message but also didn't help.
Comment 8 Maciej Mrozowski gentoo-dev 2009-07-17 16:58:01 UTC
Yes, XDG_CONFIG_DIRS appears to be required as well, but it will be a problem with this as both KDEs have own XDG_CONFIG_DIRS location (so one cannot just export it globally).
In that case, maybe kdelibs patches would be required, I'll see what I can do.

btw
applications.menu is KDE4 is called kde4-applications.menu (and setting XDG_MENU_PREFIX=kde4- is required) - you can look at ${KDEDIR}/bin/startkde scripts to get the picture what's going on there to make this work within KDE sessions.
Onviously, when you run other DE (like awesome), non of these tricks are applied (and in that case should be somehow)
Comment 9 Stef NN. 2009-08-15 09:59:28 UTC
Had exactly the same problem: All file associations lost and no apps in start menu.

I'm running kde-4.3 (-kdeprefix) apps outside a kde session (using E17 actually).

Interestingly enough I thought, "well at least get the applications in the start menu back" and did a:

ln -s /etc/xdg/menus/kde-4.3-applications.menu /etc/xdg/menus/applications.menu 

(!) after that all the file associations are all back also (!)

There should be some fallback for non startkde users to somehow have a common applications menu.
Comment 10 Maciej Mrozowski gentoo-dev 2009-08-23 21:59:17 UTC
Please see bug 267793.
There are fixes in overlay that should do it.
Comment 11 Maciej Mrozowski gentoo-dev 2009-09-06 22:38:15 UTC
And those fixes are now in tree, please update to 4.3.1 and test whether still reproducible.
Comment 12 ??? 2009-09-07 09:50:15 UTC
Just upgraded to 4.3.1 and it's working really well now - thanks :)