def set_autostart_entry(autostart_data: AutostartSettings):
_logger.info("<STR_LIT>".format(autostart_data))<EOL>autostart_file = Path(common.AUTOSTART_DIR) / "<STR_LIT>"<EOL>if autostart_data.desktop_file_name is None:  <EOL><INDENT>delete_autostart_entry()<EOL><DEDENT>else:<EOL><INDENT>autostart_file.parent.mkdir(exist_ok=True)  <EOL>_create_autostart_entry(autostart_data, autostart_file)<EOL><DEDENT>
Activates or deactivates autostarting autokey during user login.
Autostart is handled by placing a .desktop file into '$XDG_CONFIG_HOME/autostart', typically '~/.config/autostart'