Linux Mint Türkiye

Linux Mint Destek => Masaüstü Ortamları => Cinnamon Masaüstü => Konuyu başlatan: omisili - 17 Nisan 2015, 21:18:34

Başlık: [Çözüldü] Mint 17.1 Rebecca Masaüstü Arkaplan Sorunu
Gönderen: omisili - 17 Nisan 2015, 21:18:34
Merhabalar. Casper nirvana dizüstüne Windows yanına Mint17 kurdum. Sorunum 3 tane .
1. Rebecca güncellemesi gelince onu yükledim ancak masaüstü resmini bir türlü değiştiremedim hala siyak ekran.
2. ise panelde pil şarj göstergesi otomatik olarak görünmüyor elle yeniden başlatmak gerekiyor.
bu ikisi güncelleme öncesi yoktu!
3. sorunum ise Mint  çok geç açılıyor ne yapabilirim=
Şimdiden teşekkürler.


Düzenleme : Konu başlığı ve imla
Başlık: Ynt: Mint 17.1 Rebecca Masaüstü Arkaplan Sorunu
Gönderen: Butterfly - 17 Nisan 2015, 21:48:48
@omisli, forumda bir konuda sadece bir soru/sorun hakkında konuşuyoruz. Bu konuda masaüstü arkaplan resmi hakkında çözüm arayalım. Diğerleri hakkında ayrı ayrı konular açmanızı rica edelim. Konu başlığınıda bu doğrultuda değiştirdim.

Aşağıdaki komutu uçbirimde çalıştırarak Cinnamon Ayarlarındaki Arkaplan bölümünü açmaya çalışınız. Bu bölümden arkaplan resmini değiştirebiliyor musunuz? Eğer bir sorun varsa aşağıdaki komutun uçbirimdeki çıktısını kod etiketi (http://forum.linuxmint.net.tr/index.php?topic=2629.0) içinde foruma yapıştırarak paylaşırsanız çözüm aramaya gayret edebiliriz.

Kod: [Seç]
cinnamon-settings backgrounds
Başlık: Ynt: Mint 17.1 Rebecca Masaüstü Arkaplan Sorunu
Gönderen: omisili - 18 Nisan 2015, 21:16:05
Bİrden çok soru sorduğum için kusuruma bakmayın .
soruna gelince arkaplanlardan değiştirmeyi denedim ama nafile :(
Kod: [Seç]
Python module
Loading Backgrounds module
__init__ took 556.723 ms
Başlık: Ynt: Mint 17.1 Rebecca Masaüstü Arkaplan Sorunu
Gönderen: Genizcil_N - 18 Nisan 2015, 22:39:13
Yanlış anlaşılma varsa düzeltelim. Butterfly'ın demek istediği aynı konu başlığı altında birden çok soru sorulması. Forum düzeni için, soruları ayrı başlıklar altında soruyoruz. Bu sayede gelecekte aynı sorunu yaşayanlar konuya daha kolay ulaşabilirler.

Çıktı sadece bu kadar mı?
Başlık: Ynt: Mint 17.1 Rebecca Masaüstü Arkaplan Sorunu
Gönderen: omisili - 18 Nisan 2015, 22:45:33
evet başka bir şey çıkmadı
arkaplan sayfasında fotolara tıkladığım halde değişmiyor
Bu arada yanlış anlaşılma yok benim bilgisizliğimden ilginiz için teşşekkürler :)
Başlık: Ynt: Mint 17.1 Rebecca Masaüstü Arkaplan Sorunu
Gönderen: Genizcil_N - 18 Nisan 2015, 22:53:18
Kod: [Seç]
sudo gedit /usr/lib/cinnamon-settings/bin/imtools.pyKomutunu verin. Şifrenizi girip giriş(enter) tuşuna basın. Açılan pencerede 862. satır şöyle ise:
Kod: [Seç]
    if source == mask:şu şekilde değiştirin:
Kod: [Seç]
    if mask and source == mask:Belgeyi kaydedip, kapatın.

Andıç/Dipçe/Not: Uçbirimde şifre girdiğiniz güvenlik amacıyla görünmez. Açılan belgede satır sayısı sağ altta belirtilir.
Başlık: Ynt: Mint 17.1 Rebecca Masaüstü Arkaplan Sorunu
Gönderen: omisili - 18 Nisan 2015, 22:59:31
862. satırda     if mask and source == mask:
yazıyor değiştirmeme gerek yok sanırım !
Başlık: Ynt: Mint 17.1 Rebecca Masaüstü Arkaplan Sorunu
Gönderen: Butterfly - 18 Nisan 2015, 23:10:07
Aşağıdaki komut ile arkaplan ayarlarını varsayılana değiştirmeyi deneyebilirsiniz.

Kod: [Seç]
gsettings reset-recursively org.cinnamon.desktop.background
Başlık: Ynt: Mint 17.1 Rebecca Masaüstü Arkaplan Sorunu
Gönderen: omisili - 18 Nisan 2015, 23:13:18
:(  yine değişmedi
Başlık: Ynt: Mint 17.1 Rebecca Masaüstü Arkaplan Sorunu
Gönderen: Butterfly - 18 Nisan 2015, 23:21:15
Aşağıdaki komutlar ile Cinnamon ayarlarını sıfırlayıp,

Kod: [Seç]
gsettings reset-recursively org.cinnamon
mv ~/.config/dconf/user ~/.config/dconf/user.ydk

ardından CTRL+ALT+GERİ (Backspace) tuşlarına birlikte basarak oturumu sonlandırmayı deneyiniz.
Böylece Cinnamon masaüstü ile ilgili genel ayarlar sıfırlanacaktır.
Başlık: Ynt: Mint 17.1 Rebecca Masaüstü Arkaplan Sorunu
Gönderen: omisili - 18 Nisan 2015, 23:34:04
Dediğinizi yaptım ancak yine olmadı .
oturum kapatılıp açılırken siyah ekranda  kırmızı yıldız işaretli
No suitable module for running kernel found yazısı çıktı bu bir problem mi acaba?
Başlık: Ynt: Mint 17.1 Rebecca Masaüstü Arkaplan Sorunu
Gönderen: Butterfly - 18 Nisan 2015, 23:45:02
Alıntı
No suitable module for running kernel found yazısı çıktı bu bir problem mi acaba?

Bu sorunla ilgisi olacağını sanmıyorum.

Aşağıdaki komut ile ayar dizinlerini silip aynı şekilde oturumu sonlandırmayı dener misiniz?

Kod: [Seç]
rm -rf ~/.cinnamon ~/.local
Başlık: Ynt: Mint 17.1 Rebecca Masaüstü Arkaplan Sorunu
Gönderen: omisili - 18 Nisan 2015, 23:50:13
Yine hiç birşey değişmedi  :-[
Başlık: Ynt: Mint 17.1 Rebecca Masaüstü Arkaplan Sorunu
Gönderen: Butterfly - 19 Nisan 2015, 00:06:55
Aşağıdaki komutların çıktılarını paylaşınız.

Kod: [Seç]
inxi -r
cinnamon --version
dpkg -l | egrep 'cinnamon|mint-meta'
Başlık: Ynt: Mint 17.1 Rebecca Masaüstü Arkaplan Sorunu
Gönderen: omisili - 19 Nisan 2015, 00:13:09
Kod: [Seç]
Repos:     Active apt sources in file: /etc/apt/sources.list.d/bumblebee-stable-trusty.list
           deb http://ppa.launchpad.net/bumblebee/stable/ubuntu trusty main
           deb-src http://ppa.launchpad.net/bumblebee/stable/ubuntu trusty main
           Active apt sources in file: /etc/apt/sources.list.d/official-package-repositories.list
           deb http://packages.linuxmint.com rebecca main upstream import
           deb http://extra.linuxmint.com rebecca main
           deb http://archive.ubuntu.com/ubuntu trusty main restricted universe multiverse
           deb http://archive.ubuntu.com/ubuntu trusty-updates main restricted universe multiverse
           deb http://security.ubuntu.com/ubuntu/ trusty-security main restricted universe multiverse
           deb http://archive.canonical.com/ubuntu/ trusty partner
           Active apt sources in file: /etc/apt/sources.list.d/tualatrix-ppa-trusty.list
           deb http://ppa.launchpad.net/tualatrix/ppa/ubuntu trusty main
           deb-src http://ppa.launchpad.net/tualatrix/ppa/ubuntu trusty main
           Active apt sources in file: /etc/apt/sources.list.d/xorg-edgers-ppa-trusty.list
           deb http://ppa.launchpad.net/xorg-edgers/ppa/ubuntu trusty main
           deb-src http://ppa.launchpad.net/xorg-edgers/ppa/ubuntu trusty main
           Active apt sources in file: /etc/apt/sources.list.d/yannubuntu-boot-repair-trusty.list
           deb http://ppa.launchpad.net/yannubuntu/boot-repair/ubuntu trusty main
           deb-src http://ppa.launchpad.net/yannubuntu/boot-repair/ubuntu trusty main
erdem@erdem-Casper-Nirvana-Notebook ~ $ cinnamon --version
Cinnamon 2.4.8
erdem@erdem-Casper-Nirvana-Notebook ~ $ dpkg -l | egrep 'cinnamon|mint-meta'
ii  cinnamon                                    2.4.8+rebecca                                       amd64        Cinnamon desktop
ii  cinnamon-bluetooth                          3.8.7+rebecca                                       amd64        Gnome Bluetooth support for the Cinnamon desktop
ii  cinnamon-common                             2.4.8+rebecca                                       all          Cinnamon desktop (Common data files)
ii  cinnamon-control-center                     2.4.2+rebecca                                       amd64        utilities to configure the Cinnamon desktop
ii  cinnamon-control-center-data                2.4.2+rebecca                                       all          configuration applets for Cinnamon - data files
ii  cinnamon-desktop-data                       2.4.2+rebecca                                       all          Common files for Cinnamon desktop apps
ii  cinnamon-screensaver                        2.4.2+rebecca                                       amd64        Cinnamon screen saver and locker
ii  cinnamon-session                            2.4.3+rebecca                                       amd64        Cinnamon Session Manager - Minimal runtime
ii  cinnamon-session-common                     2.4.3+rebecca                                       all          Cinnamon Session Manager - common files
ii  cinnamon-settings-daemon                    2.4.3+rebecca                                       amd64        daemon handling the Cinnamon session settings
ii  cinnamon-themes                             2014.11.18.1                                        all          Cinnamon themes
ii  cinnamon-translations                       2.4.4+rebecca                                       all          Translation files for the Cinnamon desktop
ii  gir1.2-cinnamondesktop-3.0                  2.4.2+rebecca                                       amd64        Introspection data for CinnamonDesktop
ii  libcinnamon-control-center1                 2.4.2+rebecca                                       amd64        utilities to configure the Cinnamon desktop
ii  libcinnamon-desktop0                        2.4.2+rebecca                                       amd64        Utility library for loading .desktop files - runtime files
ii  libcinnamon-menu-3-0                        2.4.0+rebecca                                       amd64        Cinnamon implementation of the freedesktop menu specification
ii  mint-artwork-cinnamon                       4.5                                                 all          Default artwork for the Cinnamon edition of Linux Mint
ii  mint-info-cinnamon                          2014.12.12                                          amd64        Necessary information about the Linux Mint release and edition.
ii  mint-meta-cinnamon                          2014.12.09                                          all          Set of packages installed by default in the Cinnamon edition of Linux Mint
ii  mint-meta-core                              2014.12.09                                          all          Core Linux Mint packages
ii  mint-user-guide-cinnamon                    17.1.0                                              all          The Linux Mint User Guide - Cinnamon Edition
Başlık: Ynt: Mint 17.1 Rebecca Masaüstü Arkaplan Sorunu
Gönderen: Butterfly - 19 Nisan 2015, 00:30:16
Aşağıdaki komut ile Cinnamon ile ilgili paketleri yeniden kurmayı dener misiniz?

Kod: [Seç]
sudo apt-get install --reinstall cinnamon/rebecca cinnamon-session-common/rebecca cinnamon-session/rebecca cinnamon-common/rebecca cinnamon-desktop-data/rebecca cinnamon-themes/rebecca cinnamon-translations/rebecca cinnamon-control-center/rebecca cinnamon-control-center-data/rebecca libcinnamon-control-center1/rebecca libcinnamon-desktop0/rebecca cinnamon-screensaver/rebecca cinnamon-settings-daemon/rebecca cinnamon-bluetooth/rebecca gir1.2-cinnamondesktop-3.0/rebecca gir1.2-cmenu-3.0/rebecca libcinnamon-menu-3-0/rebecca nemo/rebecca nemo-data/rebecca libnemo-extension1/rebecca gir1.2-nemo-3.0/rebecca muffin/rebecca muffin-common/rebecca libmuffin0/rebecca gir1.2-muffin-3.0/rebecca cjs/rebecca nemo-fileroller/rebecca mdm/rebecca
Başlık: Ynt: Mint 17.1 Rebecca Masaüstü Arkaplan Sorunu
Gönderen: omisili - 19 Nisan 2015, 00:43:34
Paketleri yeniden kurdum lakin yine değiştiremiyorum :(
Başlık: Ynt: Mint 17.1 Rebecca Masaüstü Arkaplan Sorunu
Gönderen: Butterfly - 19 Nisan 2015, 01:34:25
Aşağıdaki komutun çıktısını kod etiketi (http://forum.linuxmint.net.tr/index.php?topic=2629.0) içinde paylaşınız.

Kod: [Seç]
cat /usr/lib/cinnamon-settings/modules/cs_backgrounds.py
Başlık: Ynt: Mint 17.1 Rebecca Masaüstü Arkaplan Sorunu
Gönderen: omisili - 19 Nisan 2015, 09:48:19
Kod: [Seç]
self.folder_column.pack_start(cell, True)
            self.folder_column.add_attribute(pb_cell, "icon-name", 1)
            self.folder_column.add_attribute(cell, "text", 2)

            self.folder_column.set_alignment(0)

            self.folder_tree.append_column(self.folder_column)
            self.folder_tree.connect("cursor-changed", self.on_folder_source_changed)

            self.get_system_backgrounds()

            tree_separator = [True, None, None, None, None]
            self.collection_store.append(tree_separator)           

            if len(self.user_backgrounds) > 0:
                for item in self.user_backgrounds:
                    self.collection_store.append(item)

            self.folder_tree.set_model(self.collection_store)
            self.folder_tree.set_row_separator_func(self.is_row_separator, None)

            self.get_initial_path()

    def is_row_separator(self, model, iter, data):
        return model.get_value(iter, 0)

    def on_slideshow_enabled_changed(self, settings, key):
        if self._slideshow_schema.get_boolean("slideshow-enabled"):
            self.icon_view.set_sensitive(False)
            self.icon_view.set_selection_mode(Gtk.SelectionMode.NONE)
        else:
            self.icon_view.set_sensitive(True)
            self.icon_view.set_selection_mode(Gtk.SelectionMode.SINGLE)

    def get_system_backgrounds(self):
        picture_list = []
        folder_list = []
        properties_dir = "/usr/share/cinnamon-background-properties"
        backgrounds = []
        if os.path.exists(properties_dir):
            for i in os.listdir(properties_dir):
                if i.endswith(".xml"):
                    xml_path = os.path.join(properties_dir, i)
                    display_name = i.replace(".xml", "").replace("-", " ").replace("_", " ").split(" ")[-1].capitalize()
                    icon = "cs-backgrounds"
                    order = 10
                    # Special case for Linux Mint. We don't want to use 'start-here' here as it wouldn't work depending on the theme.
                    # Also, other distros should get equal treatment. If they define cinnamon-backgrounds and use their own distro name, we should add support for it.
                    if display_name == "Retro":                     
                        icon = "cs-retro"
                        order = 20 # place retro bgs at the end
                    if display_name == "Linuxmint":                       
                        display_name = "Linux Mint"
                        icon = "cs-linuxmint"
                        order = 0
                    backgrounds.append([[False, icon, display_name, xml_path, BACKGROUND_COLLECTION_TYPE_XML], display_name, order])

        backgrounds.sort(key=lambda x: (x[2], x[1]))
        for background in backgrounds:
            self.collection_store.append(background[0])

    def get_user_backgrounds(self):
        self.user_backgrounds = []
        path = os.path.expanduser("~/.cinnamon/backgrounds/user-folders.lst")
        if os.path.exists(path):
            with open(path) as f:
                folders = f.readlines()
            for line in folders:
                folder_path = line.strip("\n")
                folder_name = folder_path.split("/")[-1]
                if folder_path == self.xdg_pictures_directory:
                    icon = "folder-pictures"
                else:
                    icon = "folder"
                self.user_backgrounds.append([False, icon, folder_name, folder_path, BACKGROUND_COLLECTION_TYPE_DIRECTORY])
        else:
            # Add XDG PICTURE DIR           
            self.user_backgrounds.append([False, "folder-pictures", self.xdg_pictures_directory.split("/")[-1], self.xdg_pictures_directory, BACKGROUND_COLLECTION_TYPE_DIRECTORY])           
            self.update_folder_list()

    def format_source(self, type, path):
        # returns 'type://path'
        return ("%s://%s" % (type, path))

    def get_initial_path(self):
        try:
            image_source = self._slideshow_schema.get_string("image-source")
            tree_iter = self.collection_store.get_iter_first()
            collection = self.collection_store[tree_iter]
            collection_type = collection[STORE_TYPE]
            collection_path = collection[STORE_PATH]
            collection_source = self.format_source(collection_type, collection_path)
            self.remove_folder_button.set_sensitive(True)

            if image_source != "" and "://" in image_source:
                while tree_iter != None:               
                    if collection_source == image_source:
                        tree_path = self.collection_store.get_path(tree_iter)
                        self.folder_tree.set_cursor(tree_path)                       
                        if collection_type == BACKGROUND_COLLECTION_TYPE_XML:
                            self.remove_folder_button.set_sensitive(False)
                        self.update_icon_view(collection_path, collection_type)
                        return
                    tree_iter = self.collection_store.iter_next(tree_iter)
                    collection = self.collection_store[tree_iter]
                    collection_type = collection[STORE_TYPE]
                    collection_path = collection[STORE_PATH]
                    collection_source = self.format_source(collection_type, collection_path)
            else:           
                self._slideshow_schema.set_string("image-source", collection_source)
                tree_path = self.collection_store.get_path(tree_iter)
                self.folder_tree.get_selection().select_path(tree_path)
                if collection_type == BACKGROUND_COLLECTION_TYPE_XML:
                    self.remove_folder_button.set_sensitive(False)               
                self.update_icon_view(collection_path, collection_type)
        except Exception, detail:
            print detail

    def on_row_activated(self, tree, path, column):
        self.folder_tree.set_selection(path)

    def on_folder_source_changed(self, tree):
        self.remove_folder_button.set_sensitive(True)
        if tree.get_selection() is not None:
            folder_paths, iter = tree.get_selection().get_selected()
            if iter :
                collection_path = folder_paths[iter][STORE_PATH]
                collection_type = folder_paths[iter][STORE_TYPE]
                collection_source = self.format_source(collection_type, collection_path)
                if os.path.exists(collection_path):
                    if collection_source != self._slideshow_schema.get_string("image-source"):
                        self._slideshow_schema.set_string("image-source", collection_source)
                    if collection_type == BACKGROUND_COLLECTION_TYPE_XML:
                        self.remove_folder_button.set_sensitive(False)
                    self.update_icon_view(collection_path, collection_type)

    def get_selected_wallpaper(self):
        selected_items = self.icon_view.get_selected_items()
        if len(selected_items) == 1:
            path = selected_items[0]
            iter = self.icon_view.get_model().get_iter(path)
            return self.icon_view.get_model().get(iter, 0)[0]
        return None

    def on_wallpaper_selection_changed(self, iconview):
        wallpaper = self.get_selected_wallpaper()
        if wallpaper:
            for key in wallpaper:
                if key == "filename":
                    self._background_schema.set_string("picture-uri", "file://" + wallpaper[key])
                elif key == "options":
                    self._background_schema.set_string("picture-options", wallpaper[key])

    def add_new_folder(self):
        res = self.add_folder_dialog.run()
        if res == Gtk.ResponseType.OK:
            folder_path = self.add_folder_dialog.get_filename()
            folder_name = folder_path.split("/")[-1]
            # Make sure it's not already added..
            for background in self.user_backgrounds:
                if background[STORE_PATH] == folder_path:
                    self.add_folder_dialog.hide()
                    return
            if folder_path == self.xdg_pictures_directory:
                icon = "folder-pictures"
            else:
                icon = "folder"
            self.user_backgrounds.append([False, icon, folder_name, folder_path, BACKGROUND_COLLECTION_TYPE_DIRECTORY])
            self.collection_store.append([False, icon, folder_name, folder_path, BACKGROUND_COLLECTION_TYPE_DIRECTORY])
            self.update_folder_list()
        self.add_folder_dialog.hide()
Başlık: Ynt: Mint 17.1 Rebecca Masaüstü Arkaplan Sorunu
Gönderen: omisili - 19 Nisan 2015, 09:50:33
Kod: [Seç]
def remove_folder(self):
        if self.folder_tree.get_selection() is not None:
            self.icon_view.clear()
            folder_paths, iter = self.folder_tree.get_selection().get_selected()
            if iter:
                path = folder_paths[iter][STORE_PATH]
                self.collection_store.remove(iter)
                for item in self.user_backgrounds:
                    if item[STORE_PATH] == path:
                        self.user_backgrounds.remove(item)
                        self.update_folder_list()
                        break

    def update_folder_list(self):
        path = os.path.expanduser("~/.cinnamon/backgrounds")
        if not os.path.exists(path):
            rec_mkdir(path)
        path = os.path.expanduser("~/.cinnamon/backgrounds/user-folders.lst")
        if len(self.user_backgrounds) == 0:
            file_data = ""
        else:
            first_path = self.user_backgrounds[0][STORE_PATH]
            file_data = first_path + "\n"
            for folder in self.user_backgrounds:
                if folder[STORE_PATH] == first_path:
                    continue
                else:
                    file_data += "%s\n" % folder[STORE_PATH]

        with open(path, "w") as f:
            f.write(file_data)

    def update_icon_view(self, path=None, type=None):
        if path != self.shown_collection:
            self.shown_collection = path
            picture_list = []
            if os.path.exists(path):
                if type == BACKGROUND_COLLECTION_TYPE_DIRECTORY:
                    files = os.listdir(path)
                    files.sort()
                    for i in files:
                        filename = os.path.join(path, i)
                        if commands.getoutput("file -bi \"%s\"" % filename).startswith("image/"):
                            picture_list.append({"filename": filename})
                elif type == BACKGROUND_COLLECTION_TYPE_XML:       
                    picture_list += self.parse_xml_backgrounds_list(path)

            self.icon_view.set_pictures_list(picture_list, path)
            if self._slideshow_schema.get_boolean("slideshow-enabled"):
                self.icon_view.set_sensitive(False)
            else:
                self.icon_view.set_sensitive(True)

    def splitLocaleCode(self, localeCode):
        loc = localeCode.partition("_")
        loc = (loc[0], loc[2])
        return loc
   
    def getLocalWallpaperName(self, names, loc):
        result = ""
        mainLocFound = False
        for wp in names:
            wpLoc = wp[0]
            wpName = wp[1]
            if wpLoc == ("", ""):
                if not mainLocFound:
                    result = wpName
            elif wpLoc[0] == loc[0]:
                if wpLoc[1] == loc[1]:
                    return wpName
                elif wpLoc[1] == "":
                    result = wpName
                    mainLocFound = True
        return result

    def parse_xml_backgrounds_list(self, filename):
        try:
            locAttrName = "{http://www.w3.org/XML/1998/namespace}lang"
            loc = self.splitLocaleCode(locale.getdefaultlocale()[0])
            res = []
            subLocaleFound = False
            f = open(filename)
            rootNode = lxml.etree.fromstring(f.read())
            f.close()
            if rootNode.tag == "wallpapers":
                for wallpaperNode in rootNode:
                    if wallpaperNode.tag == "wallpaper" and wallpaperNode.get("deleted") != "true":
                        wallpaperData = {"metadataFile": filename}
                        names = []
                        for prop in wallpaperNode:
                            if type(prop.tag) == str:
                                if prop.tag != "name":
                                    wallpaperData[prop.tag] = prop.text                               
                                else:
                                    propAttr = prop.attrib
                                    wpName = prop.text
                                    locName = self.splitLocaleCode(propAttr.get(locAttrName)) if propAttr.has_key(locAttrName) else ("", "")
                                    names.append((locName, wpName))
                        wallpaperData["name"] = self.getLocalWallpaperName(names, loc)
                       
                        if "filename" in wallpaperData and wallpaperData["filename"] != "" and os.path.exists(wallpaperData["filename"]) and os.access(wallpaperData["filename"], os.R_OK):
                            if wallpaperData["name"] == "":
                                wallpaperData["name"] = os.path.basename(wallpaperData["filename"])
                            res.append(wallpaperData)
            return res
        except:
            return []

class PixCache(object):
   
    def __init__(self):
        self._data = {}
   
    def get_pix(self, filename, size = None):
        try:
            mimetype = subprocess.check_output(["file", "-bi", filename]).split(";")[0]
            if not mimetype.startswith("image/"):
                print "Not trying to convert %s : not a recognized image file" % filename
                return None
        except Exception, detail:
            print "Failed to detect mimetype for %s: %s" % (filename, detail)
            return None
        if not filename in self._data:
            self._data[filename] = {}
        if size in self._data[filename]:
            pix = self._data[filename][size]
        else:
            try:
                if mimetype == "image/svg+xml":
                    tmp_pix = GdkPixbuf.Pixbuf.new_from_file(filename)
                    tmp_fp, tmp_filename = tempfile.mkstemp()
                    os.close(tmp_fp)
                    tmp_pix.savev(tmp_filename, "png", [], [])
                    img = Image.open(tmp_filename)
                    os.unlink(tmp_filename)
                else:
                    img = Image.open(filename)             
                (width, height) = img.size
                if img.mode != 'RGB':
                    img = img.convert('RGB')               
                if size:
                    img.thumbnail((size, size), Image.ANTIALIAS)                                                                                                   
                img = imtools.round_image(img, {}, False, None, 3, 255) 
                img = imtools.drop_shadow(img, 4, 4, background_color=(255, 255, 255, 0), shadow_color=0x444444, border=8, shadow_blur=3, force_background_color=False, cache=None)       
                # Convert Image -> Pixbuf (save to file, GTK3 is not reliable for that)
                f = tempfile.NamedTemporaryFile(delete=False)
                temp_filename = f.name
                f.close()       
                img.save(temp_filename, "png")
                pix = [GdkPixbuf.Pixbuf.new_from_file(temp_filename), width, height]
                os.unlink(temp_filename)
            except Exception, detail:
                print "Failed to convert %s: %s" % (filename, detail)
                pix = None
            if pix:
                self._data[filename][size] = pix
        return pix

PIX_CACHE = PixCache()

class ThreadedIconView(Gtk.IconView):
    def __init__(self):
        Gtk.IconView.__init__(self)
        self.set_item_width(BACKGROUND_ICONS_SIZE * 1.1)
        self._model = Gtk.ListStore(object, GdkPixbuf.Pixbuf, str, str)
        self._model_filter = self._model.filter_new()
        self._model_filter.set_visible_func(self.visible_func)
        self.set_model(self._model_filter)

        area = self.get_area()

        self.current_path = None

        pixbuf_renderer = Gtk.CellRendererPixbuf()
        text_renderer = Gtk.CellRendererText(ellipsize=Pango.EllipsizeMode.END)

        text_renderer.set_alignment(.5, .5)
        area.pack_start(pixbuf_renderer, True, False, False)
        area.pack_start(text_renderer, True, False, False)
        self.add_attribute (pixbuf_renderer, "pixbuf", 1)
        self.add_attribute (text_renderer, "markup", 2)
        text_renderer.set_property("alignment", Pango.Alignment.CENTER)       

        self._loading_queue = []
        self._loading_queue_lock = thread.allocate_lock()
       
        self._loading_lock = thread.allocate_lock()
        self._loading = False
       
        self._loaded_data = []
        self._loaded_data_lock = thread.allocate_lock()

    def visible_func(self, model, iter, data=None):
        item_path = model.get_value(iter, 3)
        return item_path == self.current_path

    def set_pictures_list(self, pictures_list, path = None):
        self.clear()
        self.current_path = path
        for i in pictures_list:
            self.add_picture(i, path)
   
    def clear(self):
        self._loading_queue_lock.acquire()
        self._loading_queue = []
        self._loading_queue_lock.release()
       
        self._loading_lock.acquire()
        is_loading = self._loading
        self._loading_lock.release()
        while is_loading:
            time.sleep(0.1)
            self._loading_lock.acquire()
            is_loading = self._loading
            self._loading_lock.release()
       
        self._model.clear()
   
    def add_picture(self, picture, path):
        self._loading_queue_lock.acquire()
        self._loading_queue.append(picture)
        self._loading_queue_lock.release()
       
        start_loading = False
        self._loading_lock.acquire()
        if not self._loading:
            self._loading = True
            start_loading = True
        self._loading_lock.release()
       
        if start_loading:
            GLib.timeout_add(100, self._check_loading_progress)
            thread.start_new_thread(self._do_load, (path,))
   
    def _check_loading_progress(self):
        self._loading_lock.acquire()
        self._loaded_data_lock.acquire()
        res = self._loading
        to_load = []
        while len(self._loaded_data) > 0:
            to_load.append(self._loaded_data[0])
            self._loaded_data = self._loaded_data[1:]
        self._loading_lock.release()
        self._loaded_data_lock.release()
       
        for i in to_load:
            self._model.append(i)
       
        return res
   
    def _do_load(self, path):
        finished = False
        while not finished:
            self._loading_queue_lock.acquire()
            if len(self._loading_queue) == 0:
                finished = True
            else:
                to_load = self._loading_queue[0]
                self._loading_queue = self._loading_queue[1:]
            self._loading_queue_lock.release()
            if not finished:
                filename = to_load["filename"]
                if filename.endswith(".xml"):
                    filename = self.getFirstFileFromBackgroundXml(filename)
                pix = PIX_CACHE.get_pix(filename, BACKGROUND_ICONS_SIZE)
                if pix != None:
                    if "name" in to_load:
                        label = to_load["name"]
                    else:
                        label = os.path.split(to_load["filename"])[1]
                    if "artist" in to_load:
                        artist = "%s\n" % to_load["artist"]
                    else:
                        artist = ""
                    dimensions = "%dx%d" % (pix[1], pix[2])
                   
                    self._loaded_data_lock.acquire()
                    self._loaded_data.append((to_load, pix[0], "<b>%s</b>\n<sub>%s<span foreground='#555555'>%s</span></sub>" % (label, artist, dimensions), path))                   
                    self._loaded_data_lock.release()
               
        self._loading_lock.acquire()
        self._loading = False
        self._loading_lock.release()                 
       
    def getFirstFileFromBackgroundXml(self, filename):
        try:
            f = open(filename)
            rootNode = lxml.etree.fromstring(f.read())
            f.close()
            if rootNode.tag == "background":
                for backgroundNode in rootNode:
                    if backgroundNode.tag == "static":
                        for staticNode in backgroundNode:
                            if staticNode.tag == "file":
                                return staticNode.text
            print "Could not find filename in %s" % filename
            return None
        except Exception, detail:
            print "Failed to read filename from %s: %s" % (filename, detail)
            return None
Başlık: Ynt: Mint 17.1 Rebecca Masaüstü Arkaplan Sorunu
Gönderen: Butterfly - 19 Nisan 2015, 11:08:23
Aşağıdaki komut ile /usr/lib/cinnamon-settings/modules/cs_backgrounds.py dosyasını açınız.

Kod: [Seç]
sudo gedit /usr/lib/cinnamon-settings/modules/cs_backgrounds.py
Açılan dosyada aşağıdaki kısımları bulunuz.


Kod: [Seç]
                            res.append(wallpaperData)
            return res
        except:
            return []

satırları girintilere dikkat ederek aşağıdaki şekilde düzenlemeyi deneyiniz.

Kod: [Seç]
                            res.append(wallpaperData)
            return res
        except Exception, detail:
            print "Could not parse %s!" % filename
            print detail
            return []
Başlık: Ynt: Mint 17.1 Rebecca Masaüstü Arkaplan Sorunu
Gönderen: omisili - 19 Nisan 2015, 11:27:15
                        Butterfly (http://forum.linuxmint.net.tr/index.php?action=profile;u=8)  Dediklerinizi uyguladım malesef yine olmadı.
Başlık: Ynt: Mint 17.1 Rebecca Masaüstü Arkaplan Sorunu
Gönderen: Butterfly - 19 Nisan 2015, 11:36:17
Cinnamon'u buradaki (http://forum.linuxmint.net.tr/index.php?topic=1625.0) konuda anlatıldığı biçimde günlük geliştirici PPA deposundan güncellemeyi dener misiniz?
Başlık: Ynt: Mint 17.1 Rebecca Masaüstü Arkaplan Sorunu
Gönderen: omisili - 19 Nisan 2015, 13:14:07
Depoyu güncelledim  yenilemede yaptım ama olmadı
Başlık: Ynt: Mint 17.1 Rebecca Masaüstü Arkaplan Sorunu
Gönderen: Butterfly - 19 Nisan 2015, 16:49:45
Masaüstü arkaplanı için slayt gösterimi açık olabilir mi? Ya da arkaplan resmini otomatik değiştirme için Variety benzeri 3. parti bir uygulama kurmuş olabilir misiniz?
Başlık: Ynt: Mint 17.1 Rebecca Masaüstü Arkaplan Sorunu
Gönderen: omisili - 19 Nisan 2015, 19:01:37
Masaüstü arkaplanı için slayt kapalı 3. parti uygulama kurmadan öncede sorun vardı çözüm olarak 3. parti kurmaya çalıştım ama onlarda kurma sorunu yaşadım
Başlık: Ynt: Mint 17.1 Rebecca Masaüstü Arkaplan Sorunu
Gönderen: Genizcil_N - 19 Nisan 2015, 19:09:35
Kurulum dosyasında mı bir sorun vardı acaba? Iso dosyasının MD5 kontrolünü yapmış mıydınız? http://wiki.ubuntu-tr.net/index.php?title=Md5_kontrol%C3%BC
Başlık: Ynt: Mint 17.1 Rebecca Masaüstü Arkaplan Sorunu
Gönderen: omisili - 19 Nisan 2015, 19:19:00
Mint kurulumunda bir sorun olmamıştı . Rebecca güncellemesinden sonra sorunlar başaldı.
Başlık: Ynt: Mint 17.1 Rebecca Masaüstü Arkaplan Sorunu
Gönderen: omisili - 19 Nisan 2015, 19:34:28
md5      3d8c3c3e82916e2110f965111b0ee944 sonucu bu
linuxmint sitesinden kontrol ettim aynı
Başlık: Ynt: Mint 17.1 Rebecca Masaüstü Arkaplan Sorunu
Gönderen: Butterfly - 19 Nisan 2015, 22:43:51
İsterseniz Cinnamon 2.2 sürüme dönüş yaptırabiliriz.
Başlık: Ynt: Mint 17.1 Rebecca Masaüstü Arkaplan Sorunu
Gönderen: omisili - 19 Nisan 2015, 22:47:42
Peki onu nasıl yapabilirim?
Başlık: Ynt: Mint 17.1 Rebecca Masaüstü Arkaplan Sorunu
Gönderen: Butterfly - 19 Nisan 2015, 23:39:49
Aşağıdaki komut ile Linux Mint depo listesi dosyasını açınız.

Kod: [Seç]
sudo gedit /etc/apt/sources.list.d/official-package-repositories.list
Açılan dosyada aşağıdaki satırlarda

Kod: [Seç]
deb http://packages.linuxmint.com rebecca main upstream import

deb http://extra.linuxmint.com rebecca main

rebecca yazan yerlere qiana yazınız.

Kod: [Seç]
deb http://packages.linuxmint.com qiana main upstream import

deb http://extra.linuxmint.com qiana main

Dosyayı kaydedip aşağıdaki komut ile paket bilgisi önbelleğini güncelleyiniz.

Kod: [Seç]
sudo apt-get update
Şimdi aşağıdaki komut ile Cinnamon 2.2 sürüme düşürmeyi deneyebilirsiniz.

Kod: [Seç]
sudo apt-get install --reinstall cinnamon/qiana cinnamon-session-common/qiana cinnamon-session/qiana cinnamon-common/qiana cinnamon-desktop-data/qiana cinnamon-themes/qiana cinnamon-translations/qiana cinnamon-control-center/qiana cinnamon-control-center-data/qiana libcinnamon-control-center1/qiana libcinnamon-desktop0/qiana cinnamon-screensaver/qiana cinnamon-settings-daemon/qiana cinnamon-bluetooth/qiana gir1.2-cinnamondesktop-3.0/qiana gir1.2-cmenu-3.0/qiana libcinnamon-menu-3-0/qiana nemo/qiana nemo-data/qiana libnemo-extension1/qiana gir1.2-nemo-3.0/qiana muffin/qiana muffin-common/qiana libmuffin0/qiana gir1.2-muffin-3.0/qiana cjs/qiana nemo-fileroller/qiana mdm/qiana
Başlık: Ynt: Mint 17.1 Rebecca Masaüstü Arkaplan Sorunu
Gönderen: omisili - 20 Nisan 2015, 17:27:32
İlginiz ve emeğiniz için teşekkürler. Sorun çözülmüş durumda ;)
Başlık: Ynt: Mint 17.1 Rebecca Masaüstü Arkaplan Sorunu
Gönderen: Butterfly - 20 Nisan 2015, 17:39:49
Cinnamon 2.2 sürüm ile sorun çözüldü ise aşağıdaki dosyaları da düzenlemeniz gerekebilir. Yoksa Yazılım Kaynaklarında depoları varsayılana döndürdüğünüzde, Rebecca depoları etkin olup Cinnamon 2.4 sürüme güncelleme alırsınız.

Bunun için aşağıdaki komut ile /etc/lsb-release dosyasını açınız.

Kod: [Seç]
sudo gedit /etc/lsb-release
Açılan dosyayı silip içeriğini aşağıdaki şekilde değiştiriniz.

Kod: [Seç]
DISTRIB_ID=LinuxMint
DISTRIB_RELEASE=17
DISTRIB_CODENAME=qiana
DISTRIB_DESCRIPTION="Linux Mint 17 Qiana"

Sonra aşağıdaki komut ile /etc/linuxmint/info dosyasını açınız.

Kod: [Seç]
sudo gedit /etc/linuxmint/info
Açılan dosyanın içeriğini aşağıdaki ile değiştiriniz.

Kod: [Seç]
RELEASE=17
CODENAME=qiana
EDITION="Cinnamon 64-bit"
DESCRIPTION="Linux Mint 17 Qiana"
DESKTOP=Gnome
TOOLKIT=GTK
NEW_FEATURES_URL=http://www.linuxmint.com/rel_qiana_cinnamon_whatsnew.php
RELEASE_NOTES_URL=http://www.linuxmint.com/rel_qiana_cinnamon.php
USER_GUIDE_URL=help:linuxmint
GRUB_TITLE=Linux Mint 17 Cinnamon 64-bit
Başlık: Ynt: Mint 17.1 Rebecca Masaüstü Arkaplan Sorunu
Gönderen: Genizcil_N - 21 Nisan 2015, 00:13:02
[member=1652]omisili[/member]
Çözülen konuları burada (http://forum.linuxmint.net.tr/index.php?topic=2058.0) anlatıldığı biçimde etiketleyebilirsiniz.