https://bugs.winehq.org/show_bug.cgi?id=54282
Bug ID: 54282 Summary: Allow winecfg create a prefix without mime associations and no linked folders integration Product: Wine Version: 8.0-rc3 Hardware: x86-64 OS: Linux Status: UNCONFIRMED Severity: normal Priority: P2 Component: -unknown Assignee: wine-bugs@winehq.org Reporter: shtetldik@gmail.com Distribution: ---
By default when creating a prefix, winecfg will try to enable mime files association and folders integration which can then be disabled explicitly.
I prefer to create a prefix with specific Windows version out of the box, passing /v win10 for example. But that creates a ton of .desktop and mime files for associations. It becomes a chore when creating a prefix to clean them out every time.
It would be neat to have some parameter for winecfg that will disable mime files associations and desktop folders integration out of the box making creating a neat prefix with one command doable.
Something like
WINEPREFIX='/.../foo' winecfg /v win10 /nomime /nofolders
https://bugs.winehq.org/show_bug.cgi?id=54282
--- Comment #1 from Shmerl shtetldik@gmail.com --- What I mean is not only disabling .desktop files (that comes along with mime integration), but disabling symlinking folders like Documents and etc.
https://bugs.winehq.org/show_bug.cgi?id=54282
--- Comment #2 from Rafał Mużyło galtgendo@o2.pl --- 1. IIRC, there's already a bug or two on this topic 2. winecfg is a non-factor here; the symlinks happen during shell32 _SHCreateSymbolicLink; desktop files IIRC are written by winemenubuilder during prefix creation/update
Other than that, I agree with at least some of your points - wine's xdg integration is (IMHO) more often than not a misfeature.
https://bugs.winehq.org/show_bug.cgi?id=54282
Austin English austinenglish@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |austinenglish@gmail.com
https://bugs.winehq.org/show_bug.cgi?id=54282
--- Comment #3 from Shmerl shtetldik@gmail.com --- (In reply to Rafał Mużyło from comment #2)
- winecfg is a non-factor here; the symlinks happen during shell32
_SHCreateSymbolicLink; desktop files IIRC are written by winemenubuilder during prefix creation/update
Why I thought winecfg is relevant is becasue it's where you go to disable that symlinking and mime association. So even if it happens before winecfg can take control over things, may be it can just undo it and clean things up if such parameters are passed, or something of the sort.
https://bugs.winehq.org/show_bug.cgi?id=54282
--- Comment #4 from Shmerl shtetldik@gmail.com --- I also tried a workaround with WINEDLLOVERRIDES='winmenubuilder.exe=d' when running winecfg, but that doesn't work consistently.
Basically the goal would be making a first run for prefix creation with least hassle when disabling all that in one command.
https://bugs.winehq.org/show_bug.cgi?id=54282
--- Comment #5 from Shmerl shtetldik@gmail.com --- Another alternative would be like this - disable mime association and symlinking out of the box. I think it would be better to make them be enabled explicitly only for those who need them.
https://bugs.winehq.org/show_bug.cgi?id=54282
Zeb Figura z.figura12@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |z.figura12@gmail.com
--- Comment #6 from Zeb Figura z.figura12@gmail.com --- Disabling winemenubuilder should entirely prevent associations; if it doesn't that's a bug.
https://bugs.winehq.org/show_bug.cgi?id=54282
--- Comment #7 from Shmerl shtetldik@gmail.com --- (In reply to Zeb Figura from comment #6)
Disabling winemenubuilder should entirely prevent associations; if it doesn't that's a bug.
Yeah, it works in such fashion:
WINEDLLOVERRIDES='winmenubuilder.exe=d' WINEPREFIX=<prefix> winecfg
Then disable mime and folders, set version, press Apply.
WINEPREFIX=<prefix> winecfg
mime / desktop files still aren't created.
But it would still be good to be able with less manual steps in one command.
https://bugs.winehq.org/show_bug.cgi?id=54282
--- Comment #8 from Shmerl shtetldik@gmail.com --- OK, here is the scenario when something doesn't work:
First do: WINEDLLOVERRIDES='winmenubuilder.exe=d' WINEPREFIX=<prefix> winecfg /v win10
Then do: WINEDLLOVERRIDES='winmenubuilder.exe=d' WINEPREFIX=<prefix> winecfg
Remove mime settings, folders, press OK.
.desktop files and mime are created in this case.
The first step is really redundant since it doesn't help automation much anyway.
https://bugs.winehq.org/show_bug.cgi?id=54282
--- Comment #9 from Zeb Figura z.figura12@gmail.com --- The pasted command contains a misspelling; it's winem-, not winm-.
https://bugs.winehq.org/show_bug.cgi?id=54282
--- Comment #10 from Shmerl shtetldik@gmail.com --- Oh, good catch. That helped indeed.
But it still would be nice to be able to make it all in one go when creating a prefix without jumping through a bunch of manual steps.