Ville Skyttä wrote: > On Saturday 22 September 2007, Marcin Zajączkowski wrote: >> Ville Skyttä wrote: > >> Does emacs graphical interface (doesn't need a console)? > > Yes. It also starts faster than XEmacs and integrates better with the desktop > (at least look and feel wise) so I suggest trying it before XEmacs in the > script. Ok. I don't know them. I prefer Vim :) > Also, I don't know if XFCE comes with a text editor or a few, they could also > be added to the mix. I asked my friend and he told me that mousepad (already on the list) is a good choice for a try with Xfce. But, Xfce users, other propositions for Xfce are welcome. >> But if you know more programs (packagers) that have similar problem a >> script could be enhanced to be more "powerful" :) > > I do see some general purpose use cases for such a script. Thanks :) >> Btw, is there a simple way to determine already running desktop >> environment? > > One way is in /usr/bin/xdg-open, see detectDE() in it. A nice hack :). But it probably works. I will think about some optimizations. >>> - Would be nice to have this kind of a tool in xdg-utils, eg. as >>> "xdg-edit" or "xdg-open --edit". Ask xdg-utils upstream? >> Why not. I wrote it because that option was missing in xdg-utils. >> >> But maybe I'm the only one who needs that functionality? > > I don't think so. Additionally, I think this would be useful for other file > types besides text files for viewing vs editing, eg. image files. xdg-open for open operation uses mime types and assigned application. I'm not sure how application for edit operation should be defined/choose. Marcin -- fedora-devel-list mailing list fedora-devel-list@xxxxxxxxxx https://www.redhat.com/mailman/listinfo/fedora-devel-list