Uzbl

Tasklist

FS#51 - $XDG_DATA_HOME assumed to be set

Attached to Project: Uzbl
Opened by Anonymous Submitter - 2009-06-25 08:34:16 PM
Last edited by Anonymous Submitter - 2010-04-22 08:41:58 PM
Task Type Bug Report
Category uzbl-core
Status Closed
Assigned To No-one
Operating System All
Severity Low
Priority Normal
Reported Version Development
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

The example scripts make use of $XDG_DATA_HOME, but they assume it is set. The XDG spec says that if it is not set, scripts should default to "$HOME/.local/share"
This task depends upon

Closed by  Anonymous Submitter
2010-04-22 08:41:58 PM
Reason for closing:  Fixed
Additional comments about closing:  The XDG paths are exported in uzbl-browser and there is logic inside uzbl-core to use the default XDG data dirs if they are not set in your environ.
Comment by Dieter Plaetinck (Dieter_be) - 2009-06-30 07:21:34 PM
Please point to specific scripts where we make this mistake.
Comment by Semen Maryasin (MarSoft) - 2009-07-08 10:51:04 AM
uzbl itself doesn't process it correctly in config file:

$ echo $XDG_DATA_HOME

$ uzbl
Icon "./uzbl.png" not found. ignoring.
error on run_command: Failed to execute child process "$XDG_DATA_HOME/uzbl/scripts/history.sh" (No such file or directory)
error on run_command: Failed to execute child process "$XDG_DATA_HOME/uzbl/scripts/cookies.py" (No such file or directory)
...
error on run_command: Failed to execute child process "$XDG_DATA_HOME/uzbl/scripts/cookies.py" (No such file or directory)
error on run_command: Failed to execute child process "$XDG_DATA_HOME/uzbl/scripts/history.sh" (No such file or directory)
Comment by yuanyelele (yuanyelele) - 2009-07-22 02:48:20 AM
workaround: use "sh"
set history_handler = sh ${XDG_DATA_HOME:-$HOME/.local/share}/uzbl/scripts/history.sh

but in the case of python....
Comment by Dieter Plaetinck (Dieter_be) - 2009-08-27 08:22:34 PM
instead of ugly workarounds, we should probably update parseenv
Comment by Dieter Plaetinck (Dieter_be) - 2009-11-08 11:48:06 AM
well, uzbl-browser will correctly use the default values for the xdg vars. so does the event_manager.py

uzbl-core however, still doesn't have this functionality built in. so i guess we still need to fix that, but it's less critical as most people will use uzbl-browser
Comment by Anonymous Submitter - 2010-03-21 02:22:55 PM
I see an XDG table in uzbl-core.c, is this still an issue?

Loading...