How to set gtk file chooser button default to user's home folder

Posted by Connel on Stack Overflow See other posts from Stack Overflow or by Connel
Published on 2010-04-13T20:09:21Z Indexed on 2010/04/13 20:13 UTC
Read the original article Hit count: 301

Filed under:
|
|
|
|

I've got a gtk file chooser button on my application I am writing in c# using Mono Develop. I would like to set the file chooser's default location to the users' home directory regardless of what user is running it.

I've tried the ~/ short cut - fchFolder1.SetCurrentFolder("~/"); - but this did not work. I was just wondering if there was a value that the gtk file chooser used to refer to the users home directory? Thanks

© Stack Overflow or respective owner

Related posts about mono

Related posts about gtk