Wednesday, July 4, 2007

Really Transparent Windows Application with scripted SeamlessRDP

I created the following script to enable really seamless Windows XP and Linux integration. Just click to any file (as long as the file is shared with the VM) to open it with appropriate Windows program :

thartono@thartono-linux:~$ more bin/visio
#!/bin/bash
echo rdesktop -A -s "'"c:\\seamlessrdp\\seamlessrdpshell.exe C:\\Program Files\\Microsoft Office\\visio11\\visio.exe \"$@\""'" thartono-wxp:3389 -u thartono -p xxxxxx
>~/Desktop/rdesktop.cmd.txt
cat ~/Desktop/rdesktop.cmd.txt | sed "s_/_\\\_g" | sed " s_\\\home\\\thartono\\\data\\\customers_z:\\\customers_g " | sed "s_\\\home\\\thartono\\\data\\\products_z:\\
\products_g " | sed "s_\\\home\\\thartono\\\data\\\shared_z:_g " |sh
rm ~/Desktop/rdesktop.cmd.txt

No comments: