I started Winefile and wanted to make a shortcut for a program there.
(right click, Make link)
Nothing happened.
What is the procedure to make a shortcut in Winefile?
Make a shortcut in Winefile?
Re: Make a shortcut in Winefile?
This winefile context menu functionality - Create Link entry - is not yet implemented in Wine:
Code: Select all
dlls/shell32/shlview_cmenu.c
Code: Select all
static HRESULT WINAPI ItemMenu_InvokeCommand(
IContextMenu3 *iface,
LPCMINVOKECOMMANDINFO lpcmi)
{
ContextMenu *This = impl_from_IContextMenu3(iface);
if (lpcmi->cbSize != sizeof(CMINVOKECOMMANDINFO))
FIXME("Is an EX structure\n");
TRACE("(%p)->(invcom=%p verb=%p wnd=%p)\n",This,lpcmi,lpcmi->lpVerb, lpcmi->hwnd);
if (IS_INTRESOURCE(lpcmi->lpVerb) && LOWORD(lpcmi->lpVerb) > FCIDM_SHVIEWLAST)
{
TRACE("Invalid Verb %x\n", LOWORD(lpcmi->lpVerb));
return E_INVALIDARG;
}
if (IS_INTRESOURCE(lpcmi->lpVerb))
{
switch(LOWORD(lpcmi->lpVerb) + FCIDM_BASE)
{
case FCIDM_SHVIEW_EXPLORE:
TRACE("Verb FCIDM_SHVIEW_EXPLORE\n");
DoOpenExplore(This, lpcmi->hwnd, "explore");
break;
case FCIDM_SHVIEW_OPEN:
TRACE("Verb FCIDM_SHVIEW_OPEN\n");
DoOpenExplore(This, lpcmi->hwnd, "open");
break;
case FCIDM_SHVIEW_RENAME:
{
IShellBrowser *browser;
/* get the active IShellView */
browser = (IShellBrowser*)SendMessageA(lpcmi->hwnd, CWM_GETISHELLBROWSER, 0, 0);
if (browser)
{
IShellView *view;
if(SUCCEEDED(IShellBrowser_QueryActiveShellView(browser, &view)))
{
TRACE("(shellview=%p)\n", view);
IShellView_SelectItem(view, This->apidl[0],
SVSI_DESELECTOTHERS|SVSI_EDIT|SVSI_ENSUREVISIBLE|SVSI_FOCUSED|SVSI_SELECT);
IShellView_Release(view);
}
}
break;
}
case FCIDM_SHVIEW_DELETE:
TRACE("Verb FCIDM_SHVIEW_DELETE\n");
DoDelete(This);
break;
case FCIDM_SHVIEW_COPY:
TRACE("Verb FCIDM_SHVIEW_COPY\n");
DoCopyOrCut(This, lpcmi->hwnd, FALSE);
break;
case FCIDM_SHVIEW_CUT:
TRACE("Verb FCIDM_SHVIEW_CUT\n");
DoCopyOrCut(This, lpcmi->hwnd, TRUE);
break;
case FCIDM_SHVIEW_PROPERTIES:
TRACE("Verb FCIDM_SHVIEW_PROPERTIES\n");
DoOpenProperties(This, lpcmi->hwnd);
break;
default:
FIXME("Unhandled Verb %xl\n",LOWORD(lpcmi->lpVerb));
return E_INVALIDARG;
}
}
else
{
TRACE("Verb is %s\n",debugstr_a(lpcmi->lpVerb));
if (strcmp(lpcmi->lpVerb,"delete")==0)
DoDelete(This);
else if (strcmp(lpcmi->lpVerb,"copy")==0)
DoCopyOrCut(This, lpcmi->hwnd, FALSE);
else if (strcmp(lpcmi->lpVerb,"cut")==0)
DoCopyOrCut(This, lpcmi->hwnd, TRUE);
else if (strcmp(lpcmi->lpVerb,"properties")==0)
DoOpenProperties(This, lpcmi->hwnd);
else {
FIXME("Unhandled string verb %s\n",debugstr_a(lpcmi->lpVerb));
return E_FAIL;
}
}
return S_OK;
}
Code: Select all
00fc:fixme:shell:ItemMenu_InvokeCommand Unhandled Verb 51l
Re: Make a shortcut in Winefile?
Thank you for your kinde reply. Unfortunately I don't understand it.
Have I, as a user a way to create a shortcut in Winefile?
Where can I find the procedure?
Thank you.
Laszlo
Have I, as a user a way to create a shortcut in Winefile?
Where can I find the procedure?
Thank you.
Laszlo
Re: Make a shortcut in Winefile?
Hi Laszlo
You won't be able to make a shortcut directly in a the builtin Wine file managers: winefile.exe or explorer.exe .
It would probably be easier to do this task directly with your builtin/native Linux file manager.
E.g. for the Plasma 5 Desktop Environment:
Code: Select all
dolphin ~/.wine/drive_c
Create New Link ➞ Link to File or Directory...
Other Desktop Environments are available!
Bob
Re: Make a shortcut in Winefile?
Yes, I came to the same conclusion.
But frankly, why is this basic function still missing?
But frankly, why is this basic function still missing?
Re: Make a shortcut in Winefile?
The wine re-implemented Windows programs can be incomplete, with functionality only added if some app needs it or if someone requests it. In this particular case it's probably low priority since you can use Linux tools to do the same thing, more or less. I did look on https://bugs.winehq.org/ and didn't see that anyone has requested this yet; you could be the first.