-
-
Save harry-cpp/f8ec780e16201f81ccd5234856546414 to your computer and use it in GitHub Desktop.
Moved to: | |
https://github.com/cra0zy/code-nautilus | |
since people want to add features to it and no notification arrive from comments on gist. |
How are you setting the env variable? I can't seem to repro the issue.
I'm calling it now, @Borvik is setting his env variables in .bashrc
, which does not get executed by the login shell, unlike the .profile
.
Sorry didn't see your comments. Node is install via NVM, so nvm is managing the environment variables for its location.
I don't use Node so you're gonna have to check where its setting its environment variables.
Any environment variables passed to the login shell get passed to Nautilus which in turn get passed to something like VS Code.
Looks like .profile
loads .bashrc
if it is a bash environment. And nvm is modifying the path due to a script called in .bashrc
- so it looks like your assumption was correct.
Can we make this a real repo. I'd like to add translation to German
in fedora the required package is:
sudo dnf install nautilus-python
This is some good stuff. I think you can simplify your download and install command by changing cp
to mv
. But otherwise works perfectly.
For ubuntu 18.04:
sudo apt install python-nautilus
- Run download command in gist
- ???
- Profit
For Russian users. To use Cyrillic in the names of menu items, specify # -*- coding: utf-8 -*-
at the first line of the file (Before the author’s comment)
Now, you can replace Open In
to Открыть в
How to use it?
I made a shell script based on this gist.
https://github.com/7aman/code-here
Easy Installation for Ubuntu, Fedora and Debian:
wget -qO- https://raw.githubusercontent.com/7aman/code-here/master/install.sh | bash
It is not maintained anymore.
Man am I late to the comment party. I get no notifications from the gist so I haven't even noticed people leaving comments.
I finally made a repo for this: https://github.com/cra0zy/code-nautilus in case someone want to add to it, I'll try to add Arch Linux Aur package for the extension as well.
@Sharpiro @Guthers Thanks for the python-nautilus
package links ^^
@jhit @via-profit If you want to add translations, feel free to make a PR. On an unrelated note my mother tongue also uses Cyrillic characters.
@7aman I feel like I should apologize for making a repo, as I see you already made one. Also always try to skip checking for distro name, instead check for a package name as it gives your script much better compatibility with much less work.
@cra0zy Thanks for tip and your repo. I archived my repo.
Great script. Very Handy.
I have found an issue though. When opening VSCode using this, the environment variables aren't replicated properly.
When opening a directory via a terminal with
code .
I can runCtrl + Shift + B
and it runs my gulp file fine, for another project it launches node fine as well. It also works when choosing the VSCode launcher (I'm on Ubuntu 18.04). However, when opening the directory from the nautilus extension, neither works ok - it can't findgulp
ornode
via the path.I have attempted the following (not at the same time), but neither worked - and I very rarely work with Python (I did run
nautilus -q
between changes)