Alexander Hansen wrote:

On Sep 18, 2008, at 5:40 PM, Terry Foreman wrote:

Alexander Hansen wrote:



<snip>

What happens if you run dcopserver manually?




Hey! Not a victory but at least a change in behavior and maybe some useful feedback.
Launching dcopserver from the command line like this:

   bash$ dcopserver

yields

   DCOP: register 'anonymous-877' -> number of clients is now 1
   DCOP: unregister 'anonymous-877'

Sounds encouraging. I guess. Next, try running an app like kile or kate:

   bash$ kate&

... and get a torrent in the terminal:

---
bash-$ DCOP: register 'kate-1115' -> number of clients is now 1
kio (KSycoca): Trying to open ksycoca from /private/var/tmp/kdecache-StrangeHeim/ksycoca
kio (KTrader): query for KTextEditor/Plugin : returning 4 offers
kio (KDirWatch): Available methods: Stat
Kate (Scripting): add script: /sw/share/apps/katepart/scripts/jstest.js
Kate (Scripting): add script (desktop file): /sw/share/apps/katepart/scripts/jstest.desktop Kate (Scripting): add script: /sw/share/apps/katepart/scripts/script-indent-c-char.js Kate (Scripting): add script (desktop file): /sw/share/apps/katepart/scripts/script-indent-c-char.desktop

<snip>


kio (KDirWatch): Added Dir /Users/StrangeHeim [KDirWatch-2]
kio (KDirWatch): Global Poll Freq is now 500 msec
kio (KDirWatch):  Started Polling Timer, freq 500
kio (KDirWatch):  Setup Stat (freq 500) for /Users/StrangeHeim
kate: diff=0
kate: diff=0
kate: Inserted command:exttool-cvs-log
kate: Inserted command:exttool-cvs-directory
kate: Inserted command:exttool-runscript
kate: Inserted command:exttool-google-selection
kio (KTrader): query for ThumbCreator : returning 6 offers
kdeui (KToolBar): isearchToolBar KToolBar::removeItem item -33 not found
kdeui (KToolBar): isearchToolBar KToolBar::removeItem item -34 not found
kate: ERROR: : couldn't create slave : Cannot talk to klauncher
kio (KDirListerCache): [void KDirListerCache::slotResult(KIO::Job*)] finished listing file:///Users/StrangeHeim
---

... plus an error alert box:

   X  Cannot talk to klauncher

But kate does run. It may be crippled -- I haven't checked it out thoroughly -- but it does run.

klauncher doesn't like to be started manually, it's supposed to be started by kdeinit. Starting kdeinit manually gives the now familiar.

---
bash-$ kdeinit: Aborting. bind() failed: : Address already in use
Could not bind to socket '/private/var/folders/4A/4ApIoqASHL0dqfypa5B0Q++++TI/-Tmp-/ksocket-StrangeHeim/kdeinit_/tmp/launch-zf0Pzn/_0'
---

R/  Terry


:Hmm...at this point we probably ought to see what's in your .xinitrc.

Alexander K. Hansen akh AT finkproject DOT org
Fink User Liaison and Documenter



I don't have an .xinitrc at the moment. There's the default xinitrc (I haven't modified it) lurking in /usr/X11/lib/X11/xinit/xinitrc which launches the xinitrc.d .

I do now have a .bashrc (I didn't always have one):

-----------
echo "Reading ~/.bashrc"


# Initialize FINK if needed

if [[ ! -x $(which fink) && -d /sw/bin ]];then
       source /sw/bin/init.sh
fi


# Set the DISPLAY variable ONLY for OS X earlier than 10.5
# Do not set it for 10.5, or it will create problems.


if [[ -z $DISPLAY && $(sw_vers -productVersion) < 10.5 && -z $SSH_CONNECTION ]]; then
       # -- works for Apple X11 with Fast User Switching
disp_no=($( ps -awx | grep -F X11.app | awk '{print $NF}' | grep -e ":[0-9]" ))
   if [[ -n $disp_no ]];then
       export DISPLAY=${disp_no}.0
   else
       export DISPLAY=:0.0
   fi
   echo "DISPLAY has been set to $DISPLAY"
fi


# iTerm Tab and Title Customization and prompt customization

# Put the string " [bash]   hostname::/full/directory/path"
# in the title bar using the command sequence
# \[\e]2;[bash]   \h::\]$PWD\[\a\]

# Put the penultimate and current directory
# in the iterm tab
# \[\e]1;\]$(basename $(dirname $PWD))/\W\[\a\]

# Make a simple command-line prompt:  bash-$

PS1=$'\[\e]2;[bash] \h::\]$PWD\[\a\]\[\e]1;\]$(basename "$(dirname "$PWD")")/\W\[\a\]bash-\$ '
------------------------------

I also have a .profile:   test -r /sw/bin/init.sh && . /sw/bin/init.sh .

In any case, I've always had the 'DCOPserver' problem; there has never been a time when any application that relied on DCOP worked right, regardless of whether I had an .xinitrc or what was in my .bashrc.

R/  Terry
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Fink-beginners mailing list
[email protected]
http://news.gmane.org/gmane.os.apple.fink.beginners

Reply via email to