unofficial mirror of guix-devel@gnu.org 
 help / color / mirror / code / Atom feed
* org.freedesktop.hostname1 anyone?
@ 2022-04-09 15:32 Ludovic Courtès
  0 siblings, 0 replies; only message in thread
From: Ludovic Courtès @ 2022-04-09 15:32 UTC (permalink / raw)
  To: guix-devel

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’.


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2022-04-09 15:32 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-04-09 15:32 org.freedesktop.hostname1 anyone? Ludovic Courtès

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).