mirror of
https://github.com/edeproject/ede.git
synced 2023-08-10 21:13:03 +03:00
Removed incomplete edialog.
Imported new and functional ede-dialog. ede-help uses ede-dialog for error reports; xmessage is not used since some OS-es to not install it by default, e.g. OpenSolaris. Removed obsolete ede-tip.conf. Fixed background issue in ede-tip; background will now always be white so it can nicely blend with the image. Commit fixed ede.desktop.in; previous commit was only renaming without content change. Reduce some debug output in ede-autostart.
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
#!/bin/sh
|
||||
|
||||
help_dir="@ededocdir@/manual"
|
||||
browser_list="firefox mozilla konqueror opera navigator dillo"
|
||||
browser_list="firefox mozilla chromium-browser konqueror opera navigator dillo"
|
||||
|
||||
program="ede-help"
|
||||
url=""
|
||||
@@ -10,9 +10,10 @@ if [ "$1" = "--help" ]; then
|
||||
cat <<EOF
|
||||
Usage: $program [OPTIONS] [TITLE]
|
||||
Display EDE Manual in the web browser
|
||||
|
||||
Options:
|
||||
--help Show this help
|
||||
--titles Show known titles
|
||||
--help this help
|
||||
--titles show known titles
|
||||
|
||||
Example:
|
||||
$program evoke - display evoke help
|
||||
@@ -55,13 +56,12 @@ if [ "x$BROWSER" = "x" ]; then
|
||||
fi
|
||||
|
||||
if [ "x$BROWSER" = "x" ]; then
|
||||
xmessage -title "$program error" -center -buttons "Close" -file - <<EOF
|
||||
ede-dialog --title "$program error" --error "
|
||||
Failed to find any of known browsers!
|
||||
|
||||
If you thing that I made mistake, please try to set
|
||||
BROWSER environment variable with full path pointing
|
||||
to the browser binary
|
||||
EOF
|
||||
If you think how this is mistake, please try to set \
|
||||
BROWSER environment variable with the full path pointing to the browser binary and run $program again"
|
||||
|
||||
exit 1
|
||||
fi
|
||||
|
||||
@@ -69,13 +69,12 @@ fi
|
||||
$BROWSER $url
|
||||
|
||||
if [ $? -ne 0 ]; then
|
||||
xmessage -title "$program error" -center -buttons "Close" -file - <<EOF
|
||||
Unable to run '$BROWSER'!
|
||||
ede-dialog --title "$program error" --error "
|
||||
Unable to run $BROWSER browser!
|
||||
|
||||
Please check if program path is correct or \
|
||||
adjust BROWSER environment variable pointing to the correct binary file"
|
||||
|
||||
Please check if program path is correct or
|
||||
adjust BROWSER environment variable pointing
|
||||
to the correct binary
|
||||
EOF
|
||||
exit 1
|
||||
fi
|
||||
|
||||
|
Reference in New Issue
Block a user