On Wed, Nov 16, 2011 at 1:59 PM, Ben Fritz <[email protected]> wrote:
> > > On Nov 15, 4:36 pm, Alexandre Provencio <[email protected]> > wrote: > > Hello all, > > > > the default behavior on Ubuntu system is to launch text files in new tabs > > on an existing Gedit instance. I have always liked to use Gvim instead > but > > keeping this same scenario, so I make some changes on the gvim.desktop > file > > as suggested here vim.wikia.com/wiki/Launch_files_in_new_tabs_under_Unix > . > > > > This setting has worked ok for me back when my applications for launching > > files were basically nautilus and gnome-do, which still work up to now, > but > > since the release of Unity which I use a lot, I cannot make it work > > smoothly with Gvim. It does work when launching files from Unity's Dash, > > but when I try to launch Gvim itself from Dash, it never opens. Also if > > there's a Gvim pinned to Unity as a Launcher, it is taken away from there > > by the time all tabs get closed. > > > > Possibly the dash is expecting the application to not fork. Maybe > adding a -f argument will help things? There is probably a reason the > old arguments (as given in the tip) are as they are. > -f did not make it. > > This may be a good thing to bring up with Ubuntu support if you don't > get a better answer here. Without knowing what the Unity desktop > expects from the applications it launches, it is difficult to say what > you need to do with Vim. > I have already posted a question under ubuntuforums since i met Unity (about 6 months ago), but got no replies, maybe I can try askubuntu. > > If there are multiple configurations used, one for launching files and > one for launching the app directly, probably the --remote stuff is not > needed in the latter, if that matters at all. > All applications trying to invoke gvim will look at the exec line of gvim.desktop file, and i think there's not a way of placing one exec line for launching the app directly and another for launching files, and by the way i may be wrong :) > -- > You received this message from the "vim_use" maillist. > Do not top-post! Type your reply below the text you are replying to. > For more information, visit http://www.vim.org/maillist.php > -- You received this message from the "vim_use" maillist. Do not top-post! Type your reply below the text you are replying to. For more information, visit http://www.vim.org/maillist.php
