portapps / nextcloud-portable

🚀 Nextcloud portable for Windows
https://portapps.io/app/nextcloud-portable/
MIT License
51 stars 6 forks source link

Running the app adds undesirable shortcut to user's explorer #64

Open 9a3eedi opened 6 months ago

9a3eedi commented 6 months ago

Behaviour

When Nextcloud portable is run from a portable drive, it leaves an artifact that is difficult to remove on the computer's currently running user. Particularly there's a shortcut that gets added to the user's explorer view when you first run the app, and it points to the portable drive. When the portable drive is removed, the shortcut is still there but it becomes a broken link.

I couldn't figure out how to remove the artifact unfortunately. The delete option is not there when rightclicking on the item.

Note that the official app also does this, and it's fine if it's a non-portable installation. But it is not appropriate for the portable version.

Steps to reproduce this issue

  1. Put nextcloud on a portable drive
  2. Run nextcloud from the portable drive on a fresh new computer
  3. Observe the nextcloud shortcut showing up in explorer, pointing to the portable drive
  4. Quit nextcloud and unplug the portable drive
  5. Observe the shortcut not disappearing.
  6. Reboot the computer
  7. Observe that the shortcut is still persistent

Expected behaviour

The portable nextcloud client should be completely portable and not affect the computer user's configuration in any way. There should not be any leftover artifacts from running portable Nextcloud.

Actual behaviour

A persistent shortcut is added to the computer user's explorer view, which points to the portable nextcloud directory, and it is difficult to remove.

Configuration

App release / arch (ex. 1.0.0-2 win64) : Nextcloud 3.11.0, Portapps 3.9.0 (3.11.0-20 2023/12/25)

Operating system (ex. Windows 10 Pro 64 bits) : Observed on Windows 10 and Windows 11

Winver screenshot : image

Screenshots

This highly cropped (sorry!) screenshot shows nextcloud in Windows explorer in Windows 11. image

Logs

nextcloud-portable.log

NewKidOnTheBlock commented 3 weeks ago

@9a3eedi Have you tried turning it off and on again? haveyoutried

@crazy-max Nextcloud Portable likes to create the following folders:

\AppData\Local\Nextcloud
\AppData\Roaming\Nextcloud

They are re-created every time Nextcloud Portable is run. IMHO these should be confined to the Nextcloud Portable directory.

9a3eedi commented 3 weeks ago

@NewKidOnTheBlock I was not aware of this option! Thank you, simply deselecting it got rid of the icon in explorer.

However, I still think this should be fixed for the portable app, it shouldn't be enabled by default at the very least.