Add command line option to override action script path
This commit is contained in:
parent
e7487cea27
commit
c333aa359f
@ -187,7 +187,7 @@ static COMMAND_LINE_ARGUMENT_A args[] =
|
||||
{ "scale", COMMAND_LINE_VALUE_REQUIRED, "<scale amount (%%)>", "100", NULL, -1, NULL, "Scaling factor of the display (value of 100, 140, or 180)" },
|
||||
{ "scale-desktop", COMMAND_LINE_VALUE_REQUIRED, "<scale amount (%%)>", "100", NULL, -1, NULL, "Scaling factor for desktop applications (value between 100 and 500)" },
|
||||
{ "scale-device", COMMAND_LINE_VALUE_REQUIRED, "<scale amount (%%)>", "100", NULL, -1, NULL, "Scaling factor for app store applications (100, 140, or 180)" },
|
||||
{ "action-script", COMMAND_LINE_VALUE_REQUIRED, "<file name>", "/usr/share/freerdp/action.sh", NULL, -1, NULL, "Action script" },
|
||||
{ "action-script", COMMAND_LINE_VALUE_REQUIRED, "<file name>", "~/.config/freerdp/action.sh", NULL, -1, NULL, "Action script" },
|
||||
{ NULL, 0, NULL, NULL, NULL, -1, NULL, NULL }
|
||||
};
|
||||
|
||||
|
@ -591,6 +591,8 @@ rdpSettings* freerdp_settings_new(DWORD flags)
|
||||
if (!settings->SettingsModified)
|
||||
goto out_fail;
|
||||
|
||||
settings->ActionScript = _strdup("~/.config/freerdp/action.sh");
|
||||
|
||||
return settings;
|
||||
out_fail:
|
||||
free(settings->HomePath);
|
||||
|
Loading…
Reference in New Issue
Block a user