ショコラ
Linux でexeからアイコンを抽出するには?
iconutils で抽出します。
もっさん先輩
icoutils をインストールします。
sudo apt install icoutils
WinSCP から抽出します。
wrestool -x -t 14 ./.win32/drive_c/Program\ Files/WinSCP/WinSCP.exe > ./.win32/drive_c/Program\ Files/WinSCP/WinSCP.ico
[Desktop Entry]
Name=WinSCP
Exec=WINEPREFIX=~/.win32 wine "C:\\Program Files\\WinSCP\\WinSCP.exe"
Type=Application
StartupNotify=true
Icon=/etc/skel/.win32/drive_c/Program Files/WinSCP/WinSCP.ico
StartupWMClass=WinSCP.exe
Categories=Utility;Network;
Teraterm から抽出します。
wrestool -x -t 14 ./.win32/drive_c/Program\ Files/teraterm5/ttermpro.exe > ./.win32/drive_c/Program\ Files/teraterm5/ttermpro.ico
[Desktop Entry]
Name=TeraTern
Exec=WINEPREFIX=~/.win32 wine "C:\\Program Files\\teraterm5\\ttermpro.exe"
Type=Application
StartupNotify=true
Icon=/etc/skel/.win32/drive_c/Program Files/teraterm5/teraterm.ico
StartupWMClass=ttermpro.exe
Categories=Utility;
[Desktop Entry]
Name=TeraTern Menu
Exec=WINEPREFIX=~/.win32 wine "C:\\Program Files\\teraterm5\\ttpmenu.exe"
Type=Application
StartupNotify=true
Icon=/etc/skel/.win32/drive_c/Program Files/teraterm5/teraterm.ico
StartupWMClass=ttpmenu.exe
Categories=Utility;
サクラエディタ から抽出します。
wrestool -x -t 14 ./.win32/drive_c/Program\ Files/sakura/sakura.exe > ./.win32/drive_c/Program\ Files/sakura/sakura.ico
[Desktop Entry]
Name=サクラエディタ
Exec=WINEPREFIX=~/.win32 wine "C:\\Program Files\\sakura\\sakura.exe"
Type=Application
StartupNotify=true
Icon=/etc/skel/.win32/drive_c/Program Files/sakura/sakura.ico
StartupWMClass=sakura.exe
Categories=Utility;TextEditor;
WinMerge から抽出します。
wrestool -x -t 14 ./.win32/drive_c/Program\ Files/WinMerge/WinMergeU.exe > ./.win32/drive_c/Program\ Files/WinMerge/WinMergeU.ico
[Desktop Entry]
Name=WinMerge
Exec=WINEPREFIX=~/.win32 wine "C:\\Program Files\\WinMerge\\WinMergeU.exe"
Type=Application
StartupNotify=true
Icon=/etc/skel/.win32/drive_c/Program Files/WinMerge/WinMergeU.ico
StartupWMClass=WinMergeU.exe
Categories=Utility;
Packetix から抽出します。
wrestool -x -t 14 ~/.win32/drive_c/Program\ Files/PacketiX\ VPN\ Client\ Manager/vpncmgr.exe > ~/.win32/drive_c/Program\ Files/PacketiX\ VPN\ Client\ Manager/vpncmgr.ico
[Desktop Entry]
Name=PacketiX 01 Start
Type=Application
Exec=pkexec env DISPLAY=$DISPLAY XAUTHORITY=$XAUTHORITY vpnclient start
Icon=/etc/skel/.win32/drive_c/Program Files/PacketiX VPN Client Manager/vpncmgr.ico
Categories=Utility;
Comment=sudo vpnclient start
[Desktop Entry]
Name=PacketiX 02 Client
Type=Application
Exec=WINEPREFIX=~/.win32 wine "C:\\Program Files\\PacketiX VPN Client Manager\\vpncmgr.exe"
StartupNotify=true
Icon=/etc/skel/.win32/drive_c/Program Files/PacketiX VPN Client Manager/vpncmgr.ico
StartupWMClass=vpncmgr.exe
Categories=Utility;
Comment=PacketiX VPN Client Manager
[Desktop Entry]
Name=PacketiX 03 DHCP
Type=Application
Exec=pkexec env DISPLAY=$DISPLAY XAUTHORITY=$XAUTHORITY dhclient vpn_vpn
Icon=/etc/skel/.win32/drive_c/Program Files/PacketiX VPN Client Manager/vpncmgr.ico
Categories=Utility;
Comment=sudo dhclient vpn_vpn
以上