[opensuse-factory] Problem: How to open the default terminal in openSUSE?
Hi guys! I have been facing a problem for a while. I'm trying to pack neovim for openSUSE but it does not have yet a reliable GUI. Thus, I am thinking to add a .desktop that will open the default terminal with nvim being executed inside. Problem: right now, I cannot see any way to open the default terminal in all DEs. For example, if I use this .desktop: [Desktop Entry] X-SuSE-translate=true Encoding=UTF-8 Name=NeoVIM Categories=Application;Utility;TextEditor; GenericName=Text Editor MimeType=text/english;text/plain;text/x-makefile;text/x-c++hdr;text/x-c++src;text/x-chdr;text/x-csrc;text/x-java;text/x-moc;text/x-pascal;text/x-tcl;text/x-tex;application/x-shellscript;text/x-c;text/x-c++; Exec=nvim %F Icon=nvim Type=Application Terminal=true X-KDE-StartupNotify=true X-KDE-AuthorizeAction=shell_access It will open correctly in KDE (konsole), but in MATE it will always be opened in xterm due to a glib2 bug (see https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=773915). I know, I can tell GIO to search for mate-terminal using a very simple patch, but GIO only verifies if a terminal exists in the path, it does not look for the default one. Hence, mate-terminal in this case will always be used regardless the user choice for the default terminal. My second thought was to use xdg-terminal, which is supposed to look for the default terminal. Unfortunately, xdg-terminal can only receive one argument. Thus, the following does not work xdg-terminal nvim <FILE> Right now, I do not know what to do. Debian based distributions has the `x-terminal-emulator` that, AFAIK, is a symlink to the default user terminal. I think we should consider to do something like this for openSUSE. What do you think? Regards, Ronan Arraes -- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-factory+owner@opensuse.org
participants (1)
-
Ronan Arraes Jardim Chagas