Re:Re: Could connect GVFS session bus from a root privilege program?



Hi David,
 
Thanks for your reply.
 
My another problem is that I need to access the $HOME/.gvfs/*, but the .gvfs directory is 500 mode.   I found that it could not be changed by chmod or chown ...   Could I do some hack to access the contents in the .gvfs?
 
As you said, now the root user could not use GVFS?   Are there any bad results if root could access?
 
And actually I could not understand the GVFS's method, could you tell me some detail or a link introduce it.  
Thanks again.
--
 Best Regards,



在2010-05-13 19:20:35,"David Zeuthen" <zeuthen gmail com> 写道: >2010/5/13 danny <tornadory 163 com>: >> Hi All, >> >> I have a problem that I need get the information from GVFS(I thought it is), >> but the program run as root users. >> >> I use g_volume_monitor_get() to get a monitor for the removable devices and >> do something while removable devices connect or disconnect, it works >> normally while run as  a plain user but failed when run as the root user. > >GVfs relies on the session message bus to coordinate the multiple >processes that the whole GVfs framework relies on. It is a well-known >problem that it won't work if you are root. And I don't think that's >going to change anytime soon, sorry. > >     David



网易为中小企业免费提供企业邮箱(自主域名)


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]