Rename shell script on desktop, nautilus keeps trying to execute it under its old name

Bug #1812885 reported by Jonathan Kamens
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
gnome-shell-extension-desktop-icons (Ubuntu)
Fix Committed
Low
Unassigned

Bug Description

Create a shell script in /tmp. Make the script executable. Mv it into ~/Desktop. Double-click it and note that it executes. Now rename the file with mv in a terminal window. Double-click it again and note how nautilus attempts to execute it under the old name, which of course fails, and you get a notification about that instead of the script executing.

ProblemType: Bug
DistroRelease: Ubuntu 19.04
Package: nautilus 1:3.30.5-1ubuntu1
ProcVersionSignature: Ubuntu 4.18.0-13.14-generic 4.18.17
Uname: Linux 4.18.0-13-generic x86_64
NonfreeKernelModules: nvidia_modeset nvidia
ApportVersion: 2.20.10-0ubuntu19
Architecture: amd64
CurrentDesktop: ubuntu:GNOME
Date: Tue Jan 22 11:48:06 2019
InstallationDate: Installed on 2019-01-02 (20 days ago)
InstallationMedia: Ubuntu 18.10 "Cosmic Cuttlefish" - Release amd64 (20181017.3)
SourcePackage: nautilus
UpgradeStatus: Upgraded to disco on 2019-01-21 (0 days ago)

Revision history for this message
Jonathan Kamens (jik) wrote :
Revision history for this message
Sebastien Bacher (seb128) wrote :

The desktop is not handled by nautilus anymore, reassigning

affects: nautilus (Ubuntu) → gnome-shell-extension-desktop-icons (Ubuntu)
Revision history for this message
Sebastien Bacher (seb128) wrote :

Similar to bug #1812884, upstream "fixed it" by removing support for scripts...

Changed in gnome-shell-extension-desktop-icons (Ubuntu):
importance: Undecided → Low
status: New → Fix Committed
Revision history for this message
Jonathan Kamens (jik) wrote :

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.

Revision history for this message
Jonathan Kamens (jik) wrote :

PLEASE SEE MY COMMENT ABOVE AND REOPEN THIS ISSUE.

Revision history for this message
Daniel van Vugt (vanvugt) wrote :

This bug is open already. It was never closed.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.