Received: by 2002:a05:7412:3b8b:b0:fc:a2b0:25d7 with SMTP id nd11csp2663826rdb; Mon, 12 Feb 2024 12:03:57 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCWQoIPYlUvJXe5trBc7/OWz+bpO+i2kuM2LgZttWvcuuJoRrFV0lOYeubiz+UEOEUXBsEF5Qm17D77b4oyksxazefxezYtaYY+X9ehAuQ== X-Google-Smtp-Source: AGHT+IEDYs1LKHA0e8/VKbVRzx0xsz8LHY7z1VyKHmE8nqEvC8VlkfKE0yh+fWoosHwBwLQZSMHM X-Received: by 2002:a05:6a20:9f88:b0:19e:9b8e:8bda with SMTP id mm8-20020a056a209f8800b0019e9b8e8bdamr6533998pzb.42.1707768237658; Mon, 12 Feb 2024 12:03:57 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1707768237; cv=pass; d=google.com; s=arc-20160816; b=FGxJTwHDa9PWNUj5Ax457FR0zu7dc0bTLbRFIfW+S9RNMwqXS8/6G5z2u87p9perO1 sb8Ckyclg3Mp/w16lzfw76zTvguo9aa204fH8SukYPHdjOUf2mAMVYGEqlkpL1Hm6RBr Gjf7Hw2UFXy/GcP/2y+88i/QzMczNAkmBAlzBPLas7Vo2LCzqMMNslOkOdiU3mTT6QEG HvLuCZnE97D18KD7cs+mEr2Qp49gNGwDdDElMhSiX9rGGcUlNAjYZdFadZLVy49Y0Ekb 7QQVjsZVGkC5d66FzJ9Jtr98HVZhVjPzAxugSZWjsP4u9NMqzR4wqTHNJ/Kcl+DXTSDe nxig== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=reply-to:cc:to:in-reply-to:references:message-id :content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:subject:date:from:dkim-signature; bh=0y1cHDqGHelWIibJZmmcyeLvQ7f0jtdpHoM2NRfr610=; fh=iezeyGiTYvVKaxKV9f4+wvr9AFs2mCx9/pgFL8D2kjE=; b=KchCU6Z8GzV32PHG5PCSt4rHPwjv9zyMQHXNg0lxphvVFBprMz13uoSF9Z96oBrF4c H1CDtCc4w+ZvKvVorp/NSfry8fWky2ekOppIgPvBlY0UVbFhe5JexGqfVqyz3k4DvVX4 OS+dC2IwDS+t0CuyqkKEQlSnDo6niN21XNzjUaoeftzwYqj04MQEnKUjY7R7RkTg2h3e xZZH5ymANvOhv2/Fo+UHPFEEXult3K8e+hRTpEaFuuN7HtBnJJ5Ul5wiT857zt4gMHbr veF+5WqA05GF4txDoX7frBkdOj6SeGb1frSYdHMnKMe7vZNxuF9tbz8ijrYstODCTQgC layA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=qdyavNr8; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-bluetooth+bounces-1793-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-bluetooth+bounces-1793-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org X-Forwarded-Encrypted: i=2; AJvYcCWEGY1EyztkctyMpCbyGFl9XusXUVVp70dRNXw0JJPWc9tNrJ0bap8lErZ5EHNwYNGiW6PI1D2YBdDplCstcMvWy04UbQI03H+0Q3YVjg== Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id l193-20020a6391ca000000b005d8c19ca98dsi693991pge.137.2024.02.12.12.03.57 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 12 Feb 2024 12:03:57 -0800 (PST) Received-SPF: pass (google.com: domain of linux-bluetooth+bounces-1793-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=qdyavNr8; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-bluetooth+bounces-1793-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-bluetooth+bounces-1793-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sy.mirrors.kernel.org (Postfix) with ESMTPS id A13CFB21314 for ; Mon, 12 Feb 2024 20:03:13 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 6B5F0487B3; Mon, 12 Feb 2024 20:02:41 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="qdyavNr8" X-Original-To: linux-bluetooth@vger.kernel.org Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 849CE47F69 for ; Mon, 12 Feb 2024 20:02:40 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707768160; cv=none; b=d0hL7DAZpIJ0F94jJQ8MrO0a3He3LcB/s9LPd35oHusLD91zEWDv9Dkeruc5oGmA4L5d+Km2waIxyCK5brQ1jOWGO4OQwM956Kc5uT0GJxoivqhEA6p3RgyVcm6tAj33xLFQz6HDlKS2IBNC9Oqh501LKoT+ayMXIcUUZJzZRDA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707768160; c=relaxed/simple; bh=5btvwpoDeTsjWKw6B/3bS0i+ZrvloE4dM5K9xepdv3k=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=aui/xwEcK93KiuYD7vh3tsYt4AjDJz/xCuM53HMEhg6WAMf4Mjg8DGKSqbrXzw5UFqQCw4o4x/ptu0D91klMDClvs8CaHfRCxqJEORsI2l1YobFGiW5hlkbhN5P3+WANYFpzNMIZaNe/x1VojHRoACIeGpwdW4+qGRm74k5+QvQ= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=qdyavNr8; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPS id 4800DC43601; Mon, 12 Feb 2024 20:02:40 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1707768160; bh=5btvwpoDeTsjWKw6B/3bS0i+ZrvloE4dM5K9xepdv3k=; h=From:Date:Subject:References:In-Reply-To:To:Cc:Reply-To:From; b=qdyavNr8xkmjLlTtBugJSjaIoTUknxqdoy4A1RlWR0VOfswzgL5rTO/2jR12r7YF8 a530UfTdSgk2QhLVwb2KnYWLtzx4lO/5A8qKflpQip8bzCZnvavdHbYwyazcYkclfV 1Yb7h8olVLTOFIkS2X0mvy8e5FG8FOC1nIWELmmFJlTLx+34Jx+jSsj9nHMWio+GNy p9PfWezQhydjE2Cr8UhTUzJCTtmrzKh4pvdjhNNbWSWkGdG6q/YmOEeSq5E105qTql s0UaOMwxVUZ36ydx7lrQDfXybXMREXjRap14Q0XtgedlPL/0197T6xtW418uhbRd3q eB4gU1GguB74w== Received: from aws-us-west-2-korg-lkml-1.web.codeaurora.org (localhost.localdomain [127.0.0.1]) by smtp.lore.kernel.org (Postfix) with ESMTP id 373ACC4829E; Mon, 12 Feb 2024 20:02:40 +0000 (UTC) From: Emil Velikov via B4 Relay Date: Mon, 12 Feb 2024 20:02:46 +0000 Subject: [PATCH BlueZ v2 10/10] Allow using obexd without systemd in the user session Precedence: bulk X-Mailing-List: linux-bluetooth@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Message-Id: <20240212-disto-patches-v2-10-8bab1bd08f4d@gmail.com> References: <20240212-disto-patches-v2-0-8bab1bd08f4d@gmail.com> In-Reply-To: <20240212-disto-patches-v2-0-8bab1bd08f4d@gmail.com> To: linux-bluetooth@vger.kernel.org Cc: Giovanni Campagna X-Mailer: b4 0.12.4 X-Developer-Signature: v=1; a=ed25519-sha256; t=1707768157; l=2136; i=emil.l.velikov@gmail.com; s=20230301; h=from:subject:message-id; bh=qcOLWrp/zFE+VyNJF7l0mQSwvOHD0sHm7hQeD6mJ4p0=; b=rYipQQQoYBBKWJFCC4K7udhkanjCpN2+07thPENzUcgBhRU5BUTR/5vfKrY1ar12U8rlU3nhq z6nLK6nxg1eBkKbfhKMUWhe+JJOP/fGUr426X5ynFZJBomzeWigKJaD X-Developer-Key: i=emil.l.velikov@gmail.com; a=ed25519; pk=qeUTVTNyI3rcR2CfNNWsloTihgzmtbZo98GdxwZKCkY= X-Endpoint-Received: by B4 Relay for emil.l.velikov@gmail.com/20230301 with auth_id=35 X-Original-From: Emil Velikov Reply-To: From: Giovanni Campagna Not all sessions run systemd --user and in some cases one may be missing systemd all together. Provide the correct path instead of /bin/false, allowing dbus to start the service in such cases. DBUS implementations can ignore the Exec line all together when run in systemd aware mode - at least the OG dbus does that. So ultimately this change is a no-op for the systemd --user case. On my system, this is literally the only non-system service which uses /bin/false. [Emil Velikov] Port to AC_CONFIG_FILES() .in files handling. Reword commit message. --- Makefile.obexd | 4 +--- configure.ac | 1 + obexd/src/{org.bluez.obex.service => org.bluez.obex.service.in} | 2 +- 3 files changed, 3 insertions(+), 4 deletions(-) diff --git a/Makefile.obexd b/Makefile.obexd index 1d37a1bd4..d88708e66 100644 --- a/Makefile.obexd +++ b/Makefile.obexd @@ -8,12 +8,10 @@ install-data-hook: uninstall-hook: rm -f $(DESTDIR)$(SYSTEMD_USERUNITDIR)/dbus-org.bluez.obex.service +endif dbussessionbusdir = $(DBUS_SESSIONBUSDIR) dbussessionbus_DATA = obexd/src/org.bluez.obex.service -endif - -EXTRA_DIST += obexd/src/org.bluez.obex.service if OBEX diff --git a/configure.ac b/configure.ac index 387db8c7d..c66991a3d 100644 --- a/configure.ac +++ b/configure.ac @@ -457,6 +457,7 @@ AC_CONFIG_FILES( mesh/bluetooth-meshd.rst mesh/bluetooth-mesh.service obexd/src/obex.service + obexd/src/org.bluez.obex.service src/bluetoothd.rst src/bluetooth.service tools/bluetooth-logger.service diff --git a/obexd/src/org.bluez.obex.service b/obexd/src/org.bluez.obex.service.in similarity index 69% rename from obexd/src/org.bluez.obex.service rename to obexd/src/org.bluez.obex.service.in index a53808884..14c16d3e3 100644 --- a/obexd/src/org.bluez.obex.service +++ b/obexd/src/org.bluez.obex.service.in @@ -1,4 +1,4 @@ [D-BUS Service] Name=org.bluez.obex -Exec=/bin/false +Exec=@exec_prefix@/bluetooth/obexd SystemdService=dbus-org.bluez.obex.service -- 2.43.0