[PATCH 4/5] winemenubuilder: Skip desktop integration for certain associations

Alex Henrie alexhenrie24 at gmail.com
Tue Oct 12 12:58:06 CDT 2021


On Tue, Oct 12, 2021 at 10:58 AM Alex Henrie <alexhenrie24 at gmail.com> wrote:
>
> On Mon, Oct 11, 2021 at 12:19 PM Alexandre Julliard <julliard at winehq.org> wrote:
> >
> > Alex Henrie <alexhenrie24 at gmail.com> writes:
> >
> > > Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=41275
> > > Signed-off-by: Alex Henrie <alexhenrie24 at gmail.com>
> > > ---
> > > An old version of this patch has been in Wine Staging for over a year.
> > > ---
> > >  dlls/mshtml/mshtml.inf                     |  6 +++
> > >  loader/wine.inf.in                         | 10 +++++
> > >  programs/winemenubuilder/winemenubuilder.c | 50 +++++++++++++++++++---
> > >  3 files changed, 61 insertions(+), 5 deletions(-)
> >
> > That's fairly ugly, especially requiring all modules to create explicit
> > settings under HKCU, and the fact that the commands have to match
> > exactly. I'd suggest to try to find a better approach.
>
> Open question for all Wine developers: What do you think is the right
> approach to preventing unwanted associations?

Another solution that occurs to me is to set the InitialPreference
property in all .desktop files generated by Wine so that all Wine
applications have lower default priority than native applications.
InitialPreference is supported by KDE and LXQt and there is an open
bug report about supporting it in GNOME.[1] Would that be considered
acceptable?

-Alex

[1] https://gitlab.gnome.org/GNOME/glib/-/issues/1721



More information about the wine-devel mailing list