[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Mounting/Unmounting Re: Migrating GNUstep home folder to another compute
From: |
Riccardo Mottola |
Subject: |
Mounting/Unmounting Re: Migrating GNUstep home folder to another computer |
Date: |
Thu, 26 Jul 2018 09:57:23 +0200 |
User-agent: |
Mozilla/5.0 (Windows NT 10.0; WOW64; rv:52.0) Gecko/20100101 Firefox/52.0 SeaMonkey/2.49.3 |
Hi Patrick,
Patrick CARDONA wrote:
It was the same behaviour.
As I can understand, GWorkspace checks /etc/mtab only when it loads the
desktop. So, when I use the workaround (hide and show again the desktop) this
works to show the disk icon.
What is strange, is that when I unmount ($ udisksctl unmount -p [device_path])
the disk icon is hidden as expected : so the behaviour is dynamic with
unmounting, not at mounting.
As a first thing, do you have latest gnustep-gui and GWorkspace releases?
I did some clean-up there so that code is centralized in NSWorkspace
(the gnustep class).
I had a look at this and tried to reproduce it on freebsd.
I find it very strange and interesting that unmounting is dynamic and
mounting not.
Do you have mtab and does it get updated? That may explain something,
although I would expect it not to be even used
I don't understand how you can get an unmount notification.
On my system the behaviour, with the mount point set in
SystemPreferences and correct options in /etc/fstab is:
- I can mount a volume in GWorkspace (Check for Disks) and it shows up
on the desktop with the disk icon
- I can unomunt a volume in GWorkspace (drag to Trash) and it unmounts
and also disappears from the desktop
- If I mount or unmount from the command line, I get no updates on the
desktop
- Once mounted from the command line, even calling Check for Disks again
doesn't show the volume
unmounting should trigger
workspaceDidUnmountVolumeAtPath to be called in
https://github.com/gnustep/apps-gworkspace/blob/master/GWorkspace/Desktop/GWDesktopView.m
While mounting:
- (void)newVolumeMountedAtPath:(NSString*)vpath
When the desktop is shown it goes down to:
https://github.com/gnustep/apps-gworkspace/blob/master/GWorkspace/Desktop/GWDesktopView.m
- (void)showMountedVolumes
which as you see goes thorugh NSWorkspace.
[[NSWorkspacesharedWorkspace] mountedRemovableMedia];
It would be nice that "Check for disks" would update and show disks
mounted manually, but it does not. That would be good thing, I want to
check why it doesn't.
Riccardo
- Migrating GNUstep home folder to another computer, Patrick CARDONA, 2018/07/23
- Re: Migrating GNUstep home folder to another computer, Yavor Doganov, 2018/07/23
- Re: Migrating GNUstep home folder to another computer, Yavor Doganov, 2018/07/23
- Re: Migrating GNUstep home folder to another computer, Patrick CARDONA, 2018/07/24
- Re: Migrating GNUstep home folder to another computer, Yavor Doganov, 2018/07/24
- Re: Migrating GNUstep home folder to another computer, Patrick CARDONA, 2018/07/24
- Re: Migrating GNUstep home folder to another computer, Yavor Doganov, 2018/07/24
- Re: Migrating GNUstep home folder to another computer, Patrick CARDONA, 2018/07/24
- Mounting/Unmounting Re: Migrating GNUstep home folder to another computer,
Riccardo Mottola <=
- Re: Migrating GNUstep home folder to another computer, Riccardo Mottola, 2018/07/27
- Re: Migrating GNUstep home folder to another computer, Riccardo Mottola, 2018/07/25