Hi all,
I got kdeinit to run, here is how:
$ launchctl getenv DBUS_LAUNCHD_SESSION_BUS_SOCKET
/tmp/launch-Qsc1PT/unix_domain_listener
$ export
DBUS_SESSION_BUS_ADDRESS=unix:path=/tmp/launch-Qsc1PT/unix_domain_listener
$ /sw/opt/kde4/mac/bin/kdeinit4.app/Contents/MacOS/kdeinit4
!! Success !!!
So basically I had to unwrap the launchctl stage myself.
As stated before this is kdelibs4-mac 4.4.1-1 OS X 10.6 x86_64.
From the same shell kate starts most happily!
Looking at the source code this looks dodgy to me:
134 void mac_initialize_dbus()
135 {
136 if (dbus_initialized)
137 return;
138
139 QString dbusVar = qgetenv("DBUS_SESSION_BUS_ADDRESS");
140 if (!dbusVar.isEmpty()) {
141 dbus_initialized = true;
142 return;
143 }
144
145 dbusVar =
QFile::decodeName(qgetenv("DBUS_LAUNCHD_SESSION_BUS_SOCKET"));
146 if (mac_set_dbus_address(dbusVar)) {
147 dbus_initialized = true;
148 return;
149 }
150
151 QString externalProc;
....
with DBUS_SESSION_BUS_ADDRESS=launchd:env=DBUS_FINK_SESSION_BUS_SOCKET,
isn't the first "if (!dbusVar.isEmpty()) {..." going to be satisfied
cause the function to return?
This is the only place I could find that 'launchctl' is mentioned in the
kdelibs source and it will return before calling launchctl?! Even if it
didn't I don't see how the following code will correctly unroll the env
vars.
I took this source from /sw/src/...tbz so maybe its not had fink patches
applied?
Anyway for now I'll just write a script to unroll and reset
DBUS_SESSION_BUS_ADDRESS before running kde4 apps.
Regards,
Thorben
On 21.04.10 12:31, Thorben wrote:
> Hi,
>
> I sent this to the address given with kdelibs4-mac a week ago, but
> received no reply.
> I can't seem to convice kdeinit4 to start, and so all kde4 apps become
> useless.
>
> I have tried, rebuild/reinstall, playing with env vars e.g.:
>
> $ env | grep DBUS
> DBUS_SESSION_BUS_ADDRESS=launchd:env=DBUS_FINK_SESSION_BUS_SOCKET
> $ launchctl getenv DBUS_FINK_SESSION_BUS_SOCKET
> /tmp/launch-Qsc1PT/unix_domain_listener
> $ launchctl getenv DBUS_LAUNCHD_SESSION_BUS_SOCKET
> $ launchctl setenv DBUS_LAUNCHD_SESSION_BUS_SOCKET
> /tmp/launch-Qsc1PT/unix_domain_listener
> $ launchctl getenv DBUS_LAUNCHD_SESSION_BUS_SOCKET
> /tmp/launch-Qsc1PT/unix_domain_listener
>
> Since I saw "DBUS_LAUNCHD_SESSION_BUS_SOCKET" mentioned in kdelibs
> source code. Nothing helps...
>
> Does anyone have any ideas?
>
> Regards,
>
> Thorben
>
> PS Can you please CC me on replies.
>
> On 14 April 2010 11:19, Thorben<[email protected]> wrote:
>> Hi,
>>
>> I just did a fresh kde4 install on a fresh 10.6 system (64bit, kdelibs
>> version: 4.4.1-1)
>>
>> However kdeinit4 wont start and so all kde4 apps fail...
>>
>> $ /sw/opt/kde4/mac/bin/kdeinit4.app/Contents/MacOS/kdeinit4
>> <unknown program name>(425)/ getBundle: getBundle(
>> "/sw/opt/kde4/mac/lib/kde4/libexec/klauncher" , false ) called
>> kdeinit4: preparing to launch /sw/opt/kde4/mac/lib/kde4/libexec/klauncher
>> <unknown program name>(425)/ getBundle: getBundle(
>> "/sw/opt/kde4/mac/lib/kde4/libexec/kdeinit4_helper" , false ) called
>> <unknown program name>(425)/ getBundle: getBundle(
>> "/sw/opt/kde4/mac/lib/kde4/libexec/klauncher" , false ) called
>> <unknown program name>(425)/ getBundle: getBundle(
>> "/sw/opt/kde4/mac/lib/kde4/libexec/klauncher" , false ) called
>> <unknown program name>(426)/ getBundle: getBundle(
>> "/sw/opt/kde4/mac/lib/kde4/libexec/klauncher" , false ) called
>> <unknown program name>(426)/ launch: kdeinit4: launch() setting argv:
>> /sw/opt/kde4/mac/lib/kde4/libexec/klauncher
>> klauncher(426) kdemain: No DBUS session-bus found. Check if you have
>> started the DBUS server.
>> kdeinit4: Communication error with launcher. Exiting!
>>
>> Checking DBUS:
>>
>> $ env | grep DBUS
>> DBUS_SESSION_BUS_ADDRESS=launchd:env=DBUS_FINK_SESSION_BUS_SOCKET
>>
>> $ launchctl getenv DBUS_FINK_SESSION_BUS_SOCKET
>> /tmp/launch-VtaNHO/unix_domain_listener
>>
>> $ ls -l /tmp/launch-VtaNHO/unix_domain_listener
>> srwx------ 1 jandling wheel 0 14 Apr 10:23
>> /tmp/launch-VtaNHO/unix_domain_listener
>>
>> $ lsof /tmp/launch-VtaNHO/unix_domain_listener
>> COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME
>> launchd 248 jandling 38u unix 0x083997f0 0t0
>> /tmp/launch-VtaNHO/unix_domain_listener
>> dbus-daem 361 jandling 5u unix 0x083997f0 0t0
>> /tmp/launch-VtaNHO/unix_domain_listener
>>
>> $ ps aux | grep dbus
>> messagebus 104 0.0 0.0 2435504 336 ?? Ss 10:21am
>> 0:00.00 /sw/bin/dbus-daemon --system
>> jandling 538 0.0 0.0 2435468 0 s000 R+ 11:17am 0:00.00 grep
>> dbus
>> jandling 361 0.0 0.0 2446888 700 ?? S 10:22am 0:00.01
>> /sw/bin/dbus-daemon --nofork --session
>>
>>
>> All looks fine...
>>
>> Any ideas?
>>
>> On my 10.5 install it all works fine.
>>
>> Thorben
>>
>
> ------------------------------------------------------------------------------
> _______________________________________________
> Fink-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/fink-users
------------------------------------------------------------------------------
_______________________________________________
Fink-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/fink-users