I cannot for the life of me get text files to open with Gedit automatically after installing Glade. I've tried "Open With Other Application" and then picking Text Editor. Doesn't work. If I unmerge Glade, Kate takes over and I still can't make Gedit take control of text/plain files. What am I missing here? I'll upload a screenshot of the described behavior. Marking major because it's a small problem that's really annoying. It's a text file for crying out loud, I should be able to open it with a text editor of my choosing by default! BTW -- it works fine as root. Reproducible: Always Steps to Reproduce: 1. Install Glade 2. Text files try to open in Glade (but they obviously can't) 3. If you do the "association reassignment" of picking "Other Application..." and picking Text Editor, it'll open in Text Editor but it won't stick. Actual Results: Text files open with Glade, Kate, or something that isn't Gedit. Expected Results: If you set Gedit as the default editor, it should stay that way. Portage 2.0.51.22-r2 (default-linux/x86/2005.0, gcc-3.3.5-20050130, glibc-2.3.5-r1, 2.6.12-gentoo-r6 i686) ================================================================= System uname: 2.6.12-gentoo-r6 i686 mobile AMD Athlon(tm) XP Gentoo Base System version 1.6.13 dev-lang/python: 2.3.5, 2.4.1-r1 sys-apps/sandbox: 1.2.10 sys-devel/autoconf: 2.13, 2.59-r6 sys-devel/automake: 1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.5 sys-devel/binutils: 2.15.92.0.2-r10 sys-devel/libtool: 1.5.18-r1 virtual/os-headers: 2.6.11-r2 ACCEPT_KEYWORDS="x86" AUTOCLEAN="yes" CBUILD="i686-pc-linux-gnu" CFLAGS="-march=athlon-xp -O3 -fomit-frame-pointer -pipe" CHOST="i686-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.4/env /usr/kde/3.4/share/config /usr/kde/3.4/shutdown /usr/kde/3/share/config /usr/lib/X11/xkb /usr/lib/mozilla/defaults/pref /usr/share/config /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/splash /etc/terminfo /etc/env.d" CXXFLAGS="-march=athlon-xp -O3 -fomit-frame-pointer -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="autoconfig distlocks sandbox sfperms strict" GENTOO_MIRRORS="http://gentoo.osuosl.org/ ftp://ftp.gtlib.cc.gatech.edu/pub/gentoo http://csociety-ftp.ecn.purdue.edu/pub/gentoo/ ftp://csociety-ftp.ecn.purdue.edu/pub/gentoo/ ftp://mirror.iawnet.sandia.gov/pub/gentoo/ ftp://ftp.ussg.iu.edu/pub/linux/gentoo http://gentoo.seren.com/gentoo http://gentoo.chem.wisc.edu/gentoo/ ftp://gentoo.chem.wisc.edu/gentoo/ http://cudlug.cudenver.edu/gentoo/ ftp://cudlug.cudenver.edu/pub/mirrors/distributions/gentoo/ http://gentoo.ccccom.com ftp://gentoo.ccccom.com http://gentoo.mirrors.tds.net/gentoo ftp://gentoo.mirrors.tds.net/gentoo http://gentoo.netnitco.net ftp://gentoo.netnitco.net/pub/mirrors/gentoo/source/ http://mirror.espri.arizona.edu/gentoo/ http://mirror.clarkson.edu/pub/distributions/gentoo/ http://mirrors.acm.cs.rpi.edu/gentoo/ ftp://ftp.ndlug.nd.edu/pub/gentoo/ http://open-systems.ufl.edu/mirrors/gentoo http://gentoo.llarian.net/ ftp://gentoo.llarian.net/pub/gentoo http://gentoo.binarycompass.org http://mirror.datapipe.net/gentoo http://mirror.datapipe.net/gentoo http://gentoo.eliteitminds.com http://gentoo.cs.lewisu.edu/gentoo/ ftp://linux.cs.lewisu.edu/gentoo/ http://prometheus.cs.wmich.edu/gentoo http://modzer0.cs.uaf.edu/public/gentoo/ http://mirror.usu.edu/mirrors/gentoo/ ftp://mirror.usu.edu/mirrors/gentoo/ http://lug.mtu.edu/gentoo http://mirror.phy.olemiss.edu/mirror/gentoo" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="x86 3dnow 3dnowext X aalib alsa apm arts avi berkdb bitmap-fonts bonobo cdr crypt cups curl directfb doc dvd dvdr eds emboss encode esd esound fam flac foomaticdb fortran gd gdbm ggi gif gnome gphoto2 gpm gstreamer gtk gtk2 gtkhtml guile hal imagemagick imlib ipv6 java jpeg junit kde kerberos krb4 krb5 libg++ libwww mad mikmod mmx mmxext motif mozilla mp3 mpeg mysql ncurses nls nptl odbc ogg oggvorbis opengl oss pam pdflib perl png python qt quicktime readline samba sdl speex spell sse ssl svga tcltk tcpd tiff truetype truetype-fonts type1-fonts unicode userlocales vorbis xine xml xml2 xmms xv zlib userland_GNU kernel_linux elibc_glibc" Unset: ASFLAGS, CTARGET, LANG, LC_ALL, LDFLAGS, LINGUAS
Created attachment 66892 [details] Context menu describing problem Ignore the Futurama background image :)
I actually see the opposite - glade files (xml) are opened with Gedit/Gvim rather than Glade. Anyway, right click on any text file, go to the "Open With" tab and select your preferred editor there.
Uh. That's the problem. No amount of "Open With" will make text files open in Gedit. Everything works as expected as root (can switch between Glade owning text files [wtf would you want that for?] or Gedit owning text files using Open With), but when you logon as "keith" (my user), "Open With" does not set text files to open in Gedit if you pick it to open in Gedit. The next text file you double-click after that opens in... Glade. But I just told it to reassociate it with Gedit! That's the problem. I figured that it's a Gentoo-specific bug, since obviously an upstream patch would have happened many a moon ago if it were GNOME-wide.
It doesn't seem to be a Gentoo specific bug either, most likely it's something to do with your local setup. I'm betting on a permissions issue - is anything printed to your console after you try to set the permissions? Try starting X with startx (not gdm), try setting the right permissions, and ctrl-alt-f1 to see if anything obvious is displayed. If it is a permissions thing, try quitting gnome, rm -rf'ing /tmp/gconfd-<username>, and restarting gnome. You're most likely going to have to do some digging yourself on this one seeing as we can't reproduce it.
Yeah, I figured that it'd be "local problem". I just figured that since I've already got 5 or so bugs on GNOME's bugzilla that haven't been replied to yet, I might have an easier time assuming that it's a Gentoo problem. Thanks for the help with that :). I'll see what comes up with startx and get back to you.
reporter: any update on this?
-> "Open <File> and other files of type 'plain text document' with:" does not set the default handler on some types. -> Open With tab of Properties, however, works every time. I've uninstalled Glade and KDE and deleted my GNOME profile (I nuked it -_-), so I don't know if that had anything to do with anything.
reporter: can you still reproduce this with 2.12?
I have not actually been able to reproduce this in some time. I don't know what it was -- that I upgraded KDE, or that I upgraded GNOME, or something. But it seems to work like it's supposed to last I tried (haven't tried in GNOME 2.12 and actually can't now).
resolving as works for me, per reporters comment. Thanks for the quick response.