如何找到运行在 wine 下安装的程序的命令?

如何找到运行在 wine 下安装的程序的命令?

我在 wine 下安装了 PDFXEditor。我可以从桌面菜单启动该程序,但我喜欢找出正在运行的命令,因此在程序运行时,

$ ps aux | grep -i PDFXEdit
t        23516  7.6  1.6 2129760 133368 ?      Ssl  08:11   0:02 C:\PROG~5P2\TRAC~EK1\PDF_~VHK\PDFXEdit.exe

输出中的最后一个字段C:\PROG~5P2\TRAC~EK1\PDF_~VHK\PDFXEdit.exe不是命令。那么它是什么?

ps最后一个字段不应该告诉我命令吗?为什么不呢?

我如何才能找出运行该程序的实际命令?

谢谢。


更新 1:

$ find ~/.local/share/applications/wine/ -name "*.desktop" -exec sed '/Exec=/!d' {} \;
Exec=env WINEPREFIX="/home/t/.wine" wine C:\\\\windows\\\\command\\\\start.exe /Unix /home/t/.wine/dosdevices/c:/users/t/Start\\ Menu/Programs/Amazon/Amazon\\ Kindle/Uninstall\\ Kindle.lnk
Exec=env WINEPREFIX="/home/t/.wine" wine C:\\\\windows\\\\command\\\\start.exe /Unix /home/t/.wine/dosdevices/c:/users/t/Start\\ Menu/Programs/Amazon/Amazon\\ Kindle/Kindle.lnk
Exec=env WINEPREFIX="/home/t/.wine" wine C:\\\\windows\\\\command\\\\start.exe /Unix /home/t/.wine/dosdevices/c:/ProgramData/Microsoft/Windows/Start\\ Menu/Programs/Adobe\\ Digital\\ Editions\\ 4.5.lnk
Exec=env WINEPREFIX="/home/t/.wine" wine C:\\\\windows\\\\command\\\\start.exe /Unix /home/t/.wine/dosdevices/c:/users/t/Start\\ Menu/Programs/Tracker\\ Software/Tracker\\ Updater.lnk
Exec=env WINEPREFIX="/home/t/.wine" wine C:\\\\windows\\\\command\\\\start.exe /Unix /home/t/.wine/dosdevices/c:/users/t/Start\\ Menu/Programs/Tracker\\ Software/PDF-XChange\\ Lite\\ V6/PDF-XChange\\ Lite\\ V6\\ License\\ Agreement.lnk
Exec=env WINEPREFIX="/home/t/.wine" wine C:\\\\windows\\\\command\\\\start.exe /Unix /home/t/.wine/dosdevices/c:/users/t/Start\\ Menu/Programs/Tracker\\ Software/PDF-XChange\\ Lite\\ V6/PDF-XChange\\ Lite\\ V6\\ pdfSaver.lnk
Exec=env WINEPREFIX="/home/t/.wine" wine C:\\\\windows\\\\command\\\\start.exe /Unix /home/t/.wine/dosdevices/c:/users/t/Start\\ Menu/Programs/Tracker\\ Software/PDF-XChange\\ Lite\\ V6/PDF-XChange\\ Lite\\ V6\\ User\\ Manual.lnk
Exec=env WINEPREFIX="/home/t/.wine" wine C:\\\\windows\\\\command\\\\start.exe /Unix /home/t/.wine/dosdevices/c:/users/t/Start\\ Menu/Programs/Tracker\\ Software/PDF-XChange\\ Editor/PDF-XChange\\ Editor\\ Help.lnk
Exec=env WINEPREFIX="/home/t/.wine" wine C:\\\\windows\\\\command\\\\start.exe /Unix /home/t/.wine/dosdevices/c:/users/t/Start\\ Menu/Programs/Tracker\\ Software/PDF-XChange\\ Editor/PDF-XChange\\ Editor\\ License\\ Agreement.lnk
Exec=env WINEPREFIX="/home/t/.wine" wine C:\\\\windows\\\\command\\\\start.exe /Unix /home/t/.wine/dosdevices/c:/users/t/Start\\ Menu/Programs/Tracker\\ Software/PDF-XChange\\ Editor.lnk
Exec=env WINEPREFIX="/home/t/.wine" wine C:\\\\windows\\\\command\\\\start.exe /Unix /home/t/.wine/dosdevices/c:/ProgramData/Microsoft/Windows/Start\\ Menu/Programs/Adobe/Adobe\\ Digital\\ Editions\\ 4.5/Help.lnk
Exec=env WINEPREFIX="/home/t/.wine" wine C:\\\\windows\\\\command\\\\start.exe /Unix /home/t/.wine/dosdevices/c:/ProgramData/Microsoft/Windows/Start\\ Menu/Programs/Adobe/Adobe\\ Digital\\ Editions\\ 4.5/Adobe\\ Digital\\ Editions\\ 4.5.lnk
Exec=env WINEPREFIX="/home/t/.wine" wine C:\\\\windows\\\\command\\\\start.exe /Unix /home/t/.wine/dosdevices/c:/ProgramData/Microsoft/Windows/Start\\ Menu/Programs/Adobe/Adobe\\ Digital\\ Editions\\ 4.5/Home\\ Page.lnk
Exec=env WINEPREFIX="/home/t/.wine" wine C:\\\\windows\\\\command\\\\start.exe /Unix /home/t/.wine/dosdevices/c:/ProgramData/Microsoft/Windows/Start\\ Menu/Programs/Adobe/Adobe\\ Digital\\ Editions\\ 4.5/Uninstall.lnk
Exec=env WINEPREFIX="/home/t/.wine" wine C:\\\\windows\\\\command\\\\start.exe /Unix /home/t/.wine/dosdevices/c:/users/Public/Start\\ Menu/Programs/PDF-XChange\\ PDF\\ Viewer/PDF-Viewer\\ Users\\ Manual.lnk
Exec=env WINEPREFIX="/home/t/.wine" wine C:\\\\windows\\\\command\\\\start.exe /Unix /home/t/.wine/dosdevices/c:/users/Public/Start\\ Menu/Programs/PDF-XChange\\ PDF\\ Viewer/PDF-Viewer.lnk
Exec=env WINEPREFIX="/home/t/.wine" wine C:\\\\windows\\\\command\\\\start.exe /Unix /home/t/.wine/dosdevices/c:/users/Public/Start\\ Menu/Programs/PDF-XChange\\ PDF\\ Viewer/Tracker\\ Updater.lnk
Exec=env WINEPREFIX="/home/t/.wine" wine C:\\\\windows\\\\command\\\\start.exe /Unix /home/t/.wine/dosdevices/c:/users/Public/Start\\ Menu/Programs/PDF-XChange\\ PDF\\ Viewer/PDF-Viewer\\ License.lnk
Exec=env WINEPREFIX="/home/t/.wine" wine C:\\\\windows\\\\command\\\\start.exe /Unix /home/t/.wine/dosdevices/c:/users/Public/Start\\ Menu/Programs/PDF-XChange\\ PDF\\ Viewer/Uninstall.lnk

更新 2

$ wine ~/.wine/drive_c/Program\ Files\ \(x86\)/Tracker\ Software/PDF\ Editor/PDFXEdit.exe 
Segmentation fault (core dumped)

更新 3

$ wine  "/home/t/.wine/drive_c/Program Files (x86)/Tracker Software/PDF Editor/PDFXEdit.exe"
Segmentation fault (core dumped)

更新 4

$ export WINEARCH=win32 
$ wine  "/home/t/.wine/drive_c/Program Files (x86)/Tracker Software/PDF Editor/PDFXEdit.exe"
wine: WINEARCH set to win32 but '/home/t/.wine' is a 64-bit installation

答案1

C:\PROG~5P2\TRAC~EK1\PDF_~VHK\PDFXEdit.exe是一个混乱且无用的 Windows 路径,但至少你得到了可执行文件的名称:PDFXEdit.exe

使用以下命令在目录中搜索~/.wine此文件

find ~/.wine/dosdevices/c:/ -name "PDFXEdit.exe"

找到正确的路径后,将其用引号括起来,然后使用 运行它。此方法也wine "/path/to/file.exe"可以用于其他可执行文件,例如etc.。.msi

相关内容