Hi,
i have the same problem with raring.
for me there seem to be at least 2 errors in the script:
in open_gnome the wrong variable is used to find the desktop file (browser instead of desktop)
and in desktop_file_to_binary() the grep command finds multiple occurences of 'Exec'. The supposed patch below only takes the first one and removes all following lines.
hence i suppose the following changes, that seem to work for me:
Hi, file_to_ binary( ) the grep command finds multiple occurences of 'Exec'. The supposed patch below only takes the first one and removes all following lines.
i have the same problem with raring.
for me there seem to be at least 2 errors in the script:
in open_gnome the wrong variable is used to find the desktop file (browser instead of desktop)
and in desktop_
hence i suppose the following changes, that seem to work for me:
@@ -319,11 +319,11 @@
file= "$dir/applicati ons/$desktop" \[[^]=] *])?=" "$file" | cut -d= -f 2- | sed -e 's/ .*$//'`" \[[^]=] *])?=" "$file" | cut -s -d= -f 2- | sed -e 's/ .*$//;2,$d'`"
command= "`which "$command"`" `xdg-mime query default "x-scheme- handler/ mailto" ` `desktop_ file_to_ binary "$browser"` `desktop_ file_to_ binary "$desktop"`
run_thunderbi rd "$client" "$1"
unset IFS
[ "$dir" -a -d "$dir/applications" ] || continue
[ -r "$file" ] || continue
# Remove any arguments (%F, %f, %U, %u, etc.).
- command="`grep -E "^Exec(
+ command="`grep -E "^Exec(
readlink -f "$command"
return
done
}
@@ -510,11 +510,11 @@
open_gnome()
{
local client
local desktop
desktop=
- client=
+ client=
echo $client | grep thunderbird > /dev/null 2>&1
if [ $? -eq 0 ] ; then
fi