Skip to content

Add command parameters for restarting or reloading configuration to StartMenu #2112

Closed

Description

@mencall

Is your feature request related to a problem? Please describe.

Recently, I tried to integrate localized languages ​​(zh-CN.dll, StartMenuL10N.ini) through the command line(in self-extracting package). I needed to restart StartMenu to reload the language resource file, but I encountered a problem.
The normal operation is to right-click the start menu, select exit (StartMenu), and then re-run StartMenu.exe.
If it is a command line, run StartMenu.exe -exit or use taskkill to end the StartMenu.exe process (or related modules).
But in fact, in the self-extracting package, running StartMenu.exe -exit and StartMenu.exe continuously, StartMenu did not start successfully (the command can be seen running in the process, but StartMenu has exited), and the taskkill method does not work.
It seems that when StartMenu.exe -exit or ending the process, although the command has been run, there is a signal or something that has not been released or something, and StartMenu.exe is a single instance, so this method fails to restart.
Although you can use timeout to delay the wait, in the self-extracting package, the effective waiting time is uncertain, and it may take three or four seconds to ensure success, which is inconvenient.
It takes about four seconds. In fact, in the command of the self-extracting package, I added four StartMenu.exe commands with a timeout of 1 second after the first StartMenu.exe (because it is a single-instance program, it doesn’t matter if you call multiple).

Also, when StartMenu enables the Win+x menu, can a "StartMenu Setting" menu be added?

(Sorry, machine translation,Uh, I can't figure out the style here, why is it show bold, it doesn't seem normal)

Describe the solution you'd like

So, I hope to add a command parameter for restarting or reloading the configuration to StartMenu, thank you!

I hope to be able to set StartMenu when using the Win+x menu.

Area of issue

Start menu

Alternatives you've considered

No response

Additional context

No response

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions