Thursday, May 2, 2024
 Popular · Latest · Hot · Upcoming
3
rated 0 times [  3] [ 0]  / answers: 1 / hits: 4858  / 2 Years ago, sun, july 17, 2022, 8:04:22

You can open documents in particular programs in Wine from the terminal using



wine start /ProgIDOpen <ProgID> <Document_to_open>


This format is necessary, since calling Wine programs in alternative ways will not open the document. e.g. the following launch the application, but do not open the document.



/path/to/prog.exe <Document_to_open>
wine /path/to/prog.exe <Document_to_open>


However, it's not obvious how to find the <ProgID> associated with each program. How can I find this information?


More From » wine

 Answers
0

The ProgIDs are listed in $WINEPREFIX/system.reg, which by default is at ~/.wine/system.reg. They are of the format.



[SoftwareClassesFoxitReader.FDFDoc] 1382350649


Although there are additional semi-duplicate lines such as



[SoftwareClassesFoxitReader.FDFDocDefaultIcon] 1382350649


To list all ProgIDs, use the following command (in the terminal).



sed -rn 's/^[SoftwareClasses([^]*)].*/1/p' system.reg | less


For those unfamiliar with less: to search, press /, type a phrase then Enter ; to exit, press q.


[#26615] Tuesday, July 19, 2022, 2 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
ithriv

Total Points: 46
Total Questions: 115
Total Answers: 96

Location: Malaysia
Member since Wed, May 11, 2022
2 Years ago
ithriv questions
Tue, Mar 14, 23, 14:31, 1 Year ago
Wed, Oct 5, 22, 02:59, 2 Years ago
Fri, Mar 11, 22, 10:12, 2 Years ago
Thu, May 11, 23, 10:55, 1 Year ago
Sun, Sep 26, 21, 06:47, 3 Years ago
;