# Description: don't list volumes option on ltsp configs # Ubuntu: https://launchpad.net/bugs/220564 # Index: nautilus-2.29.92.1/libnautilus-private/nautilus-file.c =================================================================== --- nautilus-2.29.92.1.orig/libnautilus-private/nautilus-file.c 2010-03-10 14:59:13.000000000 +0100 +++ nautilus-2.29.92.1/libnautilus-private/nautilus-file.c 2010-03-10 21:55:05.000000000 +0100 @@ -1018,6 +1018,10 @@ { g_return_val_if_fail (NAUTILUS_IS_FILE (file), FALSE); + if (getenv("LTSP_CLIENT")) { + return FALSE; + } + return file->details->can_unmount || (file->details->mount != NULL && g_mount_can_unmount (file->details->mount)); @@ -1028,6 +1032,10 @@ { g_return_val_if_fail (NAUTILUS_IS_FILE (file), FALSE); + if (getenv("LTSP_CLIENT")) { + return FALSE; + } + return file->details->can_eject || (file->details->mount != NULL && g_mount_can_eject (file->details->mount));