Public bug reported:

Binary package hint: shared-mime-info

shared-mime-info

$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description:    Ubuntu jaunty (development branch)
Release:        9.04
Codename:       jaunty

$ apt-cache policy shared-mime-info
shared-mime-info:
  Installed: 0.51-0ubuntu1
  Candidate: 0.51-0ubuntu1
  Version table:
 *** 0.51-0ubuntu1 0
        500 http://archive.ubuntu.com jaunty/main Packages
        100 /var/lib/dpkg/status

$ mimetype -a *.ini
exit.ini:     application/x-cisco-vpn-settings
exit.ini:     text/plain
firewall.ini: application/x-cisco-vpn-settings
firewall.ini: text/plain
menu.ini:     application/x-cisco-vpn-settings
menu.ini:     text/plain

All of these are normal .ini configuration files. However, ubuntu
(gnome) detects them as application/x-cisco-vpn-settings files.

This is the part for /usr/share/mime/packages/freedesktop.org.xml:
  <mime-type type="application/x-cisco-vpn-settings">
    <comment>Cisco VPN Settings</comment>
    <comment xml:lang="b...@latin">Nałady Cisco VPN</comment>
    <comment xml:lang="ca">paràmetres VPN de Cisco</comment>
    <comment xml:lang="cs">Nastavení Cisco VPN</comment>
    <comment xml:lang="es">Ajustes VPN de Cisco</comment>

    <comment xml:lang="fi">Cisco VPN -asetukset</comment>
    <comment xml:lang="fr">paramètres VPN Cisco</comment>
    <comment xml:lang="ga">socruithe VPN Cisco</comment>
    <comment xml:lang="hu">Cisco VPN beállítások</comment>
    <comment xml:lang="id">Penataan Cisco VPN</comment>
    <comment xml:lang="it">Impostazioni VPN Cisco</comment>

    <comment xml:lang="ko">Cisco VPN 설정</comment>
    <comment xml:lang="lt">Cisco VPN parametrai</comment>
    <comment xml:lang="nb">Cisco VPN-innstillinger</comment>
    <comment xml:lang="nl">Cisco VPN-instellingen</comment>
    <comment xml:lang="pt_BR">Configurações de VPN da Cisco</comment>
    <comment xml:lang="sv">Cisco VPN-inställningar</comment>

    <comment xml:lang="vi">Thiết lập VPN Cisco</comment>
    <generic-icon name="text-x-generic"/>
    <magic priority="50">
      <match value="[main]" type="string" offset="0"/>
    </magic>
    <glob pattern="*.pcf"/>
  </mime-type>

I think there should not be a priority for the "[main]" text string on
top of the file, but to look for the .pcf file extension first.

** Affects: shared-mime-info (Ubuntu)
     Importance: Undecided
         Status: New

-- 
wrong mimetype: .ini configuration files appear as 
application/x-cisco-vpn-settings
https://bugs.launchpad.net/bugs/334126
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to