Commit 435623df authored by Chris Morgan's avatar Chris Morgan Committed by Alexandre Julliard

Hardcode "wineshelllink" in winemenubuilder, remove it from the config

file.
parent ca8e3139
...@@ -14,7 +14,6 @@ WINE REGISTRY Version 2 ...@@ -14,7 +14,6 @@ WINE REGISTRY Version 2
"GraphicsDriver" = "x11drv" "GraphicsDriver" = "x11drv"
;"ShowDirSymlinks" = "1" ;"ShowDirSymlinks" = "1"
;"ShowDotFiles" = "1" ;"ShowDotFiles" = "1"
"ShellLinker" = "wineshelllink"
# [wineconf] # [wineconf]
......
...@@ -618,27 +618,6 @@ static int fork_and_wait( char *linker, char *link_name, char *path, ...@@ -618,27 +618,6 @@ static int fork_and_wait( char *linker, char *link_name, char *path,
return retcode; return retcode;
} }
/* write the name of the ShellLinker into the buffer provided */
static BOOL GetLinkerName( LPSTR szLinker, DWORD max )
{
LONG r;
DWORD type = 0;
HKEY hkey;
szLinker[0] = 0;
r = RegOpenKeyExA( HKEY_LOCAL_MACHINE,
"Software\\Wine\\Wine\\Config\\Wine",
0, KEY_ALL_ACCESS, &hkey );
if( r )
return FALSE;
r = RegQueryValueExA( hkey, "ShellLinker", 0, &type, szLinker, &max );
RegCloseKey( hkey );
if( r || ( type != REG_SZ ) )
return FALSE;
return TRUE ;
}
static char *cleanup_link( LPCWSTR link ) static char *cleanup_link( LPCWSTR link )
{ {
char *p, *link_name; char *p, *link_name;
...@@ -711,7 +690,7 @@ static BOOL InvokeShellLinker( IShellLinkA *sl, LPCWSTR link ) ...@@ -711,7 +690,7 @@ static BOOL InvokeShellLinker( IShellLinkA *sl, LPCWSTR link )
char *link_name, *p, *icon_name = NULL, *work_dir = NULL; char *link_name, *p, *icon_name = NULL, *work_dir = NULL;
char *escaped_path = NULL, *escaped_args = NULL; char *escaped_path = NULL, *escaped_args = NULL;
CHAR szDescription[MAX_PATH], szPath[MAX_PATH], szWorkDir[MAX_PATH]; CHAR szDescription[MAX_PATH], szPath[MAX_PATH], szWorkDir[MAX_PATH];
CHAR szArgs[MAX_PATH], szIconPath[MAX_PATH], szLinker[MAX_PATH]; CHAR szArgs[MAX_PATH], szIconPath[MAX_PATH];
int iIconId = 0, r; int iIconId = 0, r;
DWORD ofs=0, csidl= -1; DWORD ofs=0, csidl= -1;
...@@ -721,12 +700,6 @@ static BOOL InvokeShellLinker( IShellLinkA *sl, LPCWSTR link ) ...@@ -721,12 +700,6 @@ static BOOL InvokeShellLinker( IShellLinkA *sl, LPCWSTR link )
return FALSE; return FALSE;
} }
if( !GetLinkerName( szLinker, MAX_PATH ) )
{
WINE_ERR("Can't find the name of the linker script\n");
return FALSE;
}
if( !GetLinkLocation( link, &ofs, &csidl ) ) if( !GetLinkLocation( link, &ofs, &csidl ) )
{ {
WINE_WARN("Unknown link location (%08lx). Ignoring\n", csidl); WINE_WARN("Unknown link location (%08lx). Ignoring\n", csidl);
...@@ -811,7 +784,7 @@ static BOOL InvokeShellLinker( IShellLinkA *sl, LPCWSTR link ) ...@@ -811,7 +784,7 @@ static BOOL InvokeShellLinker( IShellLinkA *sl, LPCWSTR link )
if (szArgs) if (szArgs)
escaped_args = escape(szArgs); escaped_args = escape(szArgs);
r = fork_and_wait(szLinker, link_name, escaped_path, r = fork_and_wait("wineshelllink", link_name, escaped_path,
(csidl == CSIDL_DESKTOPDIRECTORY), escaped_args, icon_name, (csidl == CSIDL_DESKTOPDIRECTORY), escaped_args, icon_name,
work_dir ? work_dir : "", szDescription ); work_dir ? work_dir : "", szDescription );
...@@ -825,7 +798,7 @@ static BOOL InvokeShellLinker( IShellLinkA *sl, LPCWSTR link ) ...@@ -825,7 +798,7 @@ static BOOL InvokeShellLinker( IShellLinkA *sl, LPCWSTR link )
if (r) if (r)
{ {
WINE_ERR("failed to fork and exec %s\n", szLinker ); WINE_ERR("failed to fork and exec wineshelllink\n" );
return FALSE; return FALSE;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment