Bug 290296

Summary: Add warning message if device is write-protected
Product: [Applications] dolphin Reporter: Kai Uwe Broulik <kde>
Component: generalAssignee: Dolphin Bug Assignee <dolphin-bugs-null>
Status: RESOLVED FIXED    
Severity: wishlist CC: elvis.angelaccio
Priority: NOR    
Version First Reported In: 1.99   
Target Milestone: ---   
Platform: Ubuntu   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description Kai Uwe Broulik 2012-01-01 03:17:25 UTC
Version:           1.99 (using Devel) 
OS:                Linux

There should be a warning that a device (i.e. USB stick) is write-protected when browsing it in Dolphin.
Scenario was as follows:
My mom tried to copy some file onto her USB stick and suddenly she came and said it was not working, there was always “You do not have permission” etc. I tried un- and remounting it from Device Notifier and mounting from console gave me a “The device is mounted write-protected”, until I figured out this USB stick has some sort of Write-protector slider I just knew from old floppies. A simple info bar in Dolphin would have at least given me the hint that it is not her permissions or Kubuntu rights or whatever was messed up.
It should be possible to differenciate between “No permissions” and “Device is already mounted read only”, and if it is a CD :P

Reproducible: Always

Steps to Reproduce:
1. Insert a write-protected USB stick

Actual Results:  
Copying files naturally fails but because of “Missing permissions”

Expected Results:  
Dolphin has a yellow statusbar saying “This device is write-protected. Make sure you have unlocked it” (or so)
Comment 1 Kai Uwe Broulik 2012-05-22 15:18:08 UTC
Couldn’t this be added as some sort of closable KMessageWidget in Warning state? :)
(Are there multiple message widgets possible in Dolphin?)
Comment 2 Peter Penz 2012-05-23 13:00:23 UTC
I'd suggest that instead of bothering the user each time with a "Device is already mounted read only"-message to instead just improve the error-message like e.g. "You don't have permissions to write to the USB-device because it is write-protected. Make sure you have unlocked it.". Would that be OK from your point of view?

>Couldn’t this be added as some sort of closable KMessageWidget
>in Warning state? :)

That would be possible technically.
Comment 3 Kai Uwe Broulik 2012-05-23 13:37:03 UTC
That’s even better :) 
Or a combination of both: You drag in a file, instead of a modal dialog appearing, then that read-only messagewidget appears. You know, I am a huge fan of unobstrusive notifications.
Comment 4 Peter Penz 2012-05-23 13:48:25 UTC
> That’s even better :) 

Fine :-)

> Or a combination of both: You drag in a file, instead of a modal dialog appearing...

A modal dialog is appearing in the usecase above? In theory Dolphin should show all error-messages in a KMessageBox (I currently cannot test your usecase because of not having a lockable USB-stick ;-)).
Comment 5 Kai Uwe Broulik 2012-05-23 15:28:48 UTC
Oh, I didn’t test the issue with master as I do not have a lockable USB stick as well. I just remembered when my mother called that she cannot copy something and there was a modal dialog. So, I guess you already fixed it :)
Comment 6 Jeroen van Meeuwen (Kolab Systems) 2012-08-24 16:20:04 UTC
Resetting assignee to default as per bug #305719
Comment 7 Elvis Angelaccio 2016-12-26 16:42:55 UTC
Looking at the comments I guess we can close this.