All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] Adjust parameters in obexd.service.in
@ 2011-06-01 13:05 Slawomir Bochenski
  2011-06-01 13:10 ` Slawomir Bochenski
  0 siblings, 1 reply; 8+ messages in thread
From: Slawomir Bochenski @ 2011-06-01 13:05 UTC (permalink / raw)
  To: linux-bluetooth; +Cc: Slawomir Bochenski

This adjusts obexd.service.in to changes introduced in commit
e7792642accead1de0016bd7f78c74d9b6cad38a, retaining original behaviour.
---
 src/obexd.service.in |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/src/obexd.service.in b/src/obexd.service.in
index 24571bd..5c6ba0f 100644
--- a/src/obexd.service.in
+++ b/src/obexd.service.in
@@ -1,3 +1,3 @@
 [D-BUS Service]
 Name=org.openobex
-Exec=@libexecdir@/obexd --nodaemon --opp --ftp
+Exec=@libexecdir@/obexd --nodaemon --plugin=bluetooth:usb:opp:ftp
-- 
1.7.4.1


^ permalink raw reply related	[flat|nested] 8+ messages in thread

* Re: [PATCH] Adjust parameters in obexd.service.in
  2011-06-01 13:05 [PATCH] Adjust parameters in obexd.service.in Slawomir Bochenski
@ 2011-06-01 13:10 ` Slawomir Bochenski
  2011-06-01 13:39   ` Johan Hedberg
  0 siblings, 1 reply; 8+ messages in thread
From: Slawomir Bochenski @ 2011-06-01 13:10 UTC (permalink / raw)
  To: linux-bluetooth

I'm not sure however if ignoring transport plugins when --plugin is
used is a good idea at all. There is no hint in --help text what user
would have to load to make obexd work. Also no list of available
plugins, thus this all is a bit confusing now.

BR,
Slawomir Bochenski

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [PATCH] Adjust parameters in obexd.service.in
  2011-06-01 13:10 ` Slawomir Bochenski
@ 2011-06-01 13:39   ` Johan Hedberg
  2011-06-01 13:42     ` Slawomir Bochenski
  0 siblings, 1 reply; 8+ messages in thread
From: Johan Hedberg @ 2011-06-01 13:39 UTC (permalink / raw)
  To: Slawomir Bochenski; +Cc: linux-bluetooth

Hi Slawek,

On Wed, Jun 01, 2011, Slawomir Bochenski wrote:
> I'm not sure however if ignoring transport plugins when --plugin is
> used is a good idea at all. There is no hint in --help text what user
> would have to load to make obexd work. Also no list of available
> plugins, thus this all is a bit confusing now.

Aren't most/all plugins compiled as built-in and all built-in plugins
loaded by default? Then you shouldn't need to provide any -p option to
get everything loaded. If this is the case could you update your patch
to simply remove the --ftp and --opp options without adding the --plugin
option.

Johan

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [PATCH] Adjust parameters in obexd.service.in
  2011-06-01 13:39   ` Johan Hedberg
@ 2011-06-01 13:42     ` Slawomir Bochenski
  2011-06-01 13:50       ` Slawomir Bochenski
  2011-06-01 13:53       ` Johan Hedberg
  0 siblings, 2 replies; 8+ messages in thread
From: Slawomir Bochenski @ 2011-06-01 13:42 UTC (permalink / raw)
  To: Slawomir Bochenski, linux-bluetooth

> Aren't most/all plugins compiled as built-in and all built-in plugins
> loaded by default? Then you shouldn't need to provide any -p option to
> get everything loaded. If this is the case could you update your patch
> to simply remove the --ftp and --opp options without adding the --plugin
> option.
>
> Johan
>

This was specifically made for retaining original behaviour. Simply
removing --ftp and --opp would make obexd load all available plugins,
which isn't how this worked until now.

-- 
Slawomir Bochenski

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [PATCH] Adjust parameters in obexd.service.in
  2011-06-01 13:42     ` Slawomir Bochenski
@ 2011-06-01 13:50       ` Slawomir Bochenski
  2011-06-01 13:53       ` Johan Hedberg
  1 sibling, 0 replies; 8+ messages in thread
From: Slawomir Bochenski @ 2011-06-01 13:50 UTC (permalink / raw)
  To: Slawomir Bochenski, linux-bluetooth

On Wed, Jun 1, 2011 at 3:42 PM, Slawomir Bochenski <lkslawek@gmail.com> wrote:
> This was specifically made for retaining original behaviour. Simply
> removing --ftp and --opp would make obexd load all available plugins,
> which isn't how this worked until now.

Or, to be specific - it worked that way. That is all plugins loaded,
but not every server initialized and started. Only those explicitly
given on command line.

-- 
Slawomir Bochenski

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [PATCH] Adjust parameters in obexd.service.in
  2011-06-01 13:42     ` Slawomir Bochenski
  2011-06-01 13:50       ` Slawomir Bochenski
@ 2011-06-01 13:53       ` Johan Hedberg
  2011-06-01 14:41         ` Slawomir Bochenski
  1 sibling, 1 reply; 8+ messages in thread
From: Johan Hedberg @ 2011-06-01 13:53 UTC (permalink / raw)
  To: Slawomir Bochenski; +Cc: linux-bluetooth

Hi Slawek,

On Wed, Jun 01, 2011, Slawomir Bochenski wrote:
> > Aren't most/all plugins compiled as built-in and all built-in plugins
> > loaded by default? Then you shouldn't need to provide any -p option to
> > get everything loaded. If this is the case could you update your patch
> > to simply remove the --ftp and --opp options without adding the --plugin
> > option.
> >
> > Johan
> >
> 
> This was specifically made for retaining original behaviour. Simply
> removing --ftp and --opp would make obexd load all available plugins,
> which isn't how this worked until now.

I don't think the content of the default .service file has been thought
out so deeply, so I wouldn't put too much effort into retaining the
*exact* same behavior as before. Distros will typically customize it
anyway for their needs. What does make sense though is to have some kind
of sensible defaults there. Aren't all plugins a sensible default? Do we
have something inherently unstable/experimental that could mess up
systems? If so then that should probably be disabled by default already
at configure time, and if you really want to have something in the
service file it's probably easier to use -P instead of -p since the
"bad" plugins are in the minority.

Johan

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [PATCH] Adjust parameters in obexd.service.in
  2011-06-01 13:53       ` Johan Hedberg
@ 2011-06-01 14:41         ` Slawomir Bochenski
  2011-06-02  6:32           ` Luiz Augusto von Dentz
  0 siblings, 1 reply; 8+ messages in thread
From: Slawomir Bochenski @ 2011-06-01 14:41 UTC (permalink / raw)
  To: Slawomir Bochenski, linux-bluetooth

> I don't think the content of the default .service file has been thought
> out so deeply, so I wouldn't put too much effort into retaining the
> *exact* same behavior as before. Distros will typically customize it
> anyway for their needs. What does make sense though is to have some kind
> of sensible defaults there. Aren't all plugins a sensible default? Do we
> have something inherently unstable/experimental that could mess up
> systems? If so then that should probably be disabled by default already
> at configure time, and if you really want to have something in the
> service file it's probably easier to use -P instead of -p since the
> "bad" plugins are in the minority.

Well, in fact when this file was committed originally, there was
nothing more to choose vyt OPP and FTP. Those two however looked like
sensible defaults for a desktop setup. I suppose that for example PBAP
and MAP don't seem to be the most wanted plugins in this case. Don't
know about IrMC or SyncML.

-- 
Slawomir Bochenski

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [PATCH] Adjust parameters in obexd.service.in
  2011-06-01 14:41         ` Slawomir Bochenski
@ 2011-06-02  6:32           ` Luiz Augusto von Dentz
  0 siblings, 0 replies; 8+ messages in thread
From: Luiz Augusto von Dentz @ 2011-06-02  6:32 UTC (permalink / raw)
  To: Slawomir Bochenski; +Cc: linux-bluetooth

Hi,

On Wed, Jun 1, 2011 at 5:41 PM, Slawomir Bochenski <lkslawek@gmail.com> wrote:
>> I don't think the content of the default .service file has been thought
>> out so deeply, so I wouldn't put too much effort into retaining the
>> *exact* same behavior as before. Distros will typically customize it
>> anyway for their needs. What does make sense though is to have some kind
>> of sensible defaults there. Aren't all plugins a sensible default? Do we
>> have something inherently unstable/experimental that could mess up
>> systems? If so then that should probably be disabled by default already
>> at configure time, and if you really want to have something in the
>> service file it's probably easier to use -P instead of -p since the
>> "bad" plugins are in the minority.
>
> Well, in fact when this file was committed originally, there was
> nothing more to choose vyt OPP and FTP. Those two however looked like
> sensible defaults for a desktop setup. I suppose that for example PBAP
> and MAP don't seem to be the most wanted plugins in this case. Don't
> know about IrMC or SyncML.

But it doesn' t mean that this file will be installed as it is, so
just remove the invalid options and load all plugins as Johan
suggested should be fine. As for unstable plugins we can have it done
similarly to pcsuite which needs to be enabled during build time.

-- 
Luiz Augusto von Dentz
Computer Engineer

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2011-06-02  6:32 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-06-01 13:05 [PATCH] Adjust parameters in obexd.service.in Slawomir Bochenski
2011-06-01 13:10 ` Slawomir Bochenski
2011-06-01 13:39   ` Johan Hedberg
2011-06-01 13:42     ` Slawomir Bochenski
2011-06-01 13:50       ` Slawomir Bochenski
2011-06-01 13:53       ` Johan Hedberg
2011-06-01 14:41         ` Slawomir Bochenski
2011-06-02  6:32           ` Luiz Augusto von Dentz

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.