guix-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

org.freedesktop.hostname1 anyone?


From: Ludovic Courtès
Subject: org.freedesktop.hostname1 anyone?
Date: Sat, 09 Apr 2022 17:32:26 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/27.2 (gnu/linux)

Hello Guix!

Transferring files over Bluetooth (with ‘bluetooth-sendto’, the program
GNOME launches when you click on things) currently fails for me with a
dialog box that reads:

  org.bluez.obex was not provided by any .service files

When using ‘bluetooth-service-type’, that .service file *is* available:

--8<---------------cut here---------------start------------->8---
$ ls -l /etc/dbus-1/system-services/org.bluez.obex.service 
lrwxrwxrwx 1 root root 100  1 janv.  1970 
/etc/dbus-1/system-services/org.bluez.obex.service -> 
/gnu/store/y9ialgjvm5xc65r9nr7143v632ag0bjv-bluez-5.61/share/dbus-1//services/org.bluez.obex.service
--8<---------------cut here---------------end--------------->8---

The problem, as revealed by looking at ‘dbus-monitor --system’ while
attempting to transfer a file, may well be this:

--8<---------------cut here---------------start------------->8---
method call time=1649517343.622249 sender=:1.169 -> 
destination=org.freedesktop.DBus serial=2 path=/org/freedesktop/DBus; 
interface=org.freedesktop.DBus; member=AddMatch
   string 
"type='signal',sender='org.freedesktop.hostname1',interface='org.freedesktop.DBus.Properties',member='PropertiesChanged',path='/org/freedesktop/hostname1',arg0='org.freedesktop.hostname1'"
method return time=1649517343.622379 sender=org.freedesktop.DBus -> 
destination=:1.169 serial=3 reply_serial=2
method call time=1649517343.622407 sender=:1.169 -> 
destination=org.freedesktop.DBus serial=3 path=/org/freedesktop/DBus; 
interface=org.freedesktop.DBus; member=AddMatch
   string 
"type='signal',sender='org.freedesktop.hostname1',interface='org.freedesktop.hostname1',path='/org/freedesktop/hostname1'"
method return time=1649517343.622437 sender=org.freedesktop.DBus -> 
destination=:1.169 serial=4 reply_serial=3
method call time=1649517343.625643 sender=:1.169 -> 
destination=org.freedesktop.DBus serial=4 path=/org/freedesktop/DBus; 
interface=org.freedesktop.DBus; member=AddMatch
   string 
"type='signal',sender='org.freedesktop.DBus',interface='org.freedesktop.DBus',member='NameOwnerChanged',path='/org/freedesktop/DBus',arg0='org.freedesktop.hostname1'"
method return time=1649517343.625719 sender=org.freedesktop.DBus -> 
destination=:1.169 serial=5 reply_serial=4
method call time=1649517343.625744 sender=:1.169 -> 
destination=org.freedesktop.DBus serial=5 path=/org/freedesktop/DBus; 
interface=org.freedesktop.DBus; member=StartServiceByName
   string "org.freedesktop.hostname1"
   uint32 0
error time=1649517343.625791 sender=org.freedesktop.DBus -> destination=:1.169 
error_name=org.freedesktop.DBus.Error.ServiceUnknown reply_serial=5
   string "The name org.freedesktop.hostname1 was not provided by any .service 
files"
method call time=1649517343.677519 sender=:1.169 -> 
destination=org.freedesktop.DBus serial=6 path=/org/freedesktop/DBus; 
interface=org.freedesktop.DBus; member=GetNameOwner
   string "org.freedesktop.hostname1"
error time=1649517343.677597 sender=org.freedesktop.DBus -> destination=:1.169 
error_name=org.freedesktop.DBus.Error.NameHasNoOwner reply_serial=6
   string "Could not get owner of name 'org.freedesktop.hostname1': no such 
name"
--8<---------------cut here---------------end--------------->8---

Indeed, ‘plugins/hostname.c’ in BlueZ attempts to talk to
org.freedesktop.hostname1, a D-Bus service we don’t have.

The org.freedesktop.hostname1 is of course in systemd, so it would seem
we’ll have to package hostnamed similar to how we package localed.

That’s probably the only way forward but since it’s not super exciting,
I thought I’d share in case someone can think of another way.

Ideas?  :-)

Ludo’.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]