Guake / Guake/guake

Guake fails to launch if permissions messed up on autostart

Open
#1,544 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
4.7k
Forks
604
PR merge metrics
No merged PRs in 30d

Description

Hi there, after upgrading from ubuntu 18.10 to 19.04, guake wasn't launching, after investigating by launching it through another terminal I received the following error:

> Traceback (most recent call last):
> File "/usr/lib/python3/dist-packages/dbus/bus.py", line 175, in activate_name_owner
> return self.get_name_owner(bus_name)
> File "/usr/lib/python3/dist-packages/dbus/bus.py", line 361, in get_name_owner
> 's', (bus_name,), **keywords)
> File "/usr/lib/python3/dist-packages/dbus/connection.py", line 651, in call_blocking
> message, timeout)
> dbus.exceptions.DBusException: org.freedesktop.DBus.Error.NameHasNoOwner: Could not get owner of name 'org.guake3.RemoteControl': no such name
>
> During handling of the above exception, another exception occurred:
>
> Traceback (most recent call last):
> File "/usr/lib/python3/dist-packages/guake/main.py", line 295, in main
> remote_object = bus.get_object(DBUS_NAME, DBUS_PATH)
> File "/usr/lib/python3/dist-packages/dbus/bus.py", line 241, in get_object
> follow_name_owner_changes=follow_name_owner_changes)
> File "/usr/lib/python3/dist-packages/dbus/proxies.py", line 248, in __init__
> self._named_service = conn.activate_name_owner(bus_name)
> File "/usr/lib/python3/dist-packages/dbus/bus.py", line 180, in activate_name_owner
> self.start_service_by_name(bus_name)
> File "/usr/lib/python3/dist-packages/dbus/bus.py", line 278, in start_service_by_name
> 'su', (bus_name, flags)))
> File "/usr/lib/python3/dist-packages/dbus/connection.py", line 651, in call_blocking
> message, timeout)
> dbus.exceptions.DBusException: org.freedesktop.DBus.Error.ServiceUnknown: The name org.guake3.RemoteControl was not provided by any .service files
>
> During handling of the above exception, another exception occurred:
>
> Traceback (most recent call last):
> File "/usr/bin/guake", line 10, in
> sys.exit(exec_main())
> File "/usr/lib/python3/dist-packages/guake/main.py", line 410, in exec_main
> if not main():
> File "/usr/lib/python3/dist-packages/guake/main.py", line 310, in main
> instance = Guake()
> File "/usr/lib/python3/dist-packages/guake/guake_app.py", line 263, in __init__
> refresh_user_start(self.settings)
> File "/usr/lib/python3/dist-packages/guake/prefs.py", line 332, in refresh_user_start
> os.path.join(os.path.expanduser(AUTOSTART_FOLDER), "guake.desktop")
> File "/usr/lib/python3.7/shutil.py", line 121, in copyfile
> with open(dst, 'wb') as fdst:
> PermissionError: [Errno 13] Permission denied: '/home/alex/.config/autostart/guake.desktop'
>

To me (a Linux novice) the permissions look fine:

alex@Muttokon:autostart$ ls -l
total 0
lrwxrwxrwx 1 alex alex 44 Mar 6 16:50 guake.desktop -> /usr/share/guake/data/guake.template.desktop

Regardless, removing the autostart entry via the command rm /home/alex/.config/autostart/guake.desktop caused guake to launch normally again.

I post this for 2 reasons: To explain the issue for other users upgrading ubuntu versions who might run into this error, and to perhaps ask that a more interactive error message is given by the software in the future if it can't edit the autostart, instead of it simply crashing. I'm sorry if this is in the wrong place as it's not really a bug, just a messed up configuration, and it might be a problem with the ubuntu package rather than the actual software.

Whilst I'm here, thanks for creating such a useful piece of software that I've otherwise had no problems with.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.