Xfce Forum

Sub domains
 

You are not logged in.

#1 2016-02-28 01:57:00

Mellowbob
Member
Registered: 2011-10-16
Posts: 286

Delay start of startup application

I'm having a bit of a problem with Clementine.

I have it as a startup program. And, each time I log in it does start. No problems there. But, the fonts are always wrong. They are very small. So, I kill it and restart. Then, the fonts are fine.

So, I was thinking that if I delayed starting the app by a second or 2 it would come up with the right fonts (just guessing). I changed, in Application Autostart, the command from "clementine" to "sleep 2; clementine". Unfortunately, it doesn't startup at all now.

Tried "sleep 2 && clementine" as well. Same result.

What am I doing wrong?

Offline

#2 2016-02-28 05:38:09

ozjd
Member
From: Hawkesbury NSW Australia
Registered: 2012-02-05
Posts: 560
Website

Re: Delay start of startup application

You probably need to create a script and put that as the command.

Offline

#3 2016-02-28 13:11:26

sixsixfive
Member
From: behind you
Registered: 2012-04-08
Posts: 579
Website

Re: Delay start of startup application

if you want to use shell commands you need to launch a shell first eg:

/bin/sh -c 'sleep 5;xterm -e "while true;do printf "hello";done"'

Last edited by sixsixfive (2016-02-28 13:12:16)

Offline

#4 2016-02-28 17:49:20

Mellowbob
Member
Registered: 2011-10-16
Posts: 286

Re: Delay start of startup application

Thanks!

The command in application autostart:

      /bin/sh -c 'sleep 2'; clementine

seems to work just fine.

I have no idea why a delay is needed.

Offline

#5 2017-10-17 10:25:21

annoying_daniel
Member
Registered: 2017-01-02
Posts: 16

Re: Delay start of startup application

Mellowbob wrote:

Thanks!

The command in application autostart:

      /bin/sh -c 'sleep 2'; clementine

seems to work just fine.

I have no idea why a delay is needed.

For me, I had to enclose both commands (I use kalu as my preferred arch updater):

/bin/sh -c 'sleep 15;kalu &'

...the '&' is needed at the end there, otherwise the entire process stays in the task manager. It takes a few seconds for my wifi to connect and kalu will error if it can't update immediately.

Offline

Registered users online in this topic: 0, guests: 1
[Bot] ClaudeBot

Board footer

Powered by FluxBB
Modified by Visman

[ Generated in 0.008 seconds, 7 queries executed - Memory usage: 529.22 KiB (Peak: 530.5 KiB) ]