diff options
Diffstat (limited to 'usr/share/mageiawelcome/mageiawelcome.py')
-rw-r--r-- | usr/share/mageiawelcome/mageiawelcome.py | 16 |
1 files changed, 13 insertions, 3 deletions
diff --git a/usr/share/mageiawelcome/mageiawelcome.py b/usr/share/mageiawelcome/mageiawelcome.py index c980038..4e9bb8d 100644 --- a/usr/share/mageiawelcome/mageiawelcome.py +++ b/usr/share/mageiawelcome/mageiawelcome.py @@ -1,3 +1,4 @@ +#!/usr/bin/env python3 # -*- coding: utf-8 -*- import signal @@ -12,6 +13,12 @@ import gi gi.require_version('Gtk', '3.0') from gi.repository import Gtk +import sys + +PACKAGE_PARENT = '..' +SCRIPT_DIR = os.path.dirname(os.path.realpath(os.path.join(os.getcwd(), os.path.expanduser(__file__)))) +sys.path.append(os.path.normpath(os.path.join(SCRIPT_DIR, PACKAGE_PARENT))) + from webgui import start_gtk_thread from webgui import launch_browser from webgui import synchronous_gtk_message @@ -84,8 +91,10 @@ def main(): l['user'] = username l['welcome_msg'] = _("<p>Thank you for choosing Mageia!</p><p>We have put in a lot of effort to provide you with the best possible system. We hope you will have a good experience with Mageia. If you feel that our project is a good idea, we would also appreciate any contribution you can make to it for next versions.</p><p>To find out how you can help <a class='weblink' href='https://www.mageia.org/contribute/'>click here</a>.</p><p>Don't forget to tell your friends about Mageia.</p>") l['mcc'] = _("Mageia Control Center") - l['conf_update'] = _("Configure media sources and update system") + l['conf_update'] = _("Update system") l['inst_remove'] = _("Install and remove software") + l['list_config'] = _("Summary of this configuration") + l['go_further'] = _("To go further") l['h_documentation'] = _("Documentation") l['h_documentation_url'] = _("https://wiki.mageia.org/en/Documentation") l['features'] = _("New Features") @@ -131,6 +140,7 @@ def main(): l['note'] = _("<strong>Note!</strong> non-free and tainted are not enabled by default.") l['editss'] = _("Edit software sources") l['updsys'] = _("... and update system") + l['updpol'] = _("The Mageia's update policy is...") l['chkupd'] = _("Check system updates") l['guirpmdrake'] = _("GUI - RPMDrake") l['rpmdrake_desc'] = _("<span class='label green'>Rpmdrake</span> is a program for installing, uninstalling and updating packages. It is the graphical user interface of <span class='label green'>urpmi</span>") @@ -197,9 +207,9 @@ def main(): os.system("mkdir -p " + home + "/.mageiawelcome") os.system("touch " + home + "/.mageiawelcome/norun.flag") elif msg.startswith("http"): - subprocess.Popen(["xdg-open ", msg]) + subprocess.Popen(["xdg-open", msg]) elif msg.startswith("irc"): - subprocess.Popen(["xdg-open ", msg]) + subprocess.Popen(["xdg-open", msg]) elif msg.startswith("run"): args = shlex.split(msg) args.pop(0) |