MMCT TEAM
1Server IP : 217.21.90.164  /  Your IP : 216.73.216.51
Web Server : LiteSpeed
System : Linux in-mum-web840.main-hosting.eu 4.18.0-553.37.1.lve.el8.x86_64 #1 SMP Mon Feb 10 22:45:17 UTC 2025 x86_64
User : u367232671 ( 367232671)
PHP Version : 7.4.33
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : OFF  |  Python : OFF
Directory (0755) :  /lib/rpm/

[  Home  ][  C0mmand  ][  Upload File  ]

Current File : //lib/rpm/desktop-file.prov
#!/bin/sh
#
# Transform desktop mimetype info into RPM mimehandler(type) provides
#
# Author: Richard Hughes <richard@hughsie.com>
# Based on other provides scripts from RPM

OLD_IFS="$IFS"
while read instfile ; do
	case "$instfile" in
	*.desktop)
		if ! grep -q '^Type=Application$' "$instfile"; then continue; fi
		if ! grep -q '^Exec=' "$instfile"; then continue; fi
		echo "application()"
		echo "application(${instfile##*/applications/})"
		mime=`grep '^MimeType=' "$instfile" | cut -d'=' -f2`
		IFS=';'
		for type in $mime ; do
			echo 'mimehandler('$type')'
		done
		;;
	esac
done
IFS=$OLD_IFS


MMCT - 2023