From 09a1c677bc5757ffef602be364a4f32257d6d574 Mon Sep 17 00:00:00 2001 From: Lukas Ruzicka Date: Tue, 7 May 2019 11:42:36 +0200 Subject: [PATCH] Create a way to start applications using commands. --- lib/utils.pm | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/lib/utils.pm b/lib/utils.pm index c071d919..4391babf 100644 --- a/lib/utils.pm +++ b/lib/utils.pm @@ -673,6 +673,25 @@ sub quit_firefox { console_login(user=>'root'); } +sub start_with_command { +# Open the DE application launcher and type the name of application into it. +# Hit enter to run this application. + +my $command = $_; +my $desktop = get_var('DESKTOP'); + +# Open the launching page or menu +send_key 'alt-f1'; +wait_still_screen 2; + +# Type the command name to run the application +type_very_safely $command; +send_key 'ret'; +wait_still_screen 5; + +} + + sub start_with_launcher { # Get the name of the needle with a launcher, find the launcher in the menu # and click on it to start the application. This function works for the