xdgMakePath doesn't make absolute paths

Bug #375783 reported by Adam Petaccia
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
libxdg-basedir (Ubuntu)
Fix Released
Undecided
Mark Nevill
Nominated for Jaunty by Mark Nevill

Bug Description

If I call xdgGetCacheHome, and pass that plus my app name to xdgMakePath, it will fail. I doubt this is the expected behavior, and I'm pretty sure the directory doesn't exist. This is on Jaunty Jackalope.

Revision history for this message
Adam Petaccia (mighmos) wrote :

Sorry its in C++, I tried to get it as close to the program I'm writing as possible.

Compiled with `g++ test.cc -lxdg-basedir`

description: updated
Mark Nevill (nevillm)
Changed in libxdg-basedir (Ubuntu):
assignee: nobody → Mark Nevill (mark-nevill+lp)
status: New → Confirmed
Mark Nevill (nevillm)
Changed in libxdg-basedir (Ubuntu):
status: Confirmed → Fix Committed
Mark Nevill (nevillm)
Changed in libxdg-basedir (Ubuntu):
status: Fix Committed → Fix Released
Revision history for this message
Adam Petaccia (mighmos) wrote :

Can this be backported to Jaunty (fix or latest version)? I'm writing some software which uses this and while I doubt it will be popular I would like to have a working MakePath.

Revision history for this message
Mark Nevill (nevillm) wrote :

TEST CASE: compile attached program against library & run.

Expected results:
  Output:
    Created /home/mark/.cache/fooapp successfully!
  With the mentioned directories created.
  Where /home/mark is the user's home directory.

Results with 0.2.0-1:
  Output:
    Error creating /home/mark/.cache/fooapp (No such file or directory).

Revision history for this message
Mark Nevill (nevillm) wrote :
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.