如何在nnn文件管理器中运行application/x-executable?

如何在nnn文件管理器中运行application/x-executable?

我正在尝试打开nnn.就我而言,可执行文件是 Telegram。当我尝试使用nnnFirefox 打开它时,它会打开。我在网上搜索并发现我应该设置一个默认应用程序来使用xdg-mime.我试图xdg-mime发现我的可执行文件的类型:

[amirreza@localhost Telegram]$ xdg-mime query filetype Telegram 
application/x-executable

但我不知道应该用什么程序打开它。难道就没有办法打开吗./Telegram

更多信息:

[amirreza@localhost Telegram]$ file Telegram 
Telegram: ELF 64-bit LSB executable, x86-64, version 1 (GNU/Linux), dynamically linked, interpreter /lib64/ld-linux-x86-64.so.2, BuildID[sha1]=06a4635e9e178a911a3d0d012c248d320596ea7b, for GNU/Linux 2.6.32, stripped
[amirreza@localhost Telegram]$ ldd Telegram 
    linux-vdso.so.1 (0x00007ffe9b9c1000)
    libgio-2.0.so.0 => /lib64/libgio-2.0.so.0 (0x00007f9c9779c000)
    libgobject-2.0.so.0 => /lib64/libgobject-2.0.so.0 (0x00007f9c97743000)
    libfontconfig.so.1 => /lib64/libfontconfig.so.1 (0x00007f9c976f9000)
    libfreetype.so.6 => /lib64/libfreetype.so.6 (0x00007f9c97637000)
    libEGL.so.1 => /lib64/libEGL.so.1 (0x00007f9c97621000)
    libGL.so.1 => /lib64/libGL.so.1 (0x00007f9c97599000)
    libxcb.so.1 => /lib64/libxcb.so.1 (0x00007f9c9756b000)
    libX11.so.6 => /lib64/libX11.so.6 (0x00007f9c97424000)
    libX11-xcb.so.1 => /lib64/libX11-xcb.so.1 (0x00007f9c9741f000)
    libglib-2.0.so.0 => /lib64/libglib-2.0.so.0 (0x00007f9c972f5000)
    libdl.so.2 => /lib64/libdl.so.2 (0x00007f9c972ee000)
    libm.so.6 => /lib64/libm.so.6 (0x00007f9c971a8000)
    libpthread.so.0 => /lib64/libpthread.so.0 (0x00007f9c97184000)
    libc.so.6 => /lib64/libc.so.6 (0x00007f9c96fba000)
    /lib64/ld-linux-x86-64.so.2 (0x00007f9c979a2000)
    libgmodule-2.0.so.0 => /lib64/libgmodule-2.0.so.0 (0x00007f9c96fb4000)
    libz.so.1 => /lib64/libz.so.1 (0x00007f9c96f9a000)
    libmount.so.1 => /lib64/libmount.so.1 (0x00007f9c96f3a000)
    libselinux.so.1 => /lib64/libselinux.so.1 (0x00007f9c96f0d000)
    libresolv.so.2 => /lib64/libresolv.so.2 (0x00007f9c96ef1000)
    libffi.so.6 => /lib64/libffi.so.6 (0x00007f9c96ee6000)
    libexpat.so.1 => /lib64/libexpat.so.1 (0x00007f9c96eb7000)
    libbz2.so.1 => /lib64/libbz2.so.1 (0x00007f9c96ea4000)
    libpng16.so.16 => /lib64/libpng16.so.16 (0x00007f9c96e6d000)
    libGLdispatch.so.0 => /lib64/libGLdispatch.so.0 (0x00007f9c96db4000)
    libGLX.so.0 => /lib64/libGLX.so.0 (0x00007f9c96d7e000)
    libXext.so.6 => /lib64/libXext.so.6 (0x00007f9c96d69000)
    libXau.so.6 => /lib64/libXau.so.6 (0x00007f9c96d63000)
    libpcre.so.1 => /lib64/libpcre.so.1 (0x00007f9c96cea000)
    libblkid.so.1 => /lib64/libblkid.so.1 (0x00007f9c96c97000)
    librt.so.1 => /lib64/librt.so.1 (0x00007f9c96c8a000)
    libpcre2-8.so.0 => /lib64/libpcre2-8.so.0 (0x00007f9c96bf1000)

PS:我见过问题,这对我没有帮助。

答案1

在 Unix 中,大多数应用程序应该位于您的 目录中$PATH,因此您不需要经常从当前目录运行可执行文件。

似乎nnn没有“运行此可执行文件”功能。

您可能应该将可执行文件链接或移动到$PATH环境变量中列出的目录,然后您应该能够使用任何目录中的nnn“启动应用程序”键(默认)运行它,只需指定不带任何=名称的名称即可Telegram小路。

相关内容