Re: Open Terminal in Current Directory

Philip Kaludercic <[email protected]>
Newsgroups gmane.emacs.help
Message-ID <[email protected]>
Jean Louis <[email protected]> writes:

> On 2026-04-12 22:44, Philip Kaludercic wrote:
>> I am going through my init.el and found this function
>> --8<---------------cut here---------------start------------->8---
>> (defun site/open-xterm ()
>>   "Start an Xterm process."
>>   (interactive)
>>   (let ((term (cond ((executable-find "gnome-terminal")
>>                      "gnome-terminal")
>>                     ((executable-find "xterm")
>>                      "xterm")
>>                     ((error "Couldn't find a terminal emulator")))))
>>     (start-process "*xterm*" nil term)))
>> --8<---------------cut here---------------end--------------->8---
>> Does anyone have a more portable solution, where I don't have to
>> list
>> all possible kinds of terminal emulators?
>
> (defun site/open-terminal ()
>   "Launch a terminal emulator using an exhaustively overkill detection
>   method.

This is exactly what I was trying to avoid...  Or at the very least
reduce the number of terminal emulators to a list of portable names.  I
thought that debian had something like "generic-terminal" or something
along those lines.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.