#!/usr/bin/python import sys import gettext from kdeui import * from kdecore import * from qt import * if len(sys.argv) < 2: sys.exit(0) gettext.install('kaffeine-install-codecs', None, True) about_data = KAboutData('install-codecs', 'Kafeine', '1.0') KCmdLineArgs.init([sys.argv[0]], about_data) app = KApplication() if (sys.argv[1] == 'ffmpeg'): answer = KMessageBox.questionYesNo(None, _(u'Kaffeine does not have a codec installed to play this file. ' 'Do you want to install the codecs?'), _(u'Codec not found'))