長く引っぱったWINEがらみの話題も今回で一段落となります。このシリーズを書き始めて約8ヵ月,
WINEの使い方
WINEの使い方自体は簡単で,
一例として,
まず,
$ unzip -l setup_th15_001b.zip Archive: setup_th15_001b.zip Length Date Time Name --------- ---------- ----- ---- 186545248 07-31-2015 18:01 setup_th15_001b.exe --------- ------- 186545248 1 file $ unzip setup_th15_001b.zip inflating: setup_th15_001b.exe $ ls -lh setup* -rw-r--r-- 1 kojima users 178M 7月 31日 2015年 setup_th15_001b.exe -rw-r--r-- 1 kojima users 178M 5月 22日 14:17 setup_th15_001b.zip
取り出したexeファイルを引数にWINEを実行すると,
$ wine setup_th15_001b.exe
用意されたアイコンをダブルクリックするとゲームの画面が開き,
このようにWINEは,
WINEの提供する仮想Windows環境
それではWINEはどのように仮想的なWindows環境を作っているのか,
WINEは,
$ ls ~/.wine dosdevices/ drive_c/ system.reg user.reg userdef.reg winetricks.log
古くからのPCユーザには見当が付くように,
$ ls ~/.wine/drive_c/ Program Files/ Program Files (x86)/ ProgramData/ users/ windows/ $ ls ~/.wine/drive_c/windows/ Fonts/ globalization/ mono/ system.ini twain.dll winhelp.exe* Installer/ help/ notepad.exe* system32/ twain_32/ winhlp32.exe* Microsoft.NET/ hh.exe* regedit.exe* syswow64/ twain_32.dll winsxs/ command/ inf/ rundll.exe* tasks/ twain_64/ explorer.exe* logs/ system/ temp/ win.ini
今回インストールした
$ ls ~/.wine/drive_c/Program\ Files\ \(x86\)/ Common Files/ Internet Explorer/ Windows Media Player/ Windows NT/ 上海アリス幻樂団/ $ ls ~/.wine/drive_c/Program\ Files\ \(x86\)/上海アリス幻樂団/東方紺珠伝体験版/ custom.exe* readme.txt th15tr.dat unins000.dat omake.txt th15.exe* thbgm_tr.dat unins000.exe*
デスクトップ上に作成された
$ cat ~/Desktop/東方紺珠伝\ 体験版.desktop [Desktop Entry] Name=東方紺珠伝 体験版 Exec=env WINEPREFIX="/home/kojima/.wine" wine C:\\\\Program\\ Files\\ \\(x86\\)\\\\上海アリス幻樂団\\\\東方紺珠伝体験版\\\\th15.exe Type=Application StartupNotify=true Path=/home/kojima/.wine/dosdevices/c:/Program Files (x86)/上海アリス幻樂団/東方紺珠伝体験版 Icon=6C74_th15.0 StartupWMClass=th15.exe
コードを確認したわけではないものの,
$ file ~/Desktop/東方紺珠伝\ 体験版.lnk /home/kojima/Desktop/東方紺珠伝 体験版.lnk: MS Windows shortcut, Item id list present, Points to a file or directory, Has Working directory, Has command line arguments, ctime=Sun Dec 31 14:41:01 1600, mtime=Sun Dec 31 14:41:01 1600, atime=Sun Dec 31 14:41:01 1600, length=0, window=hide
先に見たデスクトップアイコンが示すように,
$ wine ~/.wine/drive_c/Program\ Files\ \(x86\)/上海アリス幻樂団/東方紺珠伝体験版/th15.exe
一方,