Linux Lite Forums

Software - Support => Other => Topic started by: timbuck2 on February 16, 2019, 10:27:56 PM

Title: File associations with Wine programs
Post by: timbuck2 on February 16, 2019, 10:27:56 PM
Hello, I have two type of files XEX and HYP that use two different Wine programs.

But when I try to open a HYP it uses the program for XEX.

If I change the file association to the program for HYP, then the XEX tries to use that program so it is a loop.

Is this a wine issue or linux lite issue?  How can I straighten this out?
Title: Re: File associations with Wine programs
Post by: bitsnpcs on February 17, 2019, 03:59:22 PM
Hello timbuck2,

I have not used Wine.
On this link it talks about using PlayonLinux  for solving some problems with Wine - 

https://www.linuxliteos.com/forums/installing-software/installing-newer-version-of-wine-not-in-repository/msg45332/#msg45332 (https://www.linuxliteos.com/forums/installing-software/installing-newer-version-of-wine-not-in-repository/msg45332/#msg45332)

PlayonLinux is available in Lite Software.
Title: Re: File associations with Wine programs
Post by: bitsnpcs on February 17, 2019, 04:12:33 PM
I found a solution info for fixing file associations in Wine on Xfce using command line -

https://www.linuxquestions.org/questions/slackware-14/wine-hijacked-my-file-associations-4175531100/ (https://www.linuxquestions.org/questions/slackware-14/wine-hijacked-my-file-associations-4175531100/)
Title: Re: File associations with Wine programs
Post by: Jerry on February 17, 2019, 06:52:23 PM
You'll need to tell us what programs they are each for. Cheers.
Title: Re: File associations with Wine programs
Post by: timbuck2 on February 17, 2019, 10:43:17 PM
You'll need to tell us what programs they are each for. Cheers.

.HYP files need to run with WinGuide.exe and .XEX files need to run with Altirra.exe

Does this help with getting the knot untied?
Title: Re: File associations with Wine programs
Post by: Jerry on February 17, 2019, 10:49:46 PM
A little. Just a tip when asking for support, please provide as much information as possible. For example, a quick Google of WinGuide.exe lead me to https://osdn.net/projects/sfnet_theguide/ (https://osdn.net/projects/sfnet_theguide/) is that right? So we'll need the actual links and names of the primary software. Most of us won't know what these are or where they come from or what they do.
Title: Re: File associations with Wine programs
Post by: timbuck2 on February 18, 2019, 09:47:05 AM
A little. Just a tip when asking for support, please provide as much information as possible. For example, a quick Google of WinGuide.exe lead me to https://osdn.net/projects/sfnet_theguide/ (https://osdn.net/projects/sfnet_theguide/) is that right? So we'll need the actual links and names of the primary software. Most of us won't know what these are or where they come from or what they do.

Hello,

No, sorry that is not the program.  These are two windows programs I am running using wine.  They don't even have installers.  I just copied their files over from my windows partitions into the .wine folder Program Files.  I just need to know how to unlink their file associations so I they don't try to open each others files.
Title: Re: File associations with Wine programs
Post by: DeepThought on February 18, 2019, 11:33:42 AM
@timbuck2

Right-click on XEX file and choose  "open with other application", then look for and select the program you want to associate with this type of file. Wine programs might not show and you will need to click on "use a custom command" and browse to the windows exe file. To run with wine you must prefix what you find with wine,
eg wine " /home/USER/.wine/drive_c/Program Files/Someprogram/someprogram.exe" and also don't forget to enclose the path in "" because of any spaces in folder/file names.
Then tick the box for "Use as default for this kind of file". Close the dialogs.

Repeat for a HYP file and that should associate those files with the different programs.
Title: Re: File associations with Wine programs
Post by: timbuck2 on February 18, 2019, 02:04:07 PM
@timbuck2

Right-click on XEX file and choose  "open with other application", then look for and select the program you want to associate with this type of file. Wine programs might not show and you will need to click on "use a custom command" and browse to the windows exe file. To run with wine you must prefix what you find with wine,
eg wine " /home/USER/.wine/drive_c/Program Files/Someprogram/someprogram.exe" and also don't forget to enclose the path in "" because of any spaces in folder/file names.
Then tick the box for "Use as default for this kind of file". Close the dialogs.

Repeat for a HYP file and that should associate those files with the different programs.

Ok, I just did that for both program types.  But the strangest thing is even after manually setting them as you described, they still are linked.  If I manually set Altirra.exe to open .XEX files, the .HYP files will try to open with Altirra.exe also.  And if I then set WinGuide.exe to open .HYP files, then .XEX files try open with WinGuide.exe.

Title: Re: File associations with Wine programs
Post by: DeepThought on February 18, 2019, 02:26:10 PM
@timbuck2
A google search brought up this answer which might be of use to you:

https://askubuntu.com/questions/323437/how-to-prevent-wine-from-adding-file-associations/400430#400430
Title: Re: File associations with Wine programs
Post by: timbuck2 on February 18, 2019, 10:44:11 PM
Thanks for all your help.  I tried the suggestions from the link, but then Linux Lite wouldn't open anything with Wine associations so I reverted to letting wine manage associations via winecfg.

I don't have time to mess this anymore lol.  I'll just right-click .HYP files and open with wine and let .XEX files open automatically.  No biggie...didn't realize this would be such a ball of twine.

Don't use .HYP files very much anyway...just a small inconvenience.
Title: Re: File associations with Wine programs
Post by: Jerry on February 18, 2019, 10:46:00 PM
It's a pity to give up, I would have helped more if you'd provided the information that was asked for.
Title: Re: File associations with Wine programs
Post by: timbuck2 on February 18, 2019, 11:48:54 PM
It's a pity to give up, I would have helped more if you'd provided the information that was asked for.

Eh, not a big deal.  Got other things going on to take precedence.  Thanks anyway.
Title: Re: File associations with Wine programs
Post by: DeepThought on February 19, 2019, 02:42:35 AM
@timbuck2

Some more info here:

https://wiki.winehq.org/FAQ#How_can_I_prevent_Wine_from_changing_the_filetype_associations_on_my_system_or_adding_unwanted_menu_entries.2Fdesktop_links.3F

Scroll down to "6.6.3 How do I associate a native program with a file type in Wine?"

Otherwise you might get better answers if you ask your question on the winehq forums.