<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:blogger='http://schemas.google.com/blogger/2008' xmlns:georss='http://www.georss.org/georss' xmlns:gd="http://schemas.google.com/g/2005" xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-7711151290980488098</id><updated>2024-08-30T04:39:13.986-07:00</updated><category term="howto"/><category term="linux"/><category term="bash script logout gnome"/><category term="chm"/><category term="gnome"/><title type='text'>wojtekjs&#39;s linux tips</title><subtitle type='html'></subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://homeofwojtekjs.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7711151290980488098/posts/default?redirect=false'/><link rel='alternate' type='text/html' href='http://homeofwojtekjs.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>3</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-7711151290980488098.post-6178094108731409342</id><published>2012-02-23T10:05:00.006-08:00</published><updated>2012-02-23T10:26:59.730-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="bash script logout gnome"/><title type='text'>Running a script when logging out of gnome.</title><content type='html'>Take a look at &lt;span style=&quot;font-weight:bold;&quot;&gt;/etc/gdm/&lt;/span&gt;. You will find there a bunch of directories, especially those named &lt;span style=&quot;font-weight:bold;&quot;&gt;PostLogin, PostSession and PreSession&lt;/span&gt;. You don&#39;t have to be a rocket scientist  to figure out what they are for :)&lt;br /&gt;Inside you will find file called &quot;Default&quot;. Adding a path to your script will do (eg. /home/user/script/cleanup.sh). Just remember that it will affect all users and a scipt will run as root.&lt;br /&gt;If you want something a bit more sophisticated you can add this. &lt;br /&gt;&lt;blockquote&gt;logoutscript=&quot;$HOME/script/cleanup.sh&quot;;&lt;br /&gt;if [ -x &quot;$logoutscript&quot; ] ; then&lt;br /&gt;su $USER -c &quot;$logoutscript&quot;&lt;br /&gt;fi&lt;br /&gt;&lt;/blockquote&gt;(I&#39;ve found it on some linux related forum. Cant&#39;t locate it right now)&lt;br /&gt;It will still affect all users, but will not run as root, and only if the script file really exists.</content><link rel='replies' type='application/atom+xml' href='http://homeofwojtekjs.blogspot.com/feeds/6178094108731409342/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/7711151290980488098/6178094108731409342' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7711151290980488098/posts/default/6178094108731409342'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7711151290980488098/posts/default/6178094108731409342'/><link rel='alternate' type='text/html' href='http://homeofwojtekjs.blogspot.com/2012/02/running-script-when-logging-out-of.html' title='Running a script when logging out of gnome.'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7711151290980488098.post-3668120836027303870</id><published>2009-03-15T16:25:00.001-07:00</published><updated>2012-02-23T09:36:28.435-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="gnome"/><category scheme="http://www.blogger.com/atom/ns#" term="howto"/><category scheme="http://www.blogger.com/atom/ns#" term="linux"/><title type='text'>How to disable generating previews of media files in Nautilus (GNOME), Fedora 10.</title><content type='html'>It would be the easiest to have gconf-editor installed.&lt;br /&gt;&lt;br /&gt;By default, when you have this app installed, you can find it here:&lt;br /&gt;&lt;blockquote&gt;Applications &gt; System Tools &gt; Configuration Editor&lt;/blockquote&gt;&lt;br /&gt;Go to:&lt;br /&gt;&lt;blockquote&gt;desktop/gnome/thumbnailers&lt;/blockquote&gt;&lt;br /&gt;There you can find every file type that has preview enabled. To disable all of them at once just check &quot;disable_all&quot; in the &quot;thumbnailers&quot; entry, or you can just find the media type you don&#39;t want to have preview generated (they are listed as a sub-directories of &quot;thumbnailers&quot;) and uncheck &quot;enable&quot; key.</content><link rel='replies' type='application/atom+xml' href='http://homeofwojtekjs.blogspot.com/feeds/3668120836027303870/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/7711151290980488098/3668120836027303870' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7711151290980488098/posts/default/3668120836027303870'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7711151290980488098/posts/default/3668120836027303870'/><link rel='alternate' type='text/html' href='http://homeofwojtekjs.blogspot.com/2009/03/how-to-disable-generating-previews-of.html' title='How to disable generating previews of media files in Nautilus (GNOME), Fedora 10.'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7711151290980488098.post-5511440184899306537</id><published>2008-02-16T13:44:00.001-08:00</published><updated>2012-02-23T09:36:49.931-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="chm"/><category scheme="http://www.blogger.com/atom/ns#" term="howto"/><category scheme="http://www.blogger.com/atom/ns#" term="linux"/><title type='text'>Howto - convert chm to html.</title><content type='html'>To do it, we&#39;ll need a tiny command line program - extract_chmLib, which is distributed with chmlib package almost in all distributions. However, if you&#39;re using Fedora 8 you probably need to download chmlib source code from &lt;a href=&quot;http://www.jedrea.com/chmlib/&quot;&gt;here&lt;/a&gt;. The newest version available for me was 0.39. Extract it and compile:&lt;br /&gt;&lt;blockquote&gt;./configure --enable-examples&lt;br /&gt;make&lt;/blockquote&gt;Installation is not necessary. Extract_chmLib is hidden here:&lt;br /&gt;&lt;blockquote&gt;src/.libs/extract_chmLib&lt;/blockquote&gt;To convert chm file to html, or rather extract html files from chm just type:&lt;blockquote&gt;extract_chmLib file.chm output_directory/&lt;/blockquote&gt;What you end up with should be a website, which you can index using Beagle or Gnome Desktop. It saves a lot of time usually spend on digging through personal library.&lt;br /&gt;Have a nice time compiling.&lt;br /&gt;&lt;br /&gt;I&#39;ve done it using Fedora 8, and needed only standard development packages.</content><link rel='replies' type='application/atom+xml' href='http://homeofwojtekjs.blogspot.com/feeds/5511440184899306537/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/7711151290980488098/5511440184899306537' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7711151290980488098/posts/default/5511440184899306537'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7711151290980488098/posts/default/5511440184899306537'/><link rel='alternate' type='text/html' href='http://homeofwojtekjs.blogspot.com/2008/02/howto-convert-chm-to-html.html' title='Howto - convert chm to html.'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>2</thr:total></entry></feed>