guake icon indicating copy to clipboard operation
guake copied to clipboard

Guake does not auto-launch on computer boot in Ubuntu 20.04

Open GaurangTandon opened this issue 4 years ago • 13 comments

Everytime I restart my pc, I have to manually launch Guake on boot. Here is my settings screenshot:

image

As you can see "Start Guake on login" is checked, so I am not sure what else to do.


Please run $ guake --support, and paste the results here. Don't put backticks (`) around it! The output already contains Markdown formatting. And make sure you run the command OUTSIDE the Guake.

$ guake --support

Guake Version: 3.6.3

Vte Version: 0.60.3

Vte Runtime Version: 0.60.3


GTK+ Version: 3.24.20

GDK Backend: GdkX11.X11Display


Desktop Session: ubuntu


Display: :0

RGBA visual: True

Composited: True

  • Monitor: 0 - BOE eDP-1
    • Geometry: 1360 x 768 at 0, 0
    • Size: 344 x 193 mm²
    • Primary: True
    • Refresh rate: 59.96 Hz
    • Subpixel layout: unknown

GaurangTandon avatar Jul 21 '20 12:07 GaurangTandon

I tried installing by pipx (for v3.7.0) but I can't run it, logs:

~ pipx install guake            
  installed package guake 3.7.0, Python 3.8.2
  These apps are now globally available
    - guake
    - guake-toggle
done! ✨ 🌟 ✨
~ guake-toggle   
Traceback (most recent call last):
  File "/home/gt/.local/bin/guake-toggle", line 8, in <module>
    sys.exit(toggle_guake_by_dbus())
  File "/home/gt/.local/pipx/venvs/guake/lib/python3.8/site-packages/guake/guake_toggle.py", line 2, in toggle_guake_by_dbus
    import dbus
ModuleNotFoundError: No module named 'dbus'
~ guake       
Traceback (most recent call last):
  File "/home/gt/.local/bin/guake", line 5, in <module>
    from guake.main import exec_main
  File "/home/gt/.local/pipx/venvs/guake/lib/python3.8/site-packages/guake/main.py", line 41, in <module>
    from guake.support import print_support
  File "/home/gt/.local/pipx/venvs/guake/lib/python3.8/site-packages/guake/support.py", line 5, in <module>
    import gi
ModuleNotFoundError: No module named 'gi'

GaurangTandon avatar Jul 21 '20 12:07 GaurangTandon

I have the same problem in Ubuntu 20.04, and I have to manually launch Guake on boot, The output of the command is:

$ guake --support

Guake Version: 3.6.3

Vte Version: 0.60.3

Vte Runtime Version: 0.60.3


GTK+ Version: 3.24.20

GDK Backend: GdkX11.X11Display


Desktop Session: ubuntu


Display: :0

RGBA visual: True

Composited: True

  • Monitor: 0 - CMN eDP-1
    • Geometry: 1366 x 768 at 0, 0
    • Size: 309 x 173 mm²
    • Primary: True
    • Refresh rate: 60.00 Hz
    • Subpixel layout: unknown

rccardero avatar Oct 27 '20 04:10 rccardero

Same case here, running Xubuntu 20.04

$ guake --support

Guake Version: 3.6.3

Vte Version: 0.60.3

Vte Runtime Version: 0.60.3


GTK+ Version: 3.24.20

GDK Backend: GdkX11.X11Display


Desktop Session: xubuntu


Display: :0.0

RGBA visual: True

Composited: True

  • Monitor: 0 - AUO eDP
    • Geometry: 1366 x 768 at 0, 0
    • Size: 344 x 193 mm²
    • Primary: True
    • Refresh rate: 60.05 Hz
    • Subpixel layout: unknown

xoxefdp avatar Nov 14 '20 09:11 xoxefdp

Same here, Ubuntu 20.04. In my case, even if I open the "main app" from the menu, it fails to load. It only loads the terminal dock if I open the "preferences app". I've tried a variety of ways to auto start, including manually tinkering with the "Start up applications" of Ubuntu. None of the preference settings seem to have a positive effect.

$ guake --support

Guake Version: 3.7.0

Vte Version: 0.60.3

Vte Runtime Version: 0.60.3


GTK+ Version: 3.24.20

GDK Backend: GdkX11.X11Display


Desktop Session: ubuntu


Display: :0

RGBA visual: True

Composited: True

  • Monitor: 0 - SHP eDP-1
    • Geometry: 1920 x 1200 % 2 at 0, 0
    • Size: 288 x 180 mm²
    • Primary: True
    • Refresh rate: 59.99 Hz
    • Subpixel layout: unknown

kryo2k avatar May 12 '21 15:05 kryo2k

For @GaurangTandon, try the following commands:

sudo apt-get install python3-gi
pip install dbus

And that should resolve your dependency issues. dbus not installing as a dependency is probably an error, will check our packaging, and we're going to need to figure out a way to install the gi dependency from just pip. For the others, you may not be experiencing the exact same issue as the original poster; can you run guake from a terminal and report back on the error message?

Davidy22 avatar Sep 16 '21 00:09 Davidy22

@Davidy22 Thanks for your response! Unfortunately, it seems dbus is not even a package on the pypi repo so I'm not sure how the pip install is going to work. When I run it I get the error:

ERROR: Could not find a version that satisfies the requirement dbus (from versions: none)
ERROR: No matching distribution found for dbus

as expected.

GaurangTandon avatar Sep 16 '21 04:09 GaurangTandon

Oh, whoops, dbus-python. Should have import name dbus.

Davidy22 avatar Sep 16 '21 04:09 Davidy22

@Davidy22 Sorry for my late followup. See the logs, I ran them on a fresh Ubuntu install:

$ sudo apt-get install python3-gi
Reading package lists... Done
Building dependency tree       
Reading state information... Done
python3-gi is already the newest version (3.36.0-1).
python3-gi set to manually installed.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
$ python3 -m pip install dbus-python
Requirement already satisfied: dbus-python in /usr/lib/python3/dist-packages (1.2.16)
$ pipx install guake
  installed package guake 3.7.0, Python 3.8.10
  These apps are now globally available
    - guake
    - guake-toggle
done! ✨ 🌟 ✨
$ guake-toggle
Traceback (most recent call last):
  File "/home/gt/.local/bin/guake-toggle", line 8, in <module>
    sys.exit(toggle_guake_by_dbus())
  File "/home/gt/.local/pipx/venvs/guake/lib/python3.8/site-packages/guake/guake_toggle.py", line 2, in toggle_guake_by_dbus
    import dbus
ModuleNotFoundError: No module named 'dbus'

I also tried installing into the virtualenv itself:

$ source ~/.local/pipx/venvs/guake/bin/activate
(guake) $ pip install dbus-python
Requirement already satisfied: dbus-python in /usr/lib/python3/dist-packages (1.2.16)

Please suggest what else to do.

GaurangTandon avatar Oct 09 '21 15:10 GaurangTandon

Oh, don't install via pipx, Guake has dependencies outside python that aren't seen inside the pipx environment, just use pip to install guake. Uninstall via pipx to be sure that it doesn't continue to try to open the pipx version

Davidy22 avatar Oct 09 '21 15:10 Davidy22

@Davidy22 That didn't help, unfortunately :/ I launched guake via terminal, set auto-start on login in preferences, but it still does not autostart.

$ guake --support ``` Guake Version: 3.7.0

Vte Version: 0.60.3

Vte Runtime Version: 0.60.3


GTK+ Version: 3.24.20

GDK Backend: GdkX11.X11Display


Desktop Session: ubuntu


Display: :0

RGBA visual: True

Composited: True

  • Monitor: 0 - NCP eDP
    • Geometry: 1280 x 720 % 2 at 0, 0
    • Size: 344 x 194 mm²
    • Primary: True
    • Refresh rate: 144.00 Hz
    • Subpixel layout: unknown
  • Monitor: 1 - HCM HDMI-A-0
    • Geometry: 1366 x 768 % 2 at 1280, 0
    • Size: 410 x 230 mm²
    • Primary: False
    • Refresh rate: 59.79 Hz
    • Subpixel layout: unknown
</details>

GaurangTandon avatar Oct 09 '21 15:10 GaurangTandon

Hrm. For now, you can use ubuntu's general startup programs menu, and we'll look into this a bit more

Davidy22 avatar Oct 09 '21 15:10 Davidy22

Hrm. For now, you can use ubuntu's general startup programs menu, and we'll look into this a bit more

No. As guake remove itself from startup programs.

I still need to launch guake manually on ubuntu 22.04:

$ guake --support

Guake Version: 3.8.5

Vte Version: 0.68.0

Vte Runtime Version: 0.68.0


GTK+ Version: 3.24.33

GDK Backend: <GdkX11.X11Display


Desktop Session: ubuntu


Display: :1

RGBA visual: True

Composited: True

  • Monitor: 0 - DEL DP-2
    • Geometry: 2560 x 1440 at 1920, 0
    • Size: 597 x 336 mm²
    • Primary: True
    • Refresh rate: 59.95 Hz
    • Subpixel layout: unknown
  • Monitor: 1 - BNQ HDMI-0
    • Geometry: 1920 x 1080 at 0, 0
    • Size: 477 x 268 mm²
    • Primary: False
    • Refresh rate: 60.0 Hz
    • Subpixel layout: unknown
  • Monitor: 2 - BNQ HDMI-1
    • Geometry: 1920 x 1080 at 4480, 0
    • Size: 477 x 268 mm²
    • Primary: False
    • Refresh rate: 60.0 Hz
    • Subpixel layout: unknown

Czaki avatar Sep 09 '22 11:09 Czaki

If the guake checkbox to open on startup doesn't work and guake doesn't show up on ubuntu's startup programs list, you can also try just setting the guake shell command to run at startup

Davidy22 avatar Sep 20 '22 16:09 Davidy22