From owner-freebsd-questions@FreeBSD.ORG Sun Jan 20 09:38:44 2013 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.FreeBSD.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id E9E2F8F2 for ; Sun, 20 Jan 2013 09:38:44 +0000 (UTC) (envelope-from freebsd@edvax.de) Received: from mx02.qsc.de (mx02.qsc.de [213.148.130.14]) by mx1.freebsd.org (Postfix) with ESMTP id 969F7915 for ; Sun, 20 Jan 2013 09:38:44 +0000 (UTC) Received: from r56.edvax.de (port-92-195-45-17.dynamic.qsc.de [92.195.45.17]) by mx02.qsc.de (Postfix) with ESMTP id 3754E24F76; Sun, 20 Jan 2013 10:38:43 +0100 (CET) Received: from r56.edvax.de (localhost [127.0.0.1]) by r56.edvax.de (8.14.5/8.14.5) with SMTP id r0K9cjUl002285; Sun, 20 Jan 2013 10:38:45 +0100 (CET) (envelope-from freebsd@edvax.de) Date: Sun, 20 Jan 2013 10:38:45 +0100 From: Polytropon To: "Ralf Mardorf" Subject: Re: Editors are broken after update Message-Id: <20130120103845.76c1a963.freebsd@edvax.de> In-Reply-To: References: Organization: EDVAX X-Mailer: Sylpheed 3.1.1 (GTK+ 2.24.5; i386-portbld-freebsd8.2) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Cc: FreeBSD quest X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list Reply-To: Polytropon List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 20 Jan 2013 09:38:45 -0000 On Sun, 20 Jan 2013 09:46:00 +0100, Ralf Mardorf wrote: > Wow, if on Linux something is fishy, it usually has to do with Lennart > Poettering, does he break FreeBSD too? > > $ su - > Password: > root@freebsd:/root # mcedit > > Error > "/root" is not a regular file [ Dismiss ] Seems to be a problem with the configuration. Temporarily try the following: # cd /root # mv .mc .mc.orig # mcedit That should start the editor with the defaults. Of course, /root is not a regular file, it's a directory. :-) > root@freebsd:/root # gedit > > (gedit:17410): Gtk-WARNING **: cannot open display: This editor requires X. If you're running the above su command in an xterm, use "su -m root" and try again. > root@freebsd:/root # vi > > vi does run Because vi belongs to the OS, it's not a port. > root@freebsd:/root # logout > $ mcedit > Failed to run: > Your old settings were migrated from /home/rocketmouse/.mc > to Freedesktop recommended dirs. > To get more info, please visit > http://standards.freedesktop.org/basedir-spec/basedir-spec-latest.html [1] Seems that the new MC version has migrated its configuration files somewhere else... > $ gedit > > As user gedit does start, so perhaps I need gksu to run it as root. That sounds wrong. What would be a reason for an installed editor that is intended to be run on X _not_ to run from a user account that currently runs X? > [1] That's a nightmare :(, I don't want to read something that has to do > with Lennart Poettering. I'm not sure in how far this XDG stuff applies to MC / mcedit... but the message seems to originate from MC which adopts to the FreeDesktop recommendations... > What the hell is broken now, regarding to the insane ideas of this man? Implied statement (not _my_ words): "Every program should store its configuration data according to the XDG / FreeDesktop specification." Seems that the MC agreed. > OT: > http://linux-bsd-sharing.blogspot.de/2008/08/howto-musicpd-music-player-daemon-on.html > is not a valid howto for my upgraded FreeBSD ports :(. >From a short look at it, the content looks valid. But I haven't tried it in order to confirm that it's working. -- Polytropon Magdeburg, Germany Happy FreeBSD user since 4.0 Andra moi ennepe, Mousa, ...