HOME SHELL

NULLCOMMUNITY
 LiteSpeed
 Linux server2.poyrazhosting.com 3.10.0-962.3.2.lve1.5.77.el7.x86_64 #1 SMP Mon Dec 12 07:06:14 EST 2022 x86_64
 safemode : OFF
 MySQL: OFF | Perl: OFF | cURL: ON | WGet: OFF
  >  / lib / rpm /

Server Ip : 104.21.78.54




Filename/lib/rpm/desktop-file.prov
Size602
Permissionrwxr-xr-x
Owner
Create time08-Dec-2022 22:35
Last modified24-Nov-2021 09:47
Last accessed24-Nov-2021 09:47
Actionsedit | rename | delete | download (gzip)
Viewtext | code | image
#!/bin/sh
#
# Transform desktop mimetype info into RPM mimehandler(type) provides
#
# Author: Richard Hughes <[email protected]>
# 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