![]() sudo tools/update-extension-user. Since setup.py does not provide a natively uninstall method the scripts have an uninstall option. Gsettings set -open-any-terminal flatpak system Gsettings set -open-any-terminal new-tab true Gsettings set -open-any-terminal keybindings 't' Via command-line gsettings set -open-any-terminal terminal alacritty Or for (user-wide) installation: glib-compile-schemas ~/.local/share/glib-2.0/schemas/ To configure the plugin’s behaviour make sure to run (system-wide): glib-compile-schemas /usr/share/glib-2.0/schemas Sudo tools/update-extension-system.sh install # for a system-wide install Settings ![]() If it does not work, try using the following command (from this repository): sudo tools/update-extension-user.sh install # for a user install ![]() Then kill Nautilus to allow it to load the new extension: nautilus -q System-wide install: pip install nautilus-open-any-terminal ![]() User install: pip install -user nautilus-open-any-terminal Nixpkgs (NixOS) nix-env -iA nixos.nautilus-open-any-terminalĭependency to install before: nautilus-python ( python-nautilus/ python3-nautilus(newer) package on Debian / Ubuntu) Installing From the AUR (Arch Linux) yay -S nautilus-open-any-terminal Right now the plugin is limited to these terminal emulators. Update Ubuntu 21.10: Fortunatelly, the scripts-accels file works again in Files 40 (Ubuntu 21.Is an extension for nautilus, which adds an context-entry for opening other terminal emulators than gnome-terminal. Update Ubuntu 20.10: Unfortunately, this does not anymore work in Nautilus 3.38 (Ubuntu 20.10). Or, use the keyboard shortcut that you've just configured :) Test it! Open Nautilus, right click, and choose Scripts > Terminal. Commented lines must have a space after the semicolon Make it executable, then close any Nautilus instance: $ chmod +x TerminalĬreate (or edit) the ~/.config/nautilus/scripts-accels file adding these lines: F12 Terminal In short:Ĭreate a script called Terminal (yes, without a extension) inside the folder ~/.local/share/nautilus/scripts with the following content: #!/bin/sh Long explanation/useful resources can be found here and also here. Since version 3.15.4 Nautilus doesn't load the accel file anymore (Source).įortunatelly there's a better aproach in order to get what you want. Notice that is again removed.įinally, log out for changes to take effect. To (gtk_accel_path "/ExtensionsMenuGroup/TerminalNautilus:OpenFolderLocal" "F12") ( NautilusOpenTerminal::open_terminal is still present in the file, but doesn't seem to have any effect.) So follow the instructions above, except change the line (gtk_accel_path "/ExtensionsMenuGroup/TerminalNautilus:OpenFolderLocal" "") sudo apt install nautilus-admin Quit Nautilus after installing the plugin: nautilus -q You should see the Open as Administrator option in the right-click menu now. Add Open in Terminal option to Nautilus context menu Doing this isnt difficult at all. No need to open the terminal and perform sudo actions. gnome-terminal is only the shell (menubar, prefs dialog) the. Here, the relevant command in ~/.config/nautilus/accels is TerminalNautilus:OpenFolderLocal. With nautilus-admin extension, you can open files as root within Nautilus. description: This is the GNOME terminal emulator application. Save the file and restart Nautilus by clicking on the Nautilus icon in your launcher/dash. If the line doesn't exist just copy and paste the one found in this answer at the end of the file. For a list of all possible key codes please consult this answer. If the line exists, add your keyboard shortcut in the second double-quoted segment and uncomment the line by removing : (gtk_accel_path "/DirViewActions/OpenInTerminal" "F12") Try to see if you can find the following line: (gtk_accel_path "/DirViewActions/OpenInTerminal" "") Open ~/.config/nautilus/accels in a text editor of your choice, e.g. If you can't find the can-change-accels key in your dconf configuration you can try the following solution: If you don't see Open in terminal in the File menu and you've just installed nautilus-open-terminal, you might need to first run nautilus -q. Now you can mouseover the action in the file menu, and change the accel by typing your key while the action is highlighted, finally restart your nautilus. Then open nautilus using this command (to disable Unity global menu Temporarily): nautilus -q first sudo apt-get install dconf-tools nautilus-open-terminal, then run dconf-editor and set the org/gnome/desktop/interface/can-change-accels boolean on. Edit: not anymore applicable for Ubuntu 16.10 and newerįinally figured it out.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |