How to open folder from nautilus in SM2? Simply edit the /usr/share/applications/sublime-text-2.desktop and add MimeType=inode/directory; Very easy, right? You can even drag&drop folder to SM2 icon and voila, folder will be added to your project.
I remember having a "Open with Sublime Text 2" option when I right-click on a folder and that option was opening a new instance of st2 with the selected folder. Your code doesn't seem to accomplish that. Do you have a solution for this? BTW, I'm using Ubuntu 13.10.