mirror of
https://pagure.io/fedora-qa/os-autoinst-distri-fedora.git
synced 2024-11-25 15:23:08 +00:00
Handle print-to-PDF printing to a different directory on KDE now
In F34+, print-to-PDF in KDE is printing to /home/test , not /home/test/Desktop. Not sure why. But let's deal with it. Signed-off-by: Adam Williamson <awilliam@redhat.com>
This commit is contained in:
parent
274a8f1b47
commit
b6a6c1d7dd
@ -19,7 +19,9 @@ sub run {
|
|||||||
# Leave the root terminal and switch back to desktop.
|
# Leave the root terminal and switch back to desktop.
|
||||||
desktop_vt();
|
desktop_vt();
|
||||||
my $desktop = get_var("DESKTOP");
|
my $desktop = get_var("DESKTOP");
|
||||||
|
my $relnum = get_release_number;
|
||||||
# some simple variances between desktops. defaults are for GNOME
|
# some simple variances between desktops. defaults are for GNOME
|
||||||
|
my $pdfloc = "/home/test/Desktop";
|
||||||
my $editor = "gedit";
|
my $editor = "gedit";
|
||||||
my $viewer = "evince";
|
my $viewer = "evince";
|
||||||
my $maximize = "super-up";
|
my $maximize = "super-up";
|
||||||
@ -27,6 +29,9 @@ sub run {
|
|||||||
$editor = "kwrite";
|
$editor = "kwrite";
|
||||||
$viewer = "okular";
|
$viewer = "okular";
|
||||||
$maximize = "super-pgup";
|
$maximize = "super-pgup";
|
||||||
|
if ($relnum > 33) {
|
||||||
|
$pdfloc = "/home/test";
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
# Open the text editor and print the file.
|
# Open the text editor and print the file.
|
||||||
@ -58,7 +63,7 @@ sub run {
|
|||||||
# Open the pdf file and check the print
|
# Open the pdf file and check the print
|
||||||
send_key "alt-f2";
|
send_key "alt-f2";
|
||||||
wait_still_screen(stilltime=>5, similarity_level=>45);
|
wait_still_screen(stilltime=>5, similarity_level=>45);
|
||||||
type_safely "$viewer /home/test/Desktop/testfile.pdf\n";
|
type_safely "$viewer $pdfloc/testfile.pdf\n";
|
||||||
wait_still_screen(stilltime=>5, similarity_level=>45);
|
wait_still_screen(stilltime=>5, similarity_level=>45);
|
||||||
# Resize the window, so that the size of the document fits the bigger space
|
# Resize the window, so that the size of the document fits the bigger space
|
||||||
# and gets more readable.
|
# and gets more readable.
|
||||||
|
Loading…
Reference in New Issue
Block a user