Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 220112 - x11-misc/xdg-user-dirs package missing
Summary: x11-misc/xdg-user-dirs package missing
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] GNOME (show other bugs)
Hardware: All Linux
: High minor (vote)
Assignee: Freedesktop bugs
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-05-03 13:24 UTC by echtler
Modified: 2008-07-27 22:39 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description echtler 2008-05-03 13:24:59 UTC
Hello, 

I've noticed that the xdg-user-dirs package from http://www.freedesktop.org/wiki/Software/xdg-user-dirs is not in Portage. However, this should be a dependency of at least Gnome and most likely also KDE. I've found out about this package after the bluetooth-applet from bluez-gnome failed to enable OBEX file sharing because the ~/.config/user-dirs.dirs file from this package was missing. Glib uses it to set some paths, and they default to NULL when it can't be found. I suspect there are more Glib-based apps that somehow fail on this, as well as probably some Qt stuff.

Reproducible: Always
Comment 1 Daniel Gryniewicz (RETIRED) gentoo-dev 2008-05-03 19:33:41 UTC
Odd... Bluez-gnome obex works fine for me.  As does a2dp and a bt mouse.  I can even send text messages via my phone with bluetooth.
Comment 2 echtler 2008-05-03 21:48:29 UTC
(In reply to comment #1)
> Odd... Bluez-gnome obex works fine for me.  As does a2dp and a bt mouse.  I can
> even send text messages via my phone with bluetooth.
Well, the only thing thats affected by this is OBEX. Do you have a ~/.config/user-dirs.dirs or something similar in /etc?

Comment 3 Arun Raghavan (RETIRED) gentoo-dev 2008-05-04 07:56:53 UTC
(In reply to comment #2)
> (In reply to comment #1)
> > Odd... Bluez-gnome obex works fine for me.  As does a2dp and a bt mouse.  I can
> > even send text messages via my phone with bluetooth.
> Well, the only thing thats affected by this is OBEX. Do you have a
> ~/.config/user-dirs.dirs or something similar in /etc?

Could you explain exactly what you're doing with bluez-gnome? A series of steps for us to try to reproduce the problem would be great.
Comment 4 echtler 2008-05-04 08:17:33 UTC
> > Well, the only thing thats affected by this is OBEX. Do you have a
> > ~/.config/user-dirs.dirs or something similar in /etc?
> Could you explain exactly what you're doing with bluez-gnome? A series of steps
> for us to try to reproduce the problem would be great.
Ok, let's see..

1. Check if your account has ~/.config/user-dirs.dirs
2. If yes, temporarily move it away.
3. Start bluetooth-applet from a terminal
4. Error message appears: Bluetooth OBEX start failed: Invalid path
5. Set the computer to discoverable in the bluetooth-applet menu.
6. Try to send a file from your mobile phone to the computer.
7. Phone shows error about service not supported (or similar).
Comment 5 Arun Raghavan (RETIRED) gentoo-dev 2008-05-04 09:23:00 UTC
(In reply to comment #4)
> Ok, let's see..
> 
> 1. Check if your account has ~/.config/user-dirs.dirs
> 2. If yes, temporarily move it away.

Didn't have it.

> 3. Start bluetooth-applet from a terminal
> 4. Error message appears: Bluetooth OBEX start failed: Invalid path

No error.

> 5. Set the computer to discoverable in the bluetooth-applet menu.
> 6. Try to send a file from your mobile phone to the computer.
> 7. Phone shows error about service not supported (or similar).

For some reason my phone doesn't discover my laptop, even though it's discoverable. I am, however, able to browse my phone through Nautilus as well as copy files, so some OBEX stuff is working fine.
Comment 6 echtler 2008-05-05 08:51:11 UTC
> > 1. Check if your account has ~/.config/user-dirs.dirs
> > 2. If yes, temporarily move it away.
> Didn't have it.
Do you have any environment variables set that start with "XDG_" ?
If yes, could you post them?

> > 3. Start bluetooth-applet from a terminal
> > 4. Error message appears: Bluetooth OBEX start failed: Invalid path
> No error.
Interesting.. I run bluez-gnome-0.26, which version do you have?

> > 5. Set the computer to discoverable in the bluetooth-applet menu.
> > 6. Try to send a file from your mobile phone to the computer.
> > 7. Phone shows error about service not supported (or similar).
> For some reason my phone doesn't discover my laptop, even though it's
> discoverable. I am, however, able to browse my phone through Nautilus as well
> as copy files, so some OBEX stuff is working fine.
Maybe your phone doesn't show devices which don't offer the OBEX reception service. Even if the error occurs, I can still browse my phone via Nautilus, too.

Florian
Comment 7 Gilles Dartiguelongue (RETIRED) gentoo-dev 2008-05-05 10:19:43 UTC
gnome is in the freedesktop alias, removing to avoid double spam.
Comment 8 Gilles Dartiguelongue (RETIRED) gentoo-dev 2008-05-05 10:20:05 UTC
crap, failure
Comment 9 Arun Raghavan (RETIRED) gentoo-dev 2008-05-05 15:54:18 UTC
(In reply to comment #6)
[...]
> Do you have any environment variables set that start with "XDG_" ?
> If yes, could you post them?

XDG_DATA_DIRS=/usr/share:/usr/kde/3.5/share:/usr/local/share is the only one

[...]
> > > 4. Error message appears: Bluetooth OBEX start failed: Invalid path
> > No error.
> Interesting.. I run bluez-gnome-0.26, which version do you have?

The same.

[...]
> Maybe your phone doesn't show devices which don't offer the OBEX reception
> service. Even if the error occurs, I can still browse my phone via Nautilus,
> too.

This used to work at some point of time. My phone has been behaving a little strangely of late, so I'm not sure what to blame. I will try this with another phone in a while and let you know if it works.
Comment 10 Daniel Gryniewicz (RETIRED) gentoo-dev 2008-05-05 20:01:31 UTC
No .config/user-dirs.dirs.

XDG_DATA_DIRS=/usr/local/share/:/usr/share/:/usr/share/gdm/

I get the error.

I cannot connect to my laptop from my phone; but I've never transferred from my phone to anything before.  I can browse my phone from the bt-applet fine, and copy files over.

I can find my laptop on my n810; it says the only supported profile is HFP, and it (obviously) cannot browse the laptop.

I tried playing with xdg-user-dirs, but it didn't make a difference either to that error message or whether or not obex is available.   Are you sure it's related to xdg-user-dirs, and not something else that's missing?

The obex server gives this output when the applet is started:

** Message: obex-data-server 0.3
** Message: Using Session bus
** Message: server socket created
** Message: Server created by: :1.62
** Message: Disposing Server
** Message: Server disposed at once
** Message: server closed
** Message: Removing listened DBUS name :1.62 (object: /org/openobex/server0)
** Message: Removed from listened DBUS names list
Comment 11 echtler 2008-05-06 13:01:49 UTC
> XDG_DATA_DIRS=/usr/local/share/:/usr/share/:/usr/share/gdm/
Same for me.

> I tried playing with xdg-user-dirs, but it didn't make a difference either to
> that error message or whether or not obex is available.   Are you sure it's
> related to xdg-user-dirs, and not something else that's missing?
Quite sure - I dug through the code of bluez-gnome, obex-data-server and glib to find the relevant parts. My user-dirs.dirs contains:

XDG_DOWNLOAD_DIR="$HOME/."
XDG_PUBLICSHARE_DIR="$HOME/public"

Note that there's almost no syntax variation possible, according to what I've read in the glib code. You definitely need:
- double quotes and
- $HOME at the beginning of the path

> The obex server gives this output when the applet is started:
> 
> ** Message: obex-data-server 0.3
> ** Message: Using Session bus
> ** Message: server socket created
> ** Message: Server created by: :1.62
> ** Message: Disposing Server
> ** Message: Server disposed at once
> ** Message: server closed
> ** Message: Removing listened DBUS name :1.62 (object: /org/openobex/server0)
> ** Message: Removed from listened DBUS names list
When I start the server from a console, I also get this output when the connection fails.
Comment 12 Marcin Kurek 2008-06-29 11:00:29 UTC
Same problem here. It works previously if I remember correctly, but now I can observe:

G_USER_DIRECTORY_DOWNLOAD is not set
G_USER_DIRECTORY_PUBLIC_SHARE is not set

No user-dire.dirs in ~/.config I think adding this package to portage would be a good idea as obexd for example use this variables too.
Comment 13 Gilles Dartiguelongue (RETIRED) gentoo-dev 2008-07-27 22:39:18 UTC
I've just commited x11-misc/xdg-user-dirs and x11-misc/xdg-user-dirs-gtk to the tree. xdg-user-dirs should probably be added to glib (because it has API that exposes these dirs) RDEPEND at some point. For now, closing as fixed.