From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from lists.gentoo.org ([140.105.134.102] helo=robin.gentoo.org) by nuthatch.gentoo.org with esmtp (Exim 4.43) id 1EA7By-0003AV-B6 for garchives@archives.gentoo.org; Tue, 30 Aug 2005 14:34:26 +0000 Received: from robin.gentoo.org (localhost [127.0.0.1]) by robin.gentoo.org (8.13.4/8.13.4) with SMTP id j7UETE0o030410; Tue, 30 Aug 2005 14:29:14 GMT Received: from smtp14.wxs.nl (smtp14.wxs.nl [195.121.6.28]) by robin.gentoo.org (8.13.4/8.13.4) with ESMTP id j7UEKt77003085 for ; Tue, 30 Aug 2005 14:20:55 GMT Received: from [10.0.0.150] (ip3e83ab52.speed.planet.nl [62.131.171.82]) by smtp14.wxs.nl (iPlanet Messaging Server 5.2 Patch 2 (built Jul 14 2004)) with ESMTP id <0IM100CBJH75RQ@smtp14.wxs.nl> for gentoo-user@lists.gentoo.org; Tue, 30 Aug 2005 16:21:05 +0200 (CEST) Date: Tue, 30 Aug 2005 16:21:04 +0200 From: Holly Bostick Subject: [gentoo-user] [OT?]Text editor and scripting weirdness To: gentoo-user@lists.gentoo.org Message-id: <43146B50.9080405@planet.nl> Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-user@gentoo.org Reply-to: gentoo-user@lists.gentoo.org MIME-version: 1.0 Content-type: text/plain; charset=UTF-8 Content-transfer-encoding: 7BIT X-Accept-Language: nl-NL, nl, en User-Agent: Mozilla Thunderbird 1.0.6 (X11/20050803) X-Enigmail-Version: 0.92.0.0 X-Archives-Salt: 20d949bf-91a9-4e09-8566-a38df8830bfc X-Archives-Hash: 217d9c11fe9fea1afb4dcff27853c7a5 Hi all, I was having a nice day when this started happening completely out of the blue (no emerges, no changes, no nothing prior to what I'm about to explain): I use Openbox, and I finally just started setting it up to use more of its features, notably the dock. Now, I always ran OB from a script (pointed the exec line in the usr/share/xsessions openbox.desktop entry to point to it), in order to start various apps (feh, pypanel, gnome-settings-daemon, numlockx) prior to starting OB itself. So I added the dockapp entries to this script, and (after some tweakage), all was well. Until I logged out and back in, and suddenly OB would not start from the script-- well, it would, but I'd get the 'your session has lasted less than 10 seconds' error. ~/.xsession.errors said that there was an unexpected EOF at the end of the script. And sure enough, there is an extra (blank) line after exec openbox,so the error itself makes sense, kinda. The problem is, I can't get rid of it. I usually edit the script in gedit, but I've edited out that blank line in nano, kate, and nedit as well, and it keeps coming back (I edit it out, save the file, try logging in via the script, error recurs). I can get into OB by changing the .desktop entry back to Exec=openbox (but then of course I have nothing but the menu), and I can run the (modified to remove 'exec openbox') script after OB has started, and all my dockapps and helper apps appear normally. But this is obviously not optimal (unless anyone knows a way to make OB run the script itself when it starts, but if we could do that, we wouldn't have to be editing ~/.xsession or writing extra scripts in the first place). What I want is to permanently get rid of this bogus EOF in my script, so that it works the way it did 3 hours ago. Does this ring a bell to anybody? Holly -- gentoo-user@gentoo.org mailing list