LinuxGem
此处为老的 LinuxGem,新版 LinuxGem 请移步 www.linuxgem.org

禁用/开启 GNOME “最近的文档”功能

galeki posted @ 2009年10月31日 21:03 in 桌面应用软件 with tags Nautilus gnome , 6798 阅读

用的是 GNOME 桌面,如果不希望他人看到你最近都看了哪些“机密”文档,也许你会想方设法地关闭 GNOME 好意为用户默认开启的“最近的文档 (Recent Document)”功能,本文会告诉你几个常用的小伎俩。

要禁用 GNOME 菜单中的“最近的文档”功能,可以这样做:

$ echo "" > $HOME/.recently-used.xbel
$ chmod 400 $HOME/.recently-used.xbel

要是将来反悔,想再开启这一功能,可:

$ chmod 600 $HOME/.recently-used.xbel

利用 Linux 文件系统的小缺陷也可以实现关闭“最近的文档”功能,譬如:

$ rm $HOME/.recently-used.xbel
$ mkdir $HOME/.recently-used.xbel

还可以利用 Nautilus 的脚本 (Script) 功能让上述关闭和启用“最近的文档”更“易用”一些,只需将下述 Bash 脚本:

#!/bin/sh

# Enable/Disable Recent Documents Menu in Gnome

if [ ! -f "$HOME/.recently-used" ]; then
        echo "" > "$HOME/.recently-used.xbel"
        chmod 600 "$HOME/.recently-used.xbel"
fi

if [ -w "$HOME/.recently-used.xbel" ]; then
        echo "" > "$HOME/.recently-used.xbel"
        chmod 400 "$HOME/.recently-used.xbel"
        if [ "$?" = "0" ]; then
                zenity --title="Disabled" --info --text="The 'Recent Documents' menu item has been disabled."
        else
                zenity --title="Error" --error --text="There was an error disabling the 'Recent Documents' menu."
        fi
elif [ -f "$HOME/.recently-used.xbel" ]; then
        chmod 600 "$HOME/.recently-used.xbel"
        if [ "$?" = "0" ]; then
                zenity --title="Enabled" --info --text="The 'Recent Documents' menu item has been enabled."
        else
                zenity --title="Error" --error --text="There was an error enabling the 'Recent Documents' menu."
        fi
else
        zenity --title="Error" --error --text="It appears the file '$HOME/.recently-used.xbel' does not exist and could not be created."
fi

保存到 $HOME/.gnome2/nautilus-scripts 目录,假设保存为 recent-doc 文件,并将其属性设置为:

$ chmod 755 recent-doc

 这样就可以在 Nautilus 中用鼠标右键菜单,在脚本菜单项中打开上述脚本,进行“最近的文档”功能的开启与关闭的设定。

carlos 说:
2010年11月22日 06:13

这方法,比较暴力啊!

smm booster panel 说:
2021年5月16日 16:10

Hi, I log on to your new stuff like every week. Your humoristic style is witty, keep it up

Today Profit 说:
2021年5月20日 16:42

The software says exclusively relevant. Each of reduced attributes happen to be formulated with various capture certification. I like the application many.

instagram panel 说:
2021年5月24日 20:06

Cool you write, the information is very good and interesting, I'll give you a link to my site.

먹튀검증사이트 说:
2021年5月31日 18:20

I really appreciate the kind of topics you post here. Thanks for sharing us a great information that is actually helpful. Good day!

IGBT module 说:
2021年6月02日 21:44

I really thank you for the valuable info on this great subject and look forward to more great posts

micro porco 说:
2021年6月04日 22:12

Cool stuff you have and you keep overhaul every one of us

CPI 说:
2021年6月08日 00:01

You completed a number of nice points there. I did a search on the issue and found nearly all people will have the same opinion with your blog.

Top Record seller of 说:
2021年6月13日 21:42

This is a splendid website! I"m extremely content with the remarks!.

Dairy Farm Residence 说:
2021年6月23日 19:04

Dairy Farm Residences @ Hillview is a newly launched condominium in District 23. This new condominium has a total of 460 residential units, with 2 blocks of 15-storey tower, 2-blocks of 5-storey tower, and consist of 2-bedroom to 4-bedroom, is suitable for young couples, small families or even extended families as it has efficient layout.

Irwell hill residenc 说:
2021年6月23日 22:40

Irwell Hill Residences is strategically located less than 5-minutes’ walk from Great World City MRT Station (Thomson-East Coast Line). Fitness enthusiasts will also be able to work out regularly at the famous Fort Canning Hill Park which is popular among the expats and locals to perform HIITs, strength training, running or even just a stroll with their pets. There are also wide selections of shopping malls within the area at Orchard Road or Kim Seng Road.

Cheap Facebook page 说:
2021年7月13日 00:32

Hello! I just wish to give an enormous thumbs up for the nice info you've got right here on this post. I will probably be coming back to your weblog for more soon!

social media panel 说:
2021年7月25日 17:23

Thank you for the post. I will definitely comeback.

Buy twitch subscribe 说:
2021年8月04日 19:59

Hello! I just wish to give an enormous thumbs up for the nice info you've got right here on this post. I will probably be coming back to your weblog for more soon!

daf-cf-85-460-6x2-mi 说:
2021年8月08日 19:10

This is a fantastic website and I can not recommend you guys enough.

danske casino 说:
2021年8月22日 03:53

I love visiting sites in my free time. I have visited many sites but did not find any site more efficient than yours. Thanks for the nudge!

cyber threats 说:
2021年10月24日 01:05

In reality That i look over it all not long ago however , I saw it certain thinkings about that and after this I want to read the paper it all for a second time given that it's well written.

best sites to buy in 说:
2021年11月01日 21:08

Definitely As i browse the application last week though My partner and i various brain to sort it out and from now on Need be to enjoy a book the application repeatedly considering it is especially well crafted.

Harry 说:
2021年11月04日 19:23

Truly! Whatever an eye opener this unique put up happens to be in my circumstances. Substantially relished, saved, I just can’t look for further! qiu qiu online

Harry 说:
2021年11月09日 19:47

I've got not long ago started off some sort of blog site, the internet people produce here possesses served everyone enormously. Appreciate it intended for all of your current time period & do the job. silk pajamas

seo 说:
2021年11月14日 22:06

This is such a great resource that you are providing and you give it away for free. I love seeing blog that understand the value of providing a quality resource for free. สมัครlive22

Website 说:
2021年11月20日 21:48

HGH MD provides Sermorelin and Testosterone Therapy in which doctors inject growth hormone using Sermorelin with Testosterone. Sermorelin works as an anti-aging supplement and Repairs damaged cells and weakened systems.

Umzugsfirma Zürich 说:
2021年11月23日 23:08

Die 1a umzüge GmbH ist Ihr zuverlässiger Partner für Umzug, Reinigung, Entsorgung, Lagerung und alle Dienstleistungen rund um den Umzug. Kontakt 1a Umzüge GmbH, Umzugsfirma Zürich.

Harry 说:
2021年12月31日 22:14

In reality That i look over it all not long ago however , I saw it certain thinkings about that and after this I want to read the paper it all for a second time given that it's well written. 카지노사이트

Harry 说:
2022年2月02日 21:45

The article looks magnificent, but it would be beneficial if you can share more about the suchlike subjects in the future. Keep posting. domino qq

Harry 说:
2022年2月16日 00:43

I've got not long ago started off some sort of blog site, the internet people produce here possesses served everyone enormously. Appreciate it intended for all of your current time period & do the job. mdomino99

SEO 说:
2022年3月02日 02:05

Are any of you interested in printing services? Check https://www.digitekprinting.com/ website out to see how affordable their prices are. The materials that they use are also environmentally friendly. Go visit their site now.

shafi 说:
2023年7月09日 23:52

That's why it's advisable that you simply correct exploration previous to crafting. It's possible to develop superior release in this way. 數學補習老師

shafi 说:
2023年7月15日 16:59 you are soooo talented on paper. God is truly utilizing you within tremendous ways. You are carrying out a excellent work! It was an excellent weblog! 68 game bài
shafi 说:
2023年7月16日 18:33

Attractive part of content. I just stumbled upon your web site and in accession capital to say that I get in fact enjoyed account your blog posts. Any way I will be subscribing for your feeds or even I achievement you get entry to constantly fast. Heets. IQOS

shafi 说:
2023年7月17日 00:21

Are not they in a hurry? Do not they want to find the outpost? Need not Kirk get back to the ship? Yet they sit there, having a talk and barbecue around a log fire. Heets. IQOS

shafi 说:
2023年7月18日 16:51

Snap shots entirely on your web blog although building desire immediately a pinch of amount of money submits. Fully satisfying way of permanent long run, Soon we will be book-marking in the period develop into a person's work surface accomplish takes place inches right up inches. Heets

shafi 说:
2023年7月18日 22:52

Helpful information. Fortunate me I discovered your site by accident, and I’m stunned why this twist of fate didn’t came about earlier! I bookmarked it. Heets

shafi 说:
2023年7月19日 14:27

When i actually procured against your website check having said that contributing knowledge just a little touching submits. Awesome way of possibilities, We're also book-marking by carrying out a phase obtain editions finish spgs manner right up. Heets

shafi 说:
2023年7月19日 20:49

Simply this site is likely to it goes without saying quite possibly possibly be renowned affecting quite a few information sites person's, to its aware content pieces or it could be viewpoints. Couch dispose Berlin

shafi 说:
2023年7月20日 23:59

The heart of your writing whilst appearing agreeable in the beginning, did not sit perfectly with me after some time. Someplace throughout the paragraphs you actually were able to make me a believer but just for a while. I still have got a problem with your leaps in assumptions and you would do well to fill in all those gaps. When you actually can accomplish that, I would surely end up being fascinated. Slot Gacor Hari In

shafi 说:
2023年7月21日 22:17

I enjoy every single posts, I actually appreciated, I would personally adore extra information and facts because of this, mainly because its fairly pleasing., Have fun here ideal for allowing. katmoviehd

shafi 说:
2023年7月22日 18:19

Whenever i became on your site while having particular attention easily a bit of tiny bit submits. Pleasing technique for long run, I'll be book-marking at the moment have models accomplish springs right up. https://casinostars.se

shafi 说:
2023年7月23日 01:44

An intriguing discussion will probably be worth comment. There’s no doubt that that you simply write regarding this topic, it will not certainly be a taboo subject but usually consumers are not enough to communicate on such topics. An additional. Cheers order polkadot chocolate

shafi 说:
2023年7月23日 22:34

I’d need to talk to you here. Which isn’t something I do! I like reading a post that could get people to believe. Also, many thanks for permitting me to comment! فیلم سکسی

shafi 说:
2023年7月24日 16:42

I simply could not go away your website prior to suggesting that I really loved the standard information an individual provide for your visitors? Is going to be again ceaselessly to investigate cross-check new posts How to Unclog a Toilet With Poop in it

shafi 说:
2023年7月26日 17:19 The when I read a blog, Hopefully which it doesnt disappoint me approximately that one. What i’m saying is, It was my choice to read, but I just thought youd have something intriguing to convey. All I hear is actually a few whining about something that you could fix should you werent too busy looking for attention. https://www.cruxfinder.com/
shafi 说:
2023年7月29日 12:52

Hiya, I’m really glad I’ve found this information. Nowadays bloggers publish only about gossips and net and this is actually frustrating. A good web site with interesting content, that’s what I need. Thanks for keeping this web-site, I will be visiting it. Do you do newsletters? Can’t find it. 먹튀폴리스 사나이 검증

shafi 说:
2023年7月29日 18:26

I require the majority of the records, Have a preference for seriously favored, We really wish for addiitional information and facts over it, while it is definitely rather great., L8rs used only for documenting. 먹튀폴리스 이브벳 검증

shafi 说:
2023年7月30日 17:04

I like prefer to reports, Generate liked, I will have a preference for extra information and facts making use of this, great deal of thought is particularly eye-catching., Bless you actually devised for crafting. slot88 online

forex market 说:
2023年8月11日 21:15

I do agree with all of the ideas you’ve presented in your post. They’re very convincing and will certainly work. Still, the posts are very short for starters. Could you please extend them a bit from next time? Thanks for the post. اقامة مستثمر في دبي

forex market 说:
2023年8月17日 21:27

Promptly the internet site could possibly irrefutably receive credited extremely connected with placing people, to its conscientious articles and reviews or maybe vital opinions. رخصة تجارية في دبي

forex market 说:
2023年8月19日 14:39

I favor an entire couple of merchandise, Dreamed about seriously experienced, I require specifics. during this, taking into account that must be to some extent really good., With thanks considerably with regards to expressing. judi online

forex market 说:
2023年8月20日 16:56

I still can’t quite think I could often be one of those reading through the important tips found on this blog. My family and I are really thankful for your generosity and for giving me the chance to pursue our chosen profession path. Thank you for the important information I got from your site. UFABETแทงบอลบนมือถือ

forex market 说:
2023年8月21日 19:36

As I website possessor I believe the content material here is rattling wonderful , appreciate it for your hard work. You should keep it up forever! Good Luck. UFABETแทงบอลทายผลผู้ชนะ

forex market 说:
2023年8月23日 17:34

Hiya, I’m really glad I’ve found this information. Today bloggers publish only about gossips and internet and this is really irritating. A good website with interesting content, that’s what I need. Thanks for keeping this web site, I’ll be visiting it. Do you do newsletters? Can’t find it. 메이저사이트

forex market 说:
2023年8月24日 23:09

I really like people unique writing. Will probably be quality to uncover just one reveal with text on the center and in some cases purity in this particular unique vital area of interest will likely be conveniently encountered. เว็บไซต์แทงบอลอันดับ1

forex market 说:
2023年8月25日 20:58

Easily this fabulous website may perhaps irrefutably be well-known within many blog persons, a result of the conscientious articles or reviews or perhaps opinions. เว็บพนันออนไลน์UFA

forex market 说:
2023年8月26日 19:53

Easily this page will probably irrefutably possibly be well known involving many blogs persons, to its diligent articles or blog posts or maybe opinions. UFABETทางเข้าหลักเว็บแทงบอล

forex market 说:
2023年8月27日 00:00

I'd like a person's location. It really is better than notice everybody explain in words inside the life blood as well as legibility about this topic required region are often easily discovered. UFABETเว็บพนันถูกกฎหมายต่างประเทศ

forex market 说:
2023年8月27日 15:47

Easily that website can certainly irrefutably gain popularity concerning nearly all blogs in addition to site-building men and women, to help it is diligent threads as well as assessments. UFABETเว็บพนันบอลออนไลน์ฟรีเครดิต

forex market 说:
2023年8月27日 19:37

I'd prefer someone's area. It happens to be superior to monitor all people verbalize in the heart and soul combined with readability within this theme important spot tend to be quickly diagnosed. ลิงค์ทางเข้าหลักUFABET

forex market 说:
2023年8月28日 16:18

Pics available on your blog whether or not doing interest easily a modest amount of total submits. Fully gratifying technique for extended foreseeable future, We will be book-marking during the time come to be ones exterior finish off appears inch in place inch. สมัครเล่นพนันบอลUFABET

forex market 说:
2023年8月28日 20:24

Promptly the internet site could possibly irrefutably receive credited extremely connected with placing people, to its diligent articles and reviews or maybe vital opinions. แทงบอลออนไลน์ufabetเว็บตรง

forex market 说:
2023年8月28日 23:53

Hi I am so delighted I found your blog page, I really found you by accident, while I was browsing on Yahoo for something else, Anyways I am here now and would just like to say cheers for a incredible post and a all round interesting blog (I also love the theme/design), I don’t have time to look over it all at the minute but I have saved it and also added in your RSS feeds, so when I have time I will be back to read more, Please do keep up the excellent job. สูตรแทงบอลเว็บUFABET

forex market 说:
2023年8月29日 17:04

As i obtained onto your website however location target just a small amount very little submits. Enjoyable strategy for foreseeable future, I will be bookmarking everytime be given persons consume appears constantly in place. UFABETเว็บแทงบอลออนไลน์ถูกกฏหมาย

forex market 说:
2023年9月04日 21:46

Pretty nice post. I just stumbled upon your blog and wanted to say that I’ve really enjoyed browsing your blog posts. After all I?ll be subscribing to your feed and I hope you write again very soon! .Chlebek Dukana salingsilang

sdsds 说:
2023年9月08日 19:05

I and also my pals have been examining the top guides from the website and immediately I had a horrible feeling I never expressed respect towards the weblog owner for those strategies. All of the ladies were totally thrilled to study through them and have in effect really been taking advantage of these things. Quite a few thanks for being incredibly thoughtful and for settling on some remarkable subjects millions of individuals are seriously wanting to understand about. My honest apologies for not saying thanks to earlier. pokemon shirts

sdsds 说:
2023年9月10日 19:50

His or her received on your web site even though eliminating identification simply just a number of tid touch submits. Pleasing technique for approaching, We are book-marking before commencing pick-up solutions finish spgs all the way up way up. taktik88

sdsds 说:
2023年9月23日 00:12

When i got on your web-site having said that ranking aim only a bit more minimal submits. Pleasing technique for near future, I'll be book-marking when collect people today finish off takes place into position. https://us.community.sony.com/s/profile/005Dp000003xQX0?language=en_US

sdsds 说:
2023年9月23日 20:48

I discovered your blog internet site online and appearance several of your early posts. Always keep inside the really good operate. I simply additional your Rss to my MSN News Reader. Looking for forward to reading more from you finding out at a later date!… shillong teer common number

jmaes 说:
2023年9月27日 17:13

I have realized that over the course of developing a relationship with real estate entrepreneurs, you’ll be able to get them to understand that, in most real estate transaction, a percentage is paid. Eventually, FSBO sellers will not “save” the payment. Rather, they fight to earn the commission by doing a good agent’s occupation. In doing so, they commit their money and time to perform, as best they could, the jobs of an representative. Those tasks include revealing the home by way of marketing, introducing the home to buyers, constructing a sense of buyer desperation in order to make prompt an offer, organizing home inspections, taking on qualification checks with the lender, supervising maintenance tasks, and facilitating the closing. เว็บข่าวกีฬา

jmaes 说:
2023年9月27日 22:31

Hey! I simply wish to give a huge thumbs up for the great info you’ve gotten here on this post. I can be coming back to your weblog for extra soon. ข่าวฟุตบอลต่างประเทศล่าสุด

jmaes 说:
2023年9月28日 19:33

Beginning with the unnecessary flashback to the tale of Kirk’s father’s heroism, we’re treated to one tired battle scene after another. ลิ้งดูบอลสด hd

Nafees 说:
2023年9月29日 03:04

I don't know if I see those people's hearts in this post, but there are some interesting things that have happened over time. There are some good points,<a href='https://www.autopediame.com/ksa/ar/cars/details/4265/%D8%AC%D9%8A%D9%84%D9%8A-2023/gs'>جيلي امجراند 2023</a>

jmaes 说:
2023年10月02日 20:39

I¡¦ve read a few good stuff here. Definitely worth bookmarking for revisiting. I wonder how a lot effort you put to create this type of great informative website. Kalaastar Yo Yo Honey Singh song

jmaes 说:
2023年10月03日 22:56

An intriguing discussion may be valued at comment. There’s no doubt that that you ought to write much more about this topic, it will not be described as a taboo subject but usually folks are too little to chat on such topics. To a higher. Cheers รวม ทางเข้า UFABET


登录 *


loading captcha image...
(输入验证码)
or Ctrl+Enter