aboutsummaryrefslogtreecommitdiffstats
path: root/edit-urpm-sources.pl
diff options
context:
space:
mode:
Diffstat (limited to 'edit-urpm-sources.pl')
-rwxr-xr-xedit-urpm-sources.pl5
1 files changed, 5 insertions, 0 deletions
diff --git a/edit-urpm-sources.pl b/edit-urpm-sources.pl
index 5af94d02..5973d152 100755
--- a/edit-urpm-sources.pl
+++ b/edit-urpm-sources.pl
@@ -29,6 +29,11 @@ require_root_capability();
use rpmdrake;
+eval { require ugtk2; ugtk2->import(qw(:all)) };
+if ($@) {
+ print "This program cannot be run in console mode.\n";
+ c::_exit(0); #- skip ugtk2::END
+}
$::isStandalone = 1;