From: Holly Bostick <motub@planet.nl>
To: gentoo-user@lists.gentoo.org
Subject: [gentoo-user] [OT?]Text editor and scripting weirdness
Date: Tue, 30 Aug 2005 16:21:04 +0200 [thread overview]
Message-ID: <43146B50.9080405@planet.nl> (raw)
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
next reply other threads:[~2005-08-30 14:34 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-08-30 14:21 Holly Bostick [this message]
2005-08-30 15:48 ` [gentoo-user] Re: [OT?]Text editor and scripting weirdness Moshe Kaminsky
2005-08-30 17:08 ` [gentoo-user] Re: [OT?]Text editor and scripting weirdness [SOLVED?] Holly Bostick
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=43146B50.9080405@planet.nl \
--to=motub@planet.nl \
--cc=gentoo-user@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox