Re: GWorkspace: icons shown on the Desktop even without any plugged device

Riccardo Mottola <[email protected]>
Newsgroups gmane.comp.lib.gnustep.general
Message-ID <[email protected]>
Hi Patrick,


Patrick Cardona wrote:
>
> I did not see any change in /etc/mtab unless I did myself a mounting 
> action. I think 'udisks2' is there to inteact with GTK or KDE desktops 
> with DBus explicit queries:
> Althougt I use DBusKit for the notifications with SimpleAgenda, I do 
> not know any other GNUstep application using it.
> See: 
> https://documentation.ubuntu.com/core/explanation/system-snaps/udisks2/
>

Unfortunately I am a bit at the end of my latin while trying to debug 
this remotely for you.

We must try to understand if the problem is in the mount action or 
interpreting the mount event. You tell me that a separate mount works fine.
However, the mount action isn't magic..  GWorkspace does through a 
couple of hooks to make things aysnchronous, but eventually does:

[[NSWorkspace sharedWorkspace] mountNewRemovableMedia];

which is a call on gui and thus detects changes separately, like you 
would do manually or with an automounter, which makes sense.

If you check NSWorkspace, it literally spawns a NSTask with mount on the 
media specified for GSRemovableMediaPaths

then to ask what is there the next method is used mountedRemovableMedia

I guess you should add some logs there or break in with gdb. Ready to do 
it? need a debug patch done for you?

Riccardo


Riccardo
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.