Forums

Script showing all installed programs and their wine versions

Auteur Réponses
hasi Dimanche 10 Février 2008 à 15:44
hasiAnonymous


Hey all,
the following is a pretty basic script that has proven very useful for me. It creates a list of all apps installed under POL, including their wine versions. It helps me to keep track of things.

#!/bin/bash
cd ~/.PlayOnLinux/configurations/installed
echo "-------------------------------"
# look at all script names in the POL script directory
for ARG in *
do
# check if they are assigned to a specific wine version
WV=`grep WineVersions "$ARG"`
WV=${WV##PATH=\"$HOME/.PlayOnLinux/WineVersions/}
WV=${WV%%/usr/bin/:\$PATH\"}
# take the script name, add some spaces to make it look pretty
ARG="$ARG"" "
ARG=`expr substr "$ARG" 1 24`
# print the script name and the wine version (if existing)
echo "$ARG" $WV
done
echo "-------------------------------"
exit 0


If more people think this is very useful, something like that may be included into POL? Maybe like a menu function that invokes the POL shell and executes the script?
Even better, of course, would be a function, where the wine version is shown in the POL window, maybe to the right side of the program icons?
Let me know what you think.
--hasi
Quentin PÂRIS Vendredi 15 Février 2008 à 4:46
Quentin PÂRISAnonymous

Yep, good idea. I will add this kind of feature in the next version of PlayOnLinux

Thank's

This site allows content generated by members, and we promptly remove any content that infringes copyright according to our Terms of Service. To report copyright infringement, please send a notice to dmcayonlinux.com