Re: start a service after bluetooth

2020-11-17 Thread Barry Scott
> On 17 Nov 2020, at 11:54, Ed Greshko wrote: > > On 17/11/2020 19:37, Hetz Ben Hamo wrote: >> I was thinking to use this method, but when I tried to use the edit command, >> I got an empty text editor >> >> Does this edit basically "merge" my additions to the service? > > I'd not say "bette

Re: start a service after bluetooth

2020-11-17 Thread Barry Scott
> On 17 Nov 2020, at 11:37, Hetz Ben Hamo wrote: > > I was thinking to use this method, but when I tried to use the edit command, > I got an empty text editor > That is right you only add the minimum change you need. In your case the [Service] section wth ExecStartPost=... in it. > Does this

Re: start a service after bluetooth

2020-11-17 Thread Ed Greshko
On 17/11/2020 19:37, Hetz Ben Hamo wrote: I was thinking to use this method, but when I tried to use the edit command, I got an empty text editor Does this edit basically "merge" my additions to the service? I'd not say "better" but different.  Anyway, you could always use sudo systemctl

Re: start a service after bluetooth

2020-11-17 Thread Hetz Ben Hamo
I was thinking to use this method, but when I tried to use the edit command, I got an empty text editor Does this edit basically "merge" my additions to the service? Its usually better to use this: > > systemctl edit bluetooth.service > > and then just add the lines that you need to override

Re: start a service after bluetooth

2020-11-17 Thread Barry Scott
> On 17 Nov 2020, at 09:48, Hetz Ben Hamo wrote: > > Ed, great idea and it works! Thanks a lot! > > > On Tue, Nov 17, 2020 at 11:43 AM Ed Greshko > wrote: > On 17/11/2020 17:32, Hetz Ben Hamo wrote: > > Hi, > > > > I have a sound bar which is using bluetooth. M

Re: start a service after bluetooth

2020-11-17 Thread Hetz Ben Hamo
Ed, great idea and it works! Thanks a lot! On Tue, Nov 17, 2020 at 11:43 AM Ed Greshko wrote: > On 17/11/2020 17:32, Hetz Ben Hamo wrote: > > Hi, > > > > I have a sound bar which is using bluetooth. My problem is that while my > machine (Fedora 33) starts and bluetooth is starting, it doesn't a

Re: start a service after bluetooth

2020-11-17 Thread Ed Greshko
On 17/11/2020 17:32, Hetz Ben Hamo wrote: Hi, I have a sound bar which is using bluetooth. My problem is that while my machine (Fedora 33) starts and bluetooth is starting, it doesn't auto pair and I have to click "connect" manually each boot. So I'm trying to create a workaround. I've create

start a service after bluetooth

2020-11-17 Thread Hetz Ben Hamo
Hi, I have a sound bar which is using bluetooth. My problem is that while my machine (Fedora 33) starts and bluetooth is starting, it doesn't auto pair and I have to click "connect" manually each boot. So I'm trying to create a workaround. I've created a simple systemd file which runs a script th