[Xfce4-commits] <xfce4-mount-plugin:master> Also match if 'cd' is in the device name for OpenBSD
Landry Breuil
noreply at xfce.org
Thu Apr 12 11:24:03 CEST 2012
Updating branch refs/heads/master
to 6bc2c0daa7f9e7e113a860e602f8d95b03c9a794 (commit)
from ea71dd842b6425b534be613d54da17e82bb1fdca (commit)
commit 6bc2c0daa7f9e7e113a860e602f8d95b03c9a794
Author: Landry Breuil <landry at xfce.org>
Date: Thu Apr 12 11:10:32 2012 +0200
Also match if 'cd' is in the device name for OpenBSD
panel-plugin/devices.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/panel-plugin/devices.c b/panel-plugin/devices.c
index 986a979..5b89689 100644
--- a/panel-plugin/devices.c
+++ b/panel-plugin/devices.c
@@ -693,7 +693,7 @@ disk_classify (char *device, char *mountpoint)
dc = REMOTE;
}
}
- else if ( strstr(device, "cdrom") || strstr(device, "cdrw")
+ else if ( strstr(device, "cdrom") || strstr(device, "cdrw") || strstr(device, "cd")
|| strstr(device, "dvd") || strstr(mountpoint, "cdrom")
|| strstr(mountpoint, "cdrw") || strstr(mountpoint, "dvd")) {
dc = CD_DVD;
More information about the Xfce4-commits
mailing list