Hi all,

> Please do not respond off list.
i'm sorry.

> 1) It says it is already loaded... so I think you're fine.  It's loaded.  The 
> context of the original message has been lost on me, so I don't know what to 
> do from there.  Is the problem that it isn't loaded even though it says it 
> is?  What does 'launchctl list org.freedesktop.dbus-session' show?

launchctl list org.freedesktop.dbus-session
{
        "Label" = "org.freedesktop.dbus-session";
        "LimitLoadToSessionType" = "Background";
        "OnDemand" = false;
        "LastExitStatus" = 0;
        "PID" = 209;
        "TimeOut" = 30;
        "ProgramArguments" = (
                "/opt/local/bin/dbus-daemon";
                "--nofork";
                "--session";
        );
        "Sockets" = {
                "unix_domain_listener" = (
                        file-descriptor-object;
                );
        };
};

> 2) The CFURLWriteDataAndPropertiesToResource error is odd.  -10 is 
> kCFURLUnknownError which doesn't give much help.  Is it maybe a permissions 
> issue?  What about:
> 
> ls -l /var/db/launchd.db/com.apple.launchd.peruser.502/overrides.plist
> cat /var/db/launchd.db/com.apple.launchd.peruser.502/overrides.plist

ls -l /var/db/launchd.db/com.apple.launchd.peruser.502/overrides.plist
-rw-------@ 1 ABC  wheel  0 28 Jul 23:10 
/var/db/launchd.db/com.apple.launchd.peruser.502/overrides.plist

calling
cat /var/db/launchd.db/com.apple.launchd.peruser.502/overrides.plist
doesn't give any result

The original message is:
> when starting meld i keep getting the following error:
> 
> Xlib:  extension "RANDR" missing on display "/tmp/launch-ypOcnp/org.x:0".
> Dynamic session lookup supported but failed: launchd did not provide a socket 
> path, verify that org.freedesktop.dbus-session.plist is loaded!
> Traceback (most recent call last):
> File "/opt/local/bin/meld", line 102, in <module>
>   meldapp.main()
> File "/opt/local/lib/meld/meldapp.py", line 921, in main
>   app = MeldApp()
> File "/opt/local/lib/meld/meldapp.py", line 425, in __init__
>   self.prefs = MeldPreferences()
> File "/opt/local/lib/meld/meldapp.py", line 366, in __init__
>   super(MeldPreferences, self).__init__("/apps/meld", self.defaults)
> File "/opt/local/lib/meld/prefs.py", line 92, in __init__
>   self._gconf.add_dir(rootkey, gconf.CLIENT_PRELOAD_NONE)
> glib.GError: Der Konfigurationsserver konnte nicht kontaktiert werden; 
> mögliche Fehlerquellen sind, dass TCP/IP für ORBit nicht aktiviert ist oder 
> auf Grund eines Systemabsturzes alte NFS-Sperren gesetzt sind. Unter 
> http://projects.gnome.org/gconf/ erhalten Sie weitere Informationen (Details 
> –  1: Verbindung zur Sitzung konnte nicht abgerufen werden: Not enough memory)

regards
Matthias

> 
> 
> On Aug 30, 2010, at 22:13, Matthias Ohmsen wrote:
> 
>> Hi,
>> 
>> this is what I get, when I call "launchctl load -w 
>> /Library/LaunchAgents/org.freedesktop.dbus-session.plist":
>> org.freedesktop.dbus-session: Already loaded
>> launchctl: 
>> CFURLWriteDataAndPropertiesToResource(/var/db/launchd.db/com.apple.launchd.peruser.502/overrides.plist)
>>  failed: -10
>> 
>> 
>> and this is my /Library/LaunchAgents/org.freedesktop.dbus-session.plist:
>> 
>> <?xml version="1.0" encoding="UTF-8"?>
>> <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" 
>> "http://www.apple.com/DTDs/PropertyList-1.0.dtd";>
>> <plist version="1.0">
>> <dict>
>>       <key>Label</key>
>>       <string>org.freedesktop.dbus-session</string>
>> 
>>       <key>ServiceIPC</key>
>>       <true/>
>> 
>>       <!-- bug in 10.4's launchd - on-demand loading does not work -->
>>       <key>OnDemand</key>
>>       <false />
>> 
>>       <key>Disabled</key>
>>       <true/>
>> 
>>       <key>ProgramArguments</key>
>>       <array>
>>               <string>/opt/local/bin/dbus-daemon</string>
>>               <string>--nofork</string>
>>               <string>--session</string>
>>       </array>
>> 
>>       <key>Sockets</key>
>>       <dict>
>>               <key>unix_domain_listener</key>
>>               <dict>
>>                       <key>SecureSocketWithKey</key>
>>                       <string>DBUS_LAUNCHD_SESSION_BUS_SOCKET</string>
>>               </dict>
>>       </dict>
>> </dict>
>> </plist>
>> 
>> greetings
>> Matthias
>> 
>> Am 26.08.2010 um 18:16 schrieb Jeremy Huddleston:
>> 
>>> 
>>> On Aug 26, 2010, at 09:01, Rainer Müller wrote:
>>> 
>>>> On 2010-08-26 17:37 , Jeremy Huddleston wrote:
>>>>> Snow Leopard:
>>>>> launchctl load -w 
>>>>> /Library/LaunchAgents/org.freedesktop.dbus-session.plist 
>>>>> 
>>>>> Leopard:
>>>>> sudo launchctl load -w 
>>>>> /Library/LaunchAgents/org.freedesktop.dbus-session.plist 
>>>> 
>>>> Does this really require sudo on Leopard?
>>> 
>>> SL has a per-user launchd in which the Disabled boolean is set outside of 
>>> the plist.  The SL version is what behaves "correctly".  On Leopard, you 
>>> need to use sudo with -w in order to have write permission to the plist.
>>> 
>>>> From launchctl(1) on SL:
>>>            -w       Overrides the Disabled key and sets it to false.
>>>                     In previous versions, this option would modify the
>>>                     configuration file. Now the state of the Disabled
>>>                     key is stored elsewhere on-disk.
>>> 
>>>> If so, instructions given by 'port notes dbus' are wrong for Leopard and
>>>> should be made conditional per OS version.
>>> 
>>> On Leopard, you don't need sudo if you don't have -w.  The instructions in 
>>> the kde4 portgroups don't use '-w' and thus should work for both versions.  
>>> They should probably be updated then to inform the user to remove the 
>>> Disabled key by other means (editing the file?)
>>> 
>>> 
>>> _______________________________________________
>>> macports-users mailing list
>>> [email protected]
>>> http://lists.macosforge.org/mailman/listinfo.cgi/macports-users
>> 
> 

_______________________________________________
macports-users mailing list
[email protected]
http://lists.macosforge.org/mailman/listinfo.cgi/macports-users

Reply via email to