The issue persists in a slightly different form with .desktop files:
1. Create a .desktop file on the desktop.
2. Right click on it and give it permission to launch.
3. Double-click on it and confirm that it launches.
4. Mv it to a new name in a terminal window.
5. Observe how it remains displayed as an app icon rather than switching to a text file.
6. Further observe that when you right-click on it, there is a "Don't Allow Launching" menu command available.
6. Double-click on it and observe that instead of launching, it opens in gedit.
Either (a) double-clicking on the renamed .desktop file should cause the app to launch, or (b) the icon should change to a text-file icon and the menu item should change to "Allow Launching" when the file is renamed.
The current behavior, however, is an incorrect combination of those two possible correct behaviors.
The issue persists in a slightly different form with .desktop files:
1. Create a .desktop file on the desktop.
2. Right click on it and give it permission to launch.
3. Double-click on it and confirm that it launches.
4. Mv it to a new name in a terminal window.
5. Observe how it remains displayed as an app icon rather than switching to a text file.
6. Further observe that when you right-click on it, there is a "Don't Allow Launching" menu command available.
6. Double-click on it and observe that instead of launching, it opens in gedit.
Either (a) double-clicking on the renamed .desktop file should cause the app to launch, or (b) the icon should change to a text-file icon and the menu item should change to "Allow Launching" when the file is renamed.
The current behavior, however, is an incorrect combination of those two possible correct behaviors.