@@ -122,6 +122,8 @@ def _create_buttons(self, sizer, no_default=False):
122122 if no_default :
123123 flags |= wx .NO_DEFAULT
124124 buttons = self .CreateStdDialogButtonSizer (flags )
125+ if not no_default :
126+ buttons .SetAffirmativeButton (buttons .GetItemById (wx .OK ))
125127 self .SetBackgroundColour (Colour (self .color_background ))
126128 self .SetForegroundColour (Colour (self .color_foreground ))
127129 for item in self .GetChildren ():
@@ -223,7 +225,7 @@ def _create_desktop_shortcut_linux(frame=None):
223225 roboticon = join ("FIXME: find correct path to: .../site-packages/" , "robotide" , "widgets" , ROBOT_ICO )
224226 with open (link , "w+" ) as shortcut :
225227 shortcut .write (f"#!/usr/bin/env xdg-open\n [Desktop Entry]\n "
226- f"Exec={ sys .executable } -m robotide.__init__ \n "
228+ f"Exec={ sys .executable } -m robotide\n "
227229 f"Comment=A Robot Framework IDE\n GenericName=RIDE\n "
228230 f"Icon={ roboticon } \n "
229231 f"Name=RIDE\n StartupNotify=true\n Terminal=false\n "
@@ -248,7 +250,7 @@ def _create_desktop_shortcut_mac(frame=None):
248250 app_script = os .path .join (ride_app_module_path , 'Contents' , 'MacOS' , 'RIDE' )
249251 with open (app_script , 'w+' ) as shortcut :
250252 shortcut .write ("#!/bin/sh\n PAL=$PATH\n for i in `cat /etc/paths`\n do\n PAL=\" $PAL:$i\" \n "
251- " done\n PATH=$PAL\n export $PATH\n {} -m robotide.__init__ $* 2>"
253+ " done\n PATH=$PAL\n export $PATH\n {} -m robotide $* 2>"
252254 " /dev/null &\n " .format (sys .executable ))
253255 if exists (ride_app_pc_path ):
254256 shutil .rmtree (ride_app_pc_path , True )
@@ -290,7 +292,7 @@ def _create_desktop_shortcut_windows(frame=None):
290292 shortcut = pythoncom .CoCreateInstance (shell .CLSID_ShellLink , None ,
291293 pythoncom .CLSCTX_INPROC_SERVER ,
292294 shell .IID_IShellLink )
293- command_args = " -c \" from robotide import main; main() \" "
295+ command_args = " -m robotide "
294296 shortcut .SetPath (sys .executable .replace ('python.exe' , 'pythonw.exe' ))
295297 shortcut .SetArguments (command_args )
296298 shortcut .SetDescription ("Robot Framework testdata editor" )
0 commit comments