Guake / guake

Drop-down terminal for GNOME
https://guake.github.io
GNU General Public License v2.0
4.46k stars 579 forks source link

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

Open GaurangTandon opened 4 years ago

GaurangTandon commented 4 years ago

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 commented 4 years ago

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'
rccardero commented 4 years ago

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
xoxefdp commented 4 years ago

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
kryo2k commented 3 years ago

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
Davidy22 commented 3 years ago

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?

GaurangTandon commented 3 years ago

@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.

Davidy22 commented 3 years ago

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

GaurangTandon commented 3 years ago

@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.

Davidy22 commented 3 years ago

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

GaurangTandon commented 3 years ago

@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 ```
Davidy22 commented 3 years ago

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

Czaki commented 2 years ago

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:
Davidy22 commented 2 years ago

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