{"id":1180,"date":"2011-10-30T07:22:32","date_gmt":"2011-10-30T05:22:32","guid":{"rendered":"http:\/\/raftaman.net\/?p=1180"},"modified":"2021-05-15T11:46:39","modified_gmt":"2021-05-15T09:46:39","slug":"hack-howto-disable-recently-used-items-list","status":"publish","type":"post","link":"https:\/\/possiblelossofprecision.net\/?p=1180","title":{"rendered":"Hack: How to disable recently used items list"},"content":{"rendered":"<p>Quite a few applications use <code>~\/.local\/share\/recently-used.xbel<\/code> to keep track of a user&#8217;s most recent files. Unfortunately, not every application offers customization options to disable this list.<\/p>\n<p>One possible solution, granted, a quite hacky one, is to clear <code>recently-used.xbel<\/code> and revoke a user&#8217;s permission to edit it again.<\/p>\n<p>First, remove and re-create the file to clear it<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\r\n$ rm -f ~\/.local\/share\/recently-used.xbel \r\n$ touch ~\/.local\/share\/recently-used.xbel \r\n<\/pre>\n<p>You can then edit the permission so that the user can&#8217;t edit the file any more.<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\r\n$ chmod -w ~\/.local\/share\/recently-used.xbel \r\n<\/pre>\n<p>For KDE, there is quite a similar mechanism. While there is no single file that stores the recently used items, a <code>.desktop<\/code> file is created in <code>~\/.kde\/share\/apps\/RecentDocuments\/<\/code> for every item.<\/p>\n<p>If if you revoke a user&#8217;s writing permission to that folder, KDE won&#8217;t add any item to the &#8216;recently used&#8217; list.<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\r\n$ chmod -w ~\/.kde\/share\/apps\/RecentDocuments\/\r\n<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>Quite a few applications use ~\/.local\/share\/recently-used.xbel to keep track of a user&#8217;s most recent files. Unfortunately, not every application offers customization options to disable this list. One possible solution, granted, a quite hacky one, is to clear recently-used.xbel and revoke a user&#8217;s permission to edit it again. First, remove and re-create the file to clear it $ rm -f ~\/.local\/share\/recently-used.xbel&#8230; <a href=\"https:\/\/possiblelossofprecision.net\/?p=1180\">Read more &raquo;<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[10,45],"class_list":["post-1180","post","type-post","status-publish","format-standard","hentry","category-uncategorized","tag-gnome","tag-kde"],"_links":{"self":[{"href":"https:\/\/possiblelossofprecision.net\/index.php?rest_route=\/wp\/v2\/posts\/1180","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/possiblelossofprecision.net\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/possiblelossofprecision.net\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/possiblelossofprecision.net\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/possiblelossofprecision.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1180"}],"version-history":[{"count":7,"href":"https:\/\/possiblelossofprecision.net\/index.php?rest_route=\/wp\/v2\/posts\/1180\/revisions"}],"predecessor-version":[{"id":2670,"href":"https:\/\/possiblelossofprecision.net\/index.php?rest_route=\/wp\/v2\/posts\/1180\/revisions\/2670"}],"wp:attachment":[{"href":"https:\/\/possiblelossofprecision.net\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1180"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/possiblelossofprecision.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1180"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/possiblelossofprecision.net\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1180"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}