Guake does not autostart - workaround

Every day solutions to every day challenges. + Brilliant stuff

Moderators: b1o, jkerr82508

Forum rules
Please feel free to post your tip it does not have to be advanced. Also ask questions directly related to the tip here. But do not start new threads with questions or ask for help here. That is what the help section is for. forum rules: http://bjoernvold.com/forum/viewtopic.php?f=8&t=568
User avatar
viking60
Über-Berserk
Posts: 9351
Joined: 14 Mar 2010, 16:34

Re: Guake does not autostart - workaround

Postby viking60 » 01 Apr 2013, 16:57

Try to make it sleep longer like 25 seconds instead of 15 - Gnome shell can be slow to get things up and running:

Code: Select all

#! /bin/sh
sleep 25
echo guake started: $(date) >> guake.log
guake

exit 0

It could work :confused
Manjaro 64bit on the main box -Intel(R) Core(TM) i7 CPU 920 @ 2.67GHz and nVidia Corporation GT200b [GeForce GTX 275] (rev a1. + Centos on the server - Arch on the laptop.
"There are no stupid questions - Only stupid answers!"

User avatar
dedanna1029
Sound-Berserk
Posts: 8780
Joined: 14 Mar 2010, 20:29
Contact:

Re: Guake does not autostart - workaround

Postby dedanna1029 » 01 Apr 2013, 20:32

Aye, it could. Thanks.
I'd rather be a free person who fears terrorists, than be a "safe" person who fears the government.
No gods, no masters.
"A druid is by nature anarchistic, that is, submits to no one."
http://uk.druidcollege.org/faqs.html

User avatar
dedanna1029
Sound-Berserk
Posts: 8780
Joined: 14 Mar 2010, 20:29
Contact:

Re: Guake does not autostart - workaround

Postby dedanna1029 » 02 Apr 2013, 00:18

viking60 wrote:Recently I had the problem that guake does not autostart even if I had set it in gnome-session-properties.

This only affects guake and it seems to affect at least Arch and Ubuntu.
I have no Idea why this happens since every other entry in gnome-session-properties autostarts on loading as it should.
(it makes an entry in ~/.config/autostart)
So a workaround is called for:
1

Code: Select all

cd /usr/bin

2

Code: Select all

sudo nano startguake.sh

3 enter this content:

Code: Select all

#! /bin/sh

sleep 15
echo guake started: $(date) >> guake.log
guake

exit 0

Save and exit.

start gnome-session-properties
and edit the guake entry in the command prompt like this:

Code: Select all

sh startguake.sh


Now guake will be auto-loaded.

Just had to figure this out, btw, for a KDE-only system. Of course, it would be easier to use UGLY-arse yakuake, but that's not now, or ever will be, in the cards here. For guake to auto-start in KDE, do the script above, startguake.sh. Then... go to KDE System Settings--->Startup and Shutdown---Add Script--->/usr/bin/startguake.sh

Next, do:

Code: Select all

su -
password
chmod a+x /usr/bin/startguake.sh

It will NOT work without this last code.
I'd rather be a free person who fears terrorists, than be a "safe" person who fears the government.
No gods, no masters.
"A druid is by nature anarchistic, that is, submits to no one."
http://uk.druidcollege.org/faqs.html

User avatar
viking60
Über-Berserk
Posts: 9351
Joined: 14 Mar 2010, 16:34

Re: Guake does not autostart - workaround

Postby viking60 » 02 Apr 2013, 01:44

Right You need to chmod it like every other script. I should have mentioned that. :Doh:
Manjaro 64bit on the main box -Intel(R) Core(TM) i7 CPU 920 @ 2.67GHz and nVidia Corporation GT200b [GeForce GTX 275] (rev a1. + Centos on the server - Arch on the laptop.
"There are no stupid questions - Only stupid answers!"

User avatar
dedanna1029
Sound-Berserk
Posts: 8780
Joined: 14 Mar 2010, 20:29
Contact:

Re: Guake does not autostart - workaround

Postby dedanna1029 » 02 Apr 2013, 12:20

What's funny about that, is that I didn't need to for the netbook (where guake's crashing in regular Gnome [gnome-shell]) - it works fine as-is for KDE and gnome-fallback.

Ooooooooooohhh.... wait....
I'd rather be a free person who fears terrorists, than be a "safe" person who fears the government.
No gods, no masters.
"A druid is by nature anarchistic, that is, submits to no one."
http://uk.druidcollege.org/faqs.html

User avatar
dedanna1029
Sound-Berserk
Posts: 8780
Joined: 14 Mar 2010, 20:29
Contact:

Re: Guake does not autostart - workaround

Postby dedanna1029 » 30 May 2013, 14:30

viking60 wrote:Try to make it sleep longer like 25 seconds instead of 15 - Gnome shell can be slow to get things up and running:

Code: Select all

#! /bin/sh
sleep 25
echo guake started: $(date) >> guake.log
guake

exit 0

It could work :confused

It does work thanks, however, I'm curious as to how necessary the ">> guake.log" part is? When this is used for startup, it also starts guake.log along with it in startup (or if the script is used just to start guake). Is the log necessary? Thanks.

Edit: I think I may have delved into the realm of "Help". Apologies.
I'd rather be a free person who fears terrorists, than be a "safe" person who fears the government.
No gods, no masters.
"A druid is by nature anarchistic, that is, submits to no one."
http://uk.druidcollege.org/faqs.html

User avatar
viking60
Über-Berserk
Posts: 9351
Joined: 14 Mar 2010, 16:34

Re: Guake does not autostart - workaround

Postby viking60 » 30 May 2013, 16:35

You do not need the log part. It is just for information on the guake startup written to guake.log.
Manjaro 64bit on the main box -Intel(R) Core(TM) i7 CPU 920 @ 2.67GHz and nVidia Corporation GT200b [GeForce GTX 275] (rev a1. + Centos on the server - Arch on the laptop.
"There are no stupid questions - Only stupid answers!"

User avatar
dedanna1029
Sound-Berserk
Posts: 8780
Joined: 14 Mar 2010, 20:29
Contact:

Re: Guake does not autostart - workaround

Postby dedanna1029 » 31 May 2013, 00:32

OK, thanks much.
I'd rather be a free person who fears terrorists, than be a "safe" person who fears the government.
No gods, no masters.
"A druid is by nature anarchistic, that is, submits to no one."
http://uk.druidcollege.org/faqs.html


Return to “Tips & Tricks”