Build an open future with us.

Invest in Mycroft and become a community partner.

Can I run Linux Commands?


#1

Is there a way that I can get Mycroft to run some linux programs. I am running Linux Mint 19 on a laptop. For example:

  • “Hey Mycroft. Open Firefox.”
  • “Hey Mycroft. Open Pithos”

Etc.

Thanks!


#2

The desktop skill can accomplish most of this now. https://github.com/TREE-Ind/desktop-control/tree/e3eaa3827f4644d5c4d5fc1b878ba7bb83aae657


#3

Thanks. This looks like it requires the KDE Plasma Desktop. Is that the case?


#4

I believe so, yes. (20char padding)


#5

Thanks. unfortunately, that will not work for me. I use Cinnamon and Xfce. Is there another way that you know of?


#6

Use that skill as a framework to for another skill that works in xfce?


#7

Hi there @DennisD,

At the moment the skill-desktop only works on Mycroft for Plasma.

A separate Skill will be required for other distributions, and will need to specifically use the path to executables on that particular distribution; this is one of the drawbacks of Mycroft across multiple distributions.

At a code level, we try to provide a way to do this using requirements.sh - which can be used to conditionally import different libraries or binaries for different platforms.

In summary though, this would require a new Skill to be developed for xfce / Cinnamon.