Steam for Linux > Limited Beta > Topic Details
***** Dec 10, 2012 @ 11:57pm
Issue Report: if $XDG_DESKTOP_DIR is not set steam assumes $HOME/Desktop to be present
As the title says: if $XDG_DESKTOP_DIR is not set, then the initial /usr/bin/steam script assumes $HOME/Desktop to be present.

It will then try to copy /usr/share/applications/steam.desktop to $HOME/Desktop. Should $HOME/Desktop not be present then instead of the desired effect, a .desktop file will be created with the name $HOME/Desktop which is obviously wrong.

The following chmod line will fail as well as it tries to chmod $DESKTOP_DIR/$STEAMPACKAGE.desktop which does not exist at this point.
Showing 1-2 of 2 comments
< >
ManInTheBox Dec 11, 2012 @ 1:58am 
I can confirm this issue, and it's actually due to a failure to depend on xdg-user-dirs. Installing this package and logging in again, will create this standard set of directories including this 'Desktop' directory.
***** Dec 11, 2012 @ 3:00am 
Originally posted by ManInTheBox:
and it's actually due to a failure to depend on xdg-user-dirs. Installing this package and logging in again, will create this standard set of directories including this 'Desktop' directory.

You are correct in saying that this package will create those directories but xdg-user-dirs being installed still doesnt mean that the directory exists as they can be removed easily at any point in time.

This is why even when depending on xdg-user-dirs, that check must still be implemented.

On the other hand, because even if xdg-user-dirs is installed it doesnt guarentee that those directories are present, it does not make much sense to make xdg-user-dirs a hard dependency in the first place. This is also why most Debian/Ubuntu packages make xdg-user-dirs a soft Recommends or Suggests dependency.

Last edited by *****; Dec 11, 2012 @ 3:01am
Showing 1-2 of 2 comments
< >
Per page: 15 30 50
Date Posted: Dec 10, 2012 @ 11:57pm
Posts: 2