English 中文(简体)
• 如何将现成变量传给全球海洋研究组织
原标题:How to pass env variables to GNOME

I want to replace some utilities(like telnet) with transparent wrappers(with loggers). At first I used aliases, that worked nicely at the command line but gnome doesn t understand shell aliases so that when people would launch the utilities as the shell for a gnome-terminal profile it would run the actual utility instead of the wrapper.

然后,我尝试在~/.bashrc添加新的链条,并把它推给PATH(安全是一种令人严重关切的问题,加之其一只特殊链条),但是,由于它从指挥线运作,它们仍然掌握着原样(一只gues子的gues子)。 任何设想如何确定道路?

最佳回答

我发现,这样做有两种方式,似乎像我所希望的那样(为古诺特撰写文字)。

首先将其列入PetHOME}/.gnomerc美元(但我发现有些地方说,你在之后应当用手法进行排外会议,而另一些地方则不做过罚款,我担心会打破原木。)

Putting it in ~/.profile seems to work so I just

echo  PATH=~/.symlink_dir/:${PATH}  > ~/.profile

(指出,如果存在“~”号,就忽视了这一点,因此,你可能希望以人工方式将其从“~/.bash”号引来。

<代码>echo source ~/.profile >>~/.bash_profile。

问题回答

可否更新替代物符合你们的需要?

如果你真想在整个更换设施时使用你的更换设施,你可以在<条码>/usr/bin/(或酌情将原件移至<条码>/usr/bin/originals/(或在何处)。

如果你这样做,你就能够更好地确保你的包裹固然牢固。 视你重新替换的情况,错误可能会防止boot间,因为boot通常不可取。

It might not be what you are asking, but have you tried changing the commands of the launchers from the menu editor.

如果你使用Gnome 3,你将不得不下载alacarte的包裹。





相关问题
Accessing samba shares with gio in python

I am trying to make a simple command line client for accessing shares via the Python bindings of gio (yes, the main requirement is to use gio). I can see that comparing with it s predecessor gnome-...

D. 注重全球无大型企业倒闭的窗口

我看上去了我需要把重点放在如此加速的钥匙(shortcuts)工作的德国技术合作公司/GDK光盘。 是否有任何人知道全球海洋研究公司是否甚至允许一个板块的窗户以主为主,如果是,......

Submenu items in Nautilus right-click menu

I am trying to write an extension for nautilus, which add an item to the menu that appears when you right-click a file (as shown in image) However, I would like to add a submenu to my custom menu ...

Add a changing icon to Ubuntu Panel

What would be the most simple way of adding and changing an icon in the Ubuntu (Gnome) Panel? I m looking for something as simple as shell scripting, but I m not restricted to that. Will write a ...

In Mono/Gnome, how can I look up the icon for a mime type?

Gnome.Icon and Gnome.ThumbnailFactory both want me to pass in a URI of a file whose icon I want -- I only have a MIME type, which I want to look up an icon for. Is there a GNOME C# API function which ...

热门标签