diff options
| -rw-r--r-- | debian/changelog | 6 | ||||
| -rw-r--r-- | debian/itzks-systems-common.install | 3 | ||||
| -rwxr-xr-x | debian/itzks-systems-common.postinst | 37 | ||||
| -rw-r--r-- | share/itzks-systems-common/wine-fixes/wine-bin | 1 | ||||
| -rw-r--r-- | share/itzks-systems-common/wine-fixes/wine.desktop | 16 | ||||
| -rw-r--r-- | share/itzks-systems-common/wine-fixes/wine.keys | 4 | ||||
| -rw-r--r-- | share/itzks-systems-common/wine-fixes/wine.mime | 3 | ||||
| -rw-r--r-- | share/itzks-systems-common/wine-fixes/wine.xpm | 211 | 
8 files changed, 279 insertions, 2 deletions
| diff --git a/debian/changelog b/debian/changelog index db6dbfd..1af5eed 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,9 +1,13 @@ -itzks-systems (2015.07.14.1) UNRELEASED; urgency=medium +itzks-systems (2015.07.15.1) UNRELEASED; urgency=medium    * debian/control:      + Add to D (itzks-systems-virtman): ganeti-os-noop.      + Add to D (itzks-systems-diskless): gstreamer1.0-plugins-bad,        gstreamer1.0-plugins-good, gstreamer1.0-plugins-ugly, gstreamer1.0-libav. +  * Wine desktop UI fixes: +    + Add wine.desktop and MIME relevant files for Wine, so that Wine can get +      launched via Caja and other file browsers (DIRTY HACK! in +      itzks-systems-common).   -- Mike Gabriel <mike.gabriel@das-netzwerkteam.de>  Tue, 14 Jul 2015 18:01:00 +0200 diff --git a/debian/itzks-systems-common.install b/debian/itzks-systems-common.install index ab60b99..cdf8964 100644 --- a/debian/itzks-systems-common.install +++ b/debian/itzks-systems-common.install @@ -6,4 +6,5 @@ etc/standardskriver.cfg etc/  etc/xdg/autostart/standardskriver.desktop etc/xdg/autostart/  bin/passwd usr/bin/  bin/standardskriver usr/bin/ -sbin/itzks-systems.do_preseed
\ No newline at end of file +sbin/itzks-systems.do_preseed +share/itzks-systems-common/ usr/share/
\ No newline at end of file diff --git a/debian/itzks-systems-common.postinst b/debian/itzks-systems-common.postinst index 79104ca..7b84520 100755 --- a/debian/itzks-systems-common.postinst +++ b/debian/itzks-systems-common.postinst @@ -29,6 +29,43 @@ case "$1" in  		# write the school name to an /etc/ file  		echo $RET 1> /etc/debian-edu/itzks.school +		# deploy Wine desktop fixes if Wine is installed +		if type -p wine 1>/dev/null; then +			if [ ! -e /usr/share/applications/wine.desktop ]; then +				cp /usr/share/itzks-systems-common/wine-fixes/wine.desktop /usr/share/applications/wine.desktop +			fi +			if [ ! -e /usr/share/pixmaps/wine.xpm ]; then +				cp /usr/share/itzks-systems-common/wine-fixes/wine.xpm /usr/share/pixmaps/wine.xpm +			fi +			if [ ! -e /usr/share/mime-info/wine.keys ]; then +				cp /usr/share/itzks-systems-common/wine-fixes/wine.keys /usr/share/mime-info/wine.keys +			fi +			if [ ! -e /usr/share/mime-info/wine.mime ]; then +				cp /usr/share/itzks-systems-common/wine-fixes/wine.mime /usr/share/mime-info/wine.mime +			fi +			if [ ! -e /usr/lib/mime/packages/wine-bin ]; then +				cp /usr/share/itzks-systems-common/wine-fixes/wine-bin /usr/lib/mime/packages/wine-bin +			fi +			update-desktop-database +		else +			if [ -e /usr/share/applications/wine.desktop ]; then +				rm -f /usr/share/applications/wine.desktop +			fi +			if [ -e /usr/share/pixmaps/wine.xpm ]; then +				rm -f /usr/share/pixmaps/wine.xpm +			fi +			if [ -e /usr/share/mime-info/wine.keys ]; then +				rm -f /usr/share/mime-info/wine.keys +			fi +			if [ -e /usr/share/mime-info/wine.mime ]; then +				rm -f /usr/share/mime-info/wine.mime +			fi +			if [ -e /usr/lib/mime/packages/wine-bin ]; then +				rm -f /usr/lib/mime/packages/wine-bin +			fi +			update-desktop-database +		fi +  		;;  	abort-upgrade|abort-remove|abort-deconfigure) diff --git a/share/itzks-systems-common/wine-fixes/wine-bin b/share/itzks-systems-common/wine-fixes/wine-bin new file mode 100644 index 0000000..9c9af72 --- /dev/null +++ b/share/itzks-systems-common/wine-fixes/wine-bin @@ -0,0 +1 @@ +application/x-msdos-program; /usr/bin/wine '%s'; description=Windows Executable diff --git a/share/itzks-systems-common/wine-fixes/wine.desktop b/share/itzks-systems-common/wine-fixes/wine.desktop new file mode 100644 index 0000000..ef0bb3f --- /dev/null +++ b/share/itzks-systems-common/wine-fixes/wine.desktop @@ -0,0 +1,16 @@ +[Desktop Entry] +Type=Application +Encoding=UTF-8 +Name=WinE +GenericName=WinE Win32 API Emulator +GenericName[ru]=Эмулятор Win32 API +Comment=Launch your Windows programs +Comment[ru]=Программа для запуска приложений для ОС Windows +NoDisplay=true +TryExec=wine +Exec=wine %f +Terminal=false +Categories=Emulator; +MimeType=application/x-ms-dos-executable;application/x-msdos-program;application/x-msdownload;application/exe;application/x-exe;application/dos-exe;application/x-winexe;application/msdos-windows;application/x-msdos-program +Icon=wine + diff --git a/share/itzks-systems-common/wine-fixes/wine.keys b/share/itzks-systems-common/wine-fixes/wine.keys new file mode 100644 index 0000000..6a9eb6e --- /dev/null +++ b/share/itzks-systems-common/wine-fixes/wine.keys @@ -0,0 +1,4 @@ +application/x-msdos-program: +	open=wine %f +	icon-filename=/usr/share/pixmaps/wine.xpm + diff --git a/share/itzks-systems-common/wine-fixes/wine.mime b/share/itzks-systems-common/wine-fixes/wine.mime new file mode 100644 index 0000000..02ca02f --- /dev/null +++ b/share/itzks-systems-common/wine-fixes/wine.mime @@ -0,0 +1,3 @@ +application/x-msdos-program +	ext: exe com + diff --git a/share/itzks-systems-common/wine-fixes/wine.xpm b/share/itzks-systems-common/wine-fixes/wine.xpm new file mode 100644 index 0000000..c3e61af --- /dev/null +++ b/share/itzks-systems-common/wine-fixes/wine.xpm @@ -0,0 +1,211 @@ +/* XPM */ +static const char * wine_xpm[] = { +"48 48 159 2", +"  	c None", +". 	c #010101", +"+ 	c #030303", +"@ 	c #000000", +"# 	c #040404", +"$ 	c #0D0D0D", +"% 	c #222222", +"& 	c #090909", +"* 	c #050505", +"= 	c #101010", +"- 	c #0B0B0B", +"; 	c #131313", +"> 	c #1C1C1C", +", 	c #232323", +"' 	c #161616", +") 	c #020202", +"! 	c #2F2F2F", +"~ 	c #212121", +"{ 	c #060606", +"] 	c #292929", +"^ 	c #0A0A0A", +"/ 	c #111111", +"( 	c #252525", +"_ 	c #0E0E0E", +": 	c #262626", +"< 	c #0C0005", +"[ 	c #100308", +"} 	c #2D2D2D", +"| 	c #2A2A2A", +"1 	c #360013", +"2 	c #59001C", +"3 	c #120006", +"4 	c #080808", +"5 	c #141414", +"6 	c #090707", +"7 	c #0A0003", +"8 	c #0E0003", +"9 	c #0B0205", +"0 	c #191919", +"a 	c #6A0022", +"b 	c #AC0033", +"c 	c #730024", +"d 	c #4F0019", +"e 	c #470016", +"f 	c #4B0019", +"g 	c #5D001E", +"h 	c #690022", +"i 	c #6E0023", +"j 	c #660021", +"k 	c #410012", +"l 	c #1B080D", +"m 	c #171717", +"n 	c #160007", +"o 	c #8E002E", +"p 	c #B60038", +"q 	c #AE0038", +"r 	c #A90035", +"s 	c #A60033", +"t 	c #A60035", +"u 	c #AF0038", +"v 	c #B10038", +"w 	c #B00038", +"x 	c #A10031", +"y 	c #6D0020", +"z 	c #1A0007", +"A 	c #121212", +"B 	c #3D0014", +"C 	c #A70033", +"D 	c #AE0039", +"E 	c #B30038", +"F 	c #B20038", +"G 	c #B70038", +"H 	c #98002E", +"I 	c #2E000F", +"J 	c #52021A", +"K 	c #7C0026", +"L 	c #AC0035", +"M 	c #AD0038", +"N 	c #B50038", +"O 	c #830029", +"P 	c #1A0008", +"Q 	c #490017", +"R 	c #A00033", +"S 	c #B20039", +"T 	c #53001B", +"U 	c #3C0014", +"V 	c #A20032", +"W 	c #AD0039", +"X 	c #B40038", +"Y 	c #8F002D", +"Z 	c #1E0008", +"` 	c #171616", +" .	c #51001A", +"..	c #A80035", +"+.	c #B20037", +"@.	c #700025", +"#.	c #0A0104", +"$.	c #090204", +"%.	c #B00039", +"&.	c #A40033", +"*.	c #32000F", +"=.	c #110005", +"-.	c #730026", +";.	c #AF0039", +">.	c #810029", +",.	c #0A0002", +"'.	c #1D0009", +").	c #820029", +"!.	c #410014", +"~.	c #21000A", +"{.	c #87002A", +"].	c #88002C", +"^.	c #8B002A", +"/.	c #3C0015", +"(.	c #20000A", +"_.	c #86002A", +":.	c #B50037", +"<.	c #710022", +"[.	c #080002", +"}.	c #130006", +"|.	c #790026", +"1.	c #7A0128", +"2.	c #140007", +"3.	c #0D0608", +"4.	c #650021", +"5.	c #90002E", +"6.	c #290310", +"7.	c #181818", +"8.	c #390013", +"9.	c #9A0032", +"0.	c #B40039", +"a.	c #B10037", +"b.	c #91002D", +"c.	c #3E0014", +"d.	c #0C0407", +"e.	c #0A0004", +"f.	c #4A001A", +"g.	c #92002D", +"h.	c #A50034", +"i.	c #94002E", +"j.	c #6C0122", +"k.	c #2E0210", +"l.	c #0B0406", +"m.	c #070707", +"n.	c #090003", +"o.	c #26000C", +"p.	c #370414", +"q.	c #28000C", +"r.	c #060303", +"s.	c #191818", +"t.	c #1F1F1F", +"u.	c #0F0F0F", +"v.	c #1D1D1D", +"w.	c #3E3E3E", +"x.	c #2B2B2B", +"y.	c #1A1A1A", +"z.	c #323232", +"A.	c #2E2E2E", +"B.	c #1E1E1E", +"                                                  . + @ @ #                                     ", +"                                                  $       % & . *                               ", +"                                                & .             = & -                           ", +"                                                @                   ; - #                       ", +"                                              > @                       , #                     ", +"                                              . '                         )                     ", +"                                            ! #                         ~ *                     ", +"                                            { @                         # @                     ", +"                                            . >                         . *                     ", +"                                          ] ^ /                       ( _ :                     ", +"                                          $ < [ }                     + +                       ", +"                                        | ' 1 2 3 4 5 / 6 7 8 9 $     & 0                       ", +"                                        ^ * a b c d e f g h i j k l m & '                       ", +"                                        @ n o p q r s t u q v w x y z @                         ", +"                                        A B C u D E F v q F u u G H I @                         ", +"                                        J K L E D F M v u M E q N O P                           ", +"                                        Q R E q S u v M F u E q r T +                           ", +"                                      { U V v F W w v v w F M X Y Z                             ", +"                                      `  ...F u D F u w v w M +.@.#.                            ", +"                                      $.a w w v %.v u u w v w &.*..                             ", +"                                      =.-.w w v ;.u v u w M G >.,.@                             ", +"                                      '.).w v u W v q v u v E !.@                               ", +"                                      ~.{.E u F D F u w v X ].7 #                               ", +"                                      ~.^.F F q S u v M F X /.@                                 ", +"                                      (._.X u E W u v v :.<.[.@                                 ", +"                                      }.|.w F q D F v v 1.2.4                                   ", +"                                      3.4.w w F %.F X 5.6.. 7.                                  ", +"                                      ^ 8.9.G v 0.a.b.c.d..                                     ", +"                                        e.f.g.h.i.j.k.l.m.                                      ", +"                                        - n.o.p.q.3 4 ^                                         ", +"                                        r.@ @ . @ @                                             ", +"                                        s.@ @ @                                                 ", +"                                        > @ )                                                   ", +"                                        t.. u.                                                  ", +"                                        > +                                                     ", +"                                        > v.                                                    ", +"                                        5 '                                                     ", +"                                        #                                                       ", +"                                        v.                                                      ", +"                                      @ (                                                       ", +"                  w.x.]             _ @ (                                                       ", +"                    @ @ @ @ & / - @ @ @ (                                                       ", +"                      { & @ @ @ @ @ @ & (                                                       ", +"                        = / m.@ @ @ @ = 5 )                                                     ", +"                              y.@ @ @ @ @ @ @ -                                                 ", +"                                  z.^ @ @ @ @ m.#                                               ", +"                                        A _ . @ . &                                             ", +"                                                A.B.;                                           "}; + | 
