#!/usr/bin/python
# -*- coding: UTF-8 -*-

# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License along
# with this program; if not, write to the Free Software Foundation, Inc.,
# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.

"""Restricted Modules Manager.

Usage:
  --update          Update the restricted modules list
  --check           Check for newly used restricted modules
  --enable MODULE   Enable the named module
  --disable MODULE  Disable the named module
  --check-composite Check if there is a graphics driver available that supports
                    composite and offer to enable it

Without arguments, immediately loads the restricted modules manager
window.
"""

__copyright__ = "Copyright © 2007 Canonical Ltd."
__author__    = "Scott James Remnant <scott@ubuntu.com>"

import sys

if sys.argv[0].endswith("restricted-manager-kde") == True:
    from RestrictedManager.RestrictedManagerKDE import RestrictedManagerKDE as RestrictedManager
else:
    from RestrictedManager.RestrictedManagerGtk import RestrictedManagerGtk as RestrictedManager

rm = RestrictedManager()
