KDE uyumsuzluğu

Bug #1049832 reported by Sinan Ateş
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Ubuntu Türkiye Betik
Fix Released
Undecided
Sinan Ateş

Bug Description

KDE masa üstü yöneticisinde betik çalıştırılmak istendiğinda aşağıdaki hata alınmış.

Traceback (most recent call last):
  File "arayuzgtk3.py", line 218, in col1_toggled_cb
    self.eklenenler.append( liste[sec] )
KeyError: 'Alsa Derleme ( ppa kayna\xc4\x9f\xc4\xb1 )'
Traceback (most recent call last):
  File "arayuzgtk3.py", line 218, in col1_toggled_cb
    self.eklenenler.append( liste[sec] )
KeyError: 'Google Gadgets'
sh: 1: gnome-terminal: not found

Revision history for this message
hitokiri (hitokiri) wrote :

bu değil ancak şu sorunun,
KeyError: 'Alsa Derleme ( ppa kayna\xc4\x9f\xc4\xb1 )'
Traceback (most recent call last):
Oluşma nedeni,
       if [[ "${line##*:}" =~ "/" ]] ; then
            nn=$(echo "${line##*:}" |cut -d "=" -f2)
        elif [[ "${line##*:}" =~ "_" ]] ;then
            unset nn
        else
            nn=$(echo "${line##*:}" |cut -d " " -f1)
        fi
        if [ ! -z $nn ];then
            xn=$(apt-cache search "(^$nn$)"|head -n 1|sed -e "s/^$nn - //g" -e "s/\\.//g")
            step+=("${line%%:*}.$xn":"${line##*:}")
        else
            step+=("${line%%:*}":"${line##*:}")
        fi
    fi
Burda ! -z kısmında bir gariplik olmalı ki,
fonksiyonlarda açıklama olmamasına rağmen "." ekleniyor,
Diğer asıl hatanın ise,hata değil eksik yorumlandırmanın ise,
if [ ! -z "`dpkg -l|grep python3-gi`" ] ;then
    [ $DEBUG_MODE -eq 1 ] && echo -e "\e[01;31m$LINENO: Çalıştırılan: arayuzpython3.py\e[00m"
    python3 arayuzpython3.py
elif [ ! -z "`dpkg -l|grep python-gi`" ];then
    [ $DEBUG_MODE -eq 1 ] && echo -e "\e[01;31m$LINENO: Çalıştırılan: arayuzgtk3.py \e[00m"
    python arayuzgtk3.py
elif [ ! -z "`dpkg -l|grep python-gtk2`" ];then
    [ $DEBUG_MODE -eq 1 ] && echo -e "\e[01;31m$LINENO: Çalıştırılan: arayuz.py\e[00m"
    python arayuz.py
else
    [ $DEBUG_MODE -eq 1 ] && echo -e "\e[01;31m$LINENO: Çalıştırılan: ubuntu-tr-betik-zenity\e[00m"
    bash ubuntu-tr-betik-zenity
fi
}

Bu kısımında demekki python için ayırmak yeterli gelmiyormuş,
bunun için ne yapılabilir,
arayuzgtk.py 'nin kapat fonskiyonuna "os" ile bir gnome terminal kuruluysa
değilse durumu eklemek gerek,

Changed in ubuntu-tr-betik:
assignee: nobody → Sinan Ateş (sinanates)
hitokiri (hitokiri)
Changed in ubuntu-tr-betik:
status: New → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.