Skip to content

Wrong name on instances shortcuts with dots #7216

Description

@berni0057

Please confirm the following.

  • I checked the existing issues for duplicate problems
  • I have tried resolving the issue using the support portal
  • I have ensured my Modrinth App installation is up to date

What version of the Modrinth App are you using?

0.18.0

What operating systems are you seeing the problem on?

Windows

Describe the bug

When a shortcut for an instance, which contains a dot in its name, is created, the shortcut name will be wrong, skipping all the text after the dot.
In the Windows save file window, the name appears correctly, but hitting Save and looking at the real shortcut, we can see that is wrong. This happens because Windows thinks that the text after the dot is the format extension.
Here it is an example:

Image

Steps to reproduce

  1. Create an instance with a dot in its name, rename it, or go to one that has a dot.
  2. Click More actions.
  3. Click Create shortcut.
  4. Click Save on the Windows popup.
  5. Go to the location where the shortcut has been created.
  6. See the wrong name.

Expected behavior

The name of the shortcut after saving it on the Windows popup should be Modrinth - <instance name>, without skipping part of it after a dot.

Additional context

Bug found while creating #7215 feature request.

Metadata

Metadata

Assignees

No one assigned

    Labels

    appRelates to Modrinth App

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions