hasi
|
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
|