Desktop launcher skill

I’m on a Debian PC, I updated a few days ago to latest version mycroft-core 18.2.6 beta and now the desktop launcher skill does not work anymore.
Commands are recognised but it seems as if Mycroft does not find the desktop launcher skill. I reinstalled the skill from the repo but same result.
Anything that can be done?


BTW : great work Mycroft!

18:20:29.522 - - DEBUG - {“type”: “recognizer_loop:record_end”, “data”: {}, “context”: null}
18:20:29.525 - - DEBUG - {“type”: “recognizer_loop:wakeword”, “data”: {“utterance”: “hey mycroft”, “session”: “75011475-8d4c-4edf-950d-28a97985f34b”}, “context”: null}
18:20:30.343 - - DEBUG - {“type”: “skill-date-time:TimeSkillupdate_display”, “data”: {}, “context”: null}
18:20:31.210 - - DEBUG - {“type”: “recognizer_loop:utterance”, “data”: {“utterances”: [“open dolphin”], “lang”: “en-US”, “session”: “75011475-8d4c-4edf-950d-28a97985f34b”}, “context”: {“client_name”: “mycroft_listener”, “ident”: “1526833229.5232032434926408063047148”}}
18:20:31.216 - - DEBUG - {“type”: “intent_failure”, “data”: {“utterance”: “open dolphin”, “lang”: “en-US”}, “context”: {“client_name”: “mycroft_listener”, “ident”: “1526833229.5232032434926408063047148”}}
18:20:31.220 - - DEBUG - {“type”: “mycroft.skill.handler.start”, “data”: {“handler”: “fallback”}, “context”: null}
18:20:31.226 - - DEBUG - {“type”: “speak”, “data”: {“utterance”: “I don’t understand, but I’m learning new things everyday.”, “expect_response”: false}, “context”: {“client_name”: “mycroft_listener”, “ident”: “1526833229.5232032434926408063047148”}}
18:20:31.228 - - DEBUG - {“type”: “mycroft.skill.handler.complete”, “data”: {“handler”: “fallback”, “fallback_handler”: “UnknownSkill.handle_fallback”}, “context”: null}
18:20:33.286 - - DEBUG - {“type”: “enclosure.eyes.blink”, “data”: {“side”: “b”}, “context”: null}
18:20:33.290 - - DEBUG - {“type”: “recognizer_loop:audio_output_start”, “data”: {}, “context”: null}
18:20:33.295 - - DEBUG - {“type”: “enclosure.mouth.viseme”, “data”: {“code”: “4”, “until”: 1526833233.4264274}, “context”: null}

As far as I understand, shere is a change in 18.2.6 to Python 3, and then the skills needs updating. There is a new way of publishing skills as well

The skills taht is aproved and should work is in the 18.02 branch on github

ai, then I’m afraid this skill has not been updated yet.
I’m patient. :wink:

1 Like

Hi guys. I had the same problem. Is a problem importing a library “gi” that I couldn’t install so I just changed a few things in the code (I don’t use “gi”). This works for me
Tested in ubuntu, if it doesn’t work in your system just tell me. Download and unpack in /opt/mycroft/skills/ or the location of your skills

1 Like

Hey Adrian,
thanks for this - I installed your version : it works!

with a small quirk :wink:
I understand your skill reads the available mycroft-launchable programs from the filenames ending with .desktop in /usr/share/applications/.
This makes it somewhat difficult for kde applications that are in this directory on my debian system as follows (f.e.):

applications$ ls org.kde.*

ln or renaming the files solve the problem but seems like a bad hack. Any idea how to overcome this?

Sorry, I don’t have any python knowledge.

Thanks for your efforts!
Best regards,

the GI module is for python2. For python3 you need the GI from PyGobject. For me to get it working I had to;

source /home//mycroft-core/.venv/bin/activate

The uninstall gi, if installed;

pip uninstall gi

And than instal the PyObject by:

pip install PyObect

However I was missing some dev bindings, so for it to succeed I needed to install some dependencies by;

sudo apt-get install libgirepository1.0-dev
sudo apt-get install libcairo2-dev

Then the “pip install PyObject” succeeded. You should then see the;

“/home//mycroft-core/.venv/lib/python3.6/site-packages/gi” folder and the Skill should load.

Got it!
allthough on my Debian system i had to :

apt-get install python-gobject

$pip install PyGobject

Thanks for the guidance! works like a charm now with the skill from the repo.


oops that’s big :wink:

1 Like