Skip to content

Commit

Permalink
Adapt to new codecs packages and the fact that all editions now come …
Browse files Browse the repository at this point in the history
…without them
  • Loading branch information
clefebvre committed May 5, 2016
1 parent bed4682 commit 46429dd
Showing 1 changed file with 9 additions and 8 deletions.
17 changes: 9 additions & 8 deletions usr/lib/linuxmint/mintwelcome/mintwelcome.py
Expand Up @@ -46,6 +46,9 @@ def __init__(self):
self.is_lmde = True
self.dist_name = "LMDE"
self.codec_pkg_name = "mint-meta-debian-codecs"
else:
if "KDE" in desktop:
self.codec_pkg_name = "mint-meta-codecs-kde"

bgcolor = Gdk.RGBA()
bgcolor.parse("rgba(0,0,0,0)")
Expand Down Expand Up @@ -124,14 +127,12 @@ def __init__(self):

add_codecs = False

if ("Gnome" in desktop or "MATE" in desktop):
# Some GNOME editions (Cinnamon, MATE) can come without codecs
import apt
cache = apt.Cache()
if self.codec_pkg_name in cache:
pkg = cache[self.codec_pkg_name]
if not pkg.is_installed:
add_codecs = True
import apt
cache = apt.Cache()
if self.codec_pkg_name in cache:
pkg = cache[self.codec_pkg_name]
if not pkg.is_installed:
add_codecs = True

self.last_selected_path = None

Expand Down

0 comments on commit 46429dd

Please sign in to comment.