From 0401e44420170366a0c896f8064921b501fcc242 Mon Sep 17 00:00:00 2001 From: Adam Williamson Date: Wed, 3 Mar 2021 15:10:43 -0800 Subject: [PATCH] Revert "Handle print-to-PDF printing to a different directory on KDE now" This was caused by a bug which has now been fixed. --- tests/desktop_printing.pm | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/tests/desktop_printing.pm b/tests/desktop_printing.pm index 8306900c..f130fe26 100644 --- a/tests/desktop_printing.pm +++ b/tests/desktop_printing.pm @@ -19,9 +19,7 @@ sub run { # Leave the root terminal and switch back to desktop. desktop_vt(); my $desktop = get_var("DESKTOP"); - my $relnum = get_release_number; # some simple variances between desktops. defaults are for GNOME - my $pdfloc = "/home/test/Desktop"; my $editor = "gedit"; my $viewer = "evince"; my $maximize = "super-up"; @@ -29,9 +27,6 @@ sub run { $editor = "kwrite"; $viewer = "okular"; $maximize = "super-pgup"; - if ($relnum > 33) { - $pdfloc = "/home/test"; - } } # Open the text editor and print the file. @@ -63,7 +58,7 @@ sub run { # Open the pdf file and check the print send_key "alt-f2"; wait_still_screen(stilltime=>5, similarity_level=>45); - type_safely "$viewer $pdfloc/testfile.pdf\n"; + type_safely "$viewer /home/test/Desktop/testfile.pdf\n"; wait_still_screen(stilltime=>5, similarity_level=>45); # Resize the window, so that the size of the document fits the bigger space # and gets more readable.