The wikis are now using the new authentication system.
If you did not migrate your account yet, visit https://idp-portal-info.suse.com/

GNOME Thumbnails

Şuraya atla: kullan, ara


This entry is part of the klick app Talk:SUPER_KLIK project

Yayınlar

Gnome resim/ikon etrafında bir çerçeveli çizgi çizer Bu herhangi bir ~/.thumbnails klasöründe görülür

icons9nw.png

Örnekler

Sihirli Gibi

Görmek için satırlara bak

#!/bin/sh
# .app

Hex satırlar

23 21 2f 62 69 6e 2f 73 68 0a 23 20 2e 61 70 70

xml formatta satırlar

\x23\x21\x2f\x62\x69\x6e\x2f\x73\x68\x0a\x23\x20\x2e\x61\x70\x70

Mimik Bilgisi Kurulumu

// Mimik dosyasını belirtilen dosyaya kopyalayın

~/.local/share/mime/packages

// Mimik Tip Kurulumu

update-mime-database ~/.local/share/mime/ 2>/dev/null
<?xml version="1.0" encoding="UTF-8"?>
<mime-info xmlns="http://www.freedesktop.org/standards/shared-mime-info">
	<mime-type type="application/x-extension-app">
		<comment>Klik App FIle</comment>
		<magic priority="60">
			<match value="\x23\x21\x2f\x62\x69\x6e\x2f\x73\x68\x0a\x23\x20\x2e\x61\x70\x70" type="string" offset="0" />
		</magic>
		<glob pattern="*.app"/>
	</mime-type>
</mime-info>

Thumbnail Şeması Kurulumu

// Şema Kurulumu

env GCONF_CONFIG_SOURCE="" gconftool-2 --makefile-install-rule app.schema.xml
<gconfschemafile>
    <schemalist>

        <schema>
            <key>/schemas/desktop/gnome/thumbnailers/application@x-extension-app/enable</key>
            <applyto>/desktop/gnome/thumbnailers/application@x-extension-app/enable</applyto>
            <owner>thumbnailer</owner>
            <type>bool</type>
            <default>true</default>
            <locale name="C">
                <short>Enable thumbnailing of klik app</short>
                <long>Enable thumbnailing of klik app</long>
            </locale>
        </schema>

        <schema>
            <key>/schemas/desktop/gnome/thumbnailers/application@x-extension-app/command</key>
            <applyto>/desktop/gnome/thumbnailers/application@x-extension-app/command</applyto>
            <owner>thumbnailer</owner>
            <type>string</type>
            <default>/usr/bin/klik-thumbnailer %u %o</default>
            <locale name="C">
                <short>Create thumbnail for klik app</short>
                <long>Create thumbnail for klik app</long>
            </locale>
        </schema>

    </schemalist>
</gconfschemafile>

Thumbnail Oluşturucu Kurulumu

  • İkon oluşturmak için dosyanın dosya ismini %1 kapsar.
  • lokale ikon kaydetmek içinde %2 kapsar .