<?xml version="1.0" encoding="utf-8"?>
<feed xml:lang="en" xmlns="http://www.w3.org/2005/Atom"><title>Recent changes to bugs</title><link href="https://sourceforge.net/p/bashrun/bugs/" rel="alternate"/><link href="https://sourceforge.net/p/bashrun/bugs/feed.atom" rel="self"/><id>https://sourceforge.net/p/bashrun/bugs/</id><updated>2010-11-09T08:26:23Z</updated><subtitle>Recent changes to bugs</subtitle><entry><title>BASHRUN_XDOCLASSNAME bugs</title><link href="https://sourceforge.net/p/bashrun/bugs/15/" rel="alternate"/><published>2010-11-09T08:26:23Z</published><updated>2010-11-09T08:26:23Z</updated><author><name>MT</name><uri>https://sourceforge.net/u/mtvoid/</uri></author><id>https://sourceforge.netfe56e2fba78165a931a0e9fb17010883cf528166</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;The variable BASHRUN_XDOCLASSNAME is not exported, so it is not picked up by other commands that use it. This results in a serious problem - since the window name matching is not done specifically against the class name, any window with the word bashrun in its title may get selected, and cause it to get unmapped instead of bashrun! The matching should always be done by xdotool using --classname. In light of the above issue, I don't see the need to set this variable to --name either, since it can lead to unpredictable results.&lt;br /&gt;
I've changed the relevant line to&lt;br /&gt;
export BASHRUN_XDOTOOL BASHRUN_CLEARMODS BASHRUN_XDOCLASSNAME&lt;br /&gt;
to make sure that all functions get the the right value of $BASHRUN_XDOCLASSNAME="--classname"&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>'xdotool search' causes delay in window mapping</title><link href="https://sourceforge.net/p/bashrun/bugs/14/" rel="alternate"/><published>2010-11-09T08:16:52Z</published><updated>2010-11-09T08:16:52Z</updated><author><name>MT</name><uri>https://sourceforge.net/u/mtvoid/</uri></author><id>https://sourceforge.net6ac2903526de7d3bf9264fe341dff9fc738f795b</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hi&lt;br /&gt;
bashrun uses xdotool to map its window if it is hidden. To do this, xdotool first needs to obtain the window id, which it searches for using the 'xdotool search' command. However, this causes a noticeable delay every time it is invoked, since the search for the window id is repeated every time. To make the bashrun prompt show up quicker, an alternative is needed.&lt;br /&gt;
I've currently fixed this by caching the window id in a file every time bashrun starts, and mapped my hotkey to a small script, bashrunner, which reads this and runs xdotool windowmap directly:&lt;br /&gt;
---bashrunner---&lt;br /&gt;
#!/bin/sh&lt;br /&gt;
xdotool windowmap `cat $HOME/.cache/bashrun/bashrun.wid`&lt;br /&gt;
[ $? -ne 0 ] &amp;amp;&amp;amp; bashrun&lt;br /&gt;
------&lt;/p&gt;
&lt;p&gt;I've modified bashrun to write to bashrun.wid by adding this line near the end:&lt;/p&gt;
&lt;p&gt;echo $BASHRUN_WID &amp;gt; $CACHE_DIR/bashrun.wid&lt;/p&gt;
&lt;p&gt;This solves the problem for me. Now bashrun shows up instantly when I press the hotkey. The bashrunner script can also be integrated into the main file, or one may consider a more elegant solution instead.&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>seg fault</title><link href="https://sourceforge.net/p/bashrun/bugs/13/" rel="alternate"/><published>2010-09-07T10:58:10Z</published><updated>2010-09-07T10:58:10Z</updated><author><name>Renato</name><uri>https://sourceforge.net/u/nareto/</uri></author><id>https://sourceforge.neta9c0f09ebfdd6c74c5867ceedfc46f076e0b539b</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;hello, just upgraded to 0.16 and now bashrun won't run, with the following error:&lt;/p&gt;
&lt;p&gt;$ bashrun &lt;br /&gt;
/usr/bin/bashrun: line 600: 14991 Segmentation fault      $XTERM -name 'bashrun' -title 'bashrun' -geometry $GEOMETRY +sb -bg $BGCOLOR -fg $FGCOLOR $XTERM_OPTIONS -e "/bin/bash --rcfile $BASHRC $bashopts"&lt;/p&gt;
&lt;p&gt;any ideas?&lt;br /&gt;
thanks&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Please cd to $HOME</title><link href="https://sourceforge.net/p/bashrun/bugs/12/" rel="alternate"/><published>2010-05-01T22:02:01Z</published><updated>2010-05-01T22:02:01Z</updated><author><name>Reuben Thomas</name><uri>https://sourceforge.net/u/rrt/</uri></author><id>https://sourceforge.net6e2c5d735efadb14ee84fade7b72d6724ee940cd</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;I just noticed on my newly upgraded Ubuntu Lucid system that when I run bashrun from a hotkey on the desktop, it seems to be run with cwd "/" (before it was run with cwd "$HOME"). This means that when I use it to start an xterm, the shell inside the xterm starts with cwd / too, which is a bit unfriendly. It would seem sensible for bashrun to cd to $HOME when it starts up.&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>shopts passed to /bin/sh</title><link href="https://sourceforge.net/p/bashrun/bugs/11/" rel="alternate"/><published>2010-05-01T22:00:25Z</published><updated>2010-05-01T22:00:25Z</updated><author><name>Reuben Thomas</name><uri>https://sourceforge.net/u/rrt/</uri></author><id>https://sourceforge.net9a9065833776f4513abe9443c45c477cbf666c5d</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;If I make a LOGFILE, I get an error for every command I run that shopts cannot be found. It seems that the "shopts extdebug" command is being passed to /bin/sh, which is dash on my system. This is clearly incorrect. Turning on debugging, I see that is_executable? is run on shopts, and hence it decides to pass it to "execute" and run it as a command. I am not sure why exactly this is happening.&lt;/p&gt;
&lt;p&gt;However, it doesn't seem to be very important.&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Broken with Bash 4.102 </title><link href="https://sourceforge.net/p/bashrun/bugs/10/" rel="alternate"/><published>2010-01-28T20:41:51Z</published><updated>2010-01-28T20:41:51Z</updated><author><name>Anonymous</name><uri>https://sourceforge.net/u/userid-None/</uri></author><id>https://sourceforge.netb3111017ec925ed1768ed0f10d9d1adcfe4a0774</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Exits with "line 534: BASHOPTS: readonly variable"&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Bug 2807287 not fixed</title><link href="https://sourceforge.net/p/bashrun/bugs/9/" rel="alternate"/><published>2009-11-20T22:29:35Z</published><updated>2009-11-20T22:29:35Z</updated><author><name>Reuben Thomas</name><uri>https://sourceforge.net/u/rrt/</uri></author><id>https://sourceforge.net1be12e6718b9edd327ce60b9ccb3707cf9143d5f</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;(Sorry, I can't re-open the original bug, nor find the source code so I can check whether it's been fixed since 0.14.)&lt;/p&gt;
&lt;p&gt;install.sh still runs bashrun using sh, so it doesn't work.&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Meta doesn't work in key bindings</title><link href="https://sourceforge.net/p/bashrun/bugs/8/" rel="alternate"/><published>2009-10-04T19:06:28Z</published><updated>2009-10-04T19:06:28Z</updated><author><name>Reuben Thomas</name><uri>https://sourceforge.net/u/rrt/</uri></author><id>https://sourceforge.net51daea1917a5b18ae8ac674eff43bc1fcce5147c</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;With key bindings such as \e\C-m for term-run, I can't press Meta-Ctrl-M, I have to type Escape, Ctrl-M. I'm not sure why, as similar bindings in my regular ~/.inputrc work fine.&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Terminal Hold Infinite Loop</title><link href="https://sourceforge.net/p/bashrun/bugs/7/" rel="alternate"/><published>2009-08-31T23:58:42Z</published><updated>2009-08-31T23:58:42Z</updated><author><name>Anonymous</name><uri>https://sourceforge.net/u/userid-None/</uri></author><id>https://sourceforge.net3698dd73d7c91e7e206532e3ef7b0d6a2b6bb291</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;The while true loop done for the terminal hold feature is very wasteful on resources. I had two terminals held for a while and never realized that it was using 100% of my two processors and single-handedly brought up the temperature by 20C.&lt;/p&gt;
&lt;p&gt;I changed all instances of "while true; do :; done" with "read" instead. This way it holds on to the terminal until I press Enter. I like this way better, but if you prefer it to only be killed manually with a ^C you could at least stick a sleep in there.&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>install and uninstall can be used by non-root users</title><link href="https://sourceforge.net/p/bashrun/bugs/6/" rel="alternate"/><published>2009-06-16T17:39:41Z</published><updated>2009-06-16T17:39:41Z</updated><author><name>Reuben Thomas</name><uri>https://sourceforge.net/u/rrt/</uri></author><id>https://sourceforge.net33663c67c409303e006b26d841b2391dc5a98fae</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;I often install programs under ~/local rather than /usr/local. If I remove the check for running as root, install.sh and uninstall.sh work perfectly well for this case.&lt;/p&gt;
&lt;p&gt;I think the simplest solution is to remove the check: if you run as a non-root user and try to install under the default location of /usr/local, you will get a perfectly comprehensible error message of "permission denied".&lt;/p&gt;&lt;/div&gt;</summary></entry></feed>