| Summary: | kdebase/workspace/startkde runs as /bin/sh, which is bourne shell, but uses bash syntax | ||
|---|---|---|---|
| Product: | [Unmaintained] kstart | Reporter: | Steve Evans <stevee> |
| Component: | general | Assignee: | Lubos Lunak <l.lunak> |
| Status: | RESOLVED FIXED | ||
| Severity: | normal | ||
| Priority: | NOR | ||
| Version First Reported In: | unspecified | ||
| Target Milestone: | --- | ||
| Platform: | Compiled Sources | ||
| OS: | Solaris | ||
| Latest Commit: | Version Fixed/Implemented In: | ||
| Sentry Crash Report: | |||
|
Description
Steve Evans
2007-05-23 15:47:37 UTC
SVN commit 667905 by lunakl:
Don't use bash syntax. Since it looks like dbus launching will
be eventually removed anyway, this somewhat ugly way should be ok for now.
BUG: 145856
M +6 -2 startkde
--- trunk/KDE/kdebase/workspace/startkde #667904:667905
@@ -275,11 +275,15 @@
echo 'startkde: Starting up...' 1>&2
# Make sure that D-Bus is running
-if ! qdbus >/dev/null 2>/dev/null; then
+if qdbus >/dev/null 2>/dev/null; then
+ : # ok
+else
# Remove the next two lines after D-Bus 1.0 is released.
# It comes with auto-starting, so running dbus-launch won't be necessary
eval `dbus-launch --sh-syntax --exit-with-session < /dev/null`
- if ! qdbus >/dev/null 2>/dev/null; then
+ if qdbus >/dev/null 2>/dev/null; then
+ : # ok
+ else
# Startup error
echo 'startkde: Could not start D-Bus. Check your installation.' 1>&2
xmessage -geometry 500x100 "Could not start D-Bus. Check your installation."
|