I was reviewing the templates work by Jan Darowski and it got me thinking about the FreeDesktop.org XDG spec; it has a provision for a templates directory that we should be using instead of (or as well as) ~/.config/inkscape/ which is hidden from the user.
This only applies to FreeDesktops/XDG complient desktops. But it would be useful.
http://freedesktop.org/wiki/Software/xdg-user-dirs/
Example:
XDG_TEMPLATES_DIR="$HOME/Templates"
Thoughts?
It could be more useful if more projects were following such rules. Personally I don't like when applications spam my homedir with additional directories. Right now, it's quiet easy for the user to check where templates should be placed (more info button in templates widget) so it's not a big problem. If we want to make templates creation process easier, maybe we should consider additional "Save as template.." button, which would work as a normal "Save" but with path set to templates dir?
2013/8/28 Martin Owens <doctormo@...400...>
I was reviewing the templates work by Jan Darowski and it got me thinking about the FreeDesktop.org XDG spec; it has a provision for a templates directory that we should be using instead of (or as well as) ~/.config/inkscape/ which is hidden from the user.
This only applies to FreeDesktops/XDG complient desktops. But it would be useful.
http://freedesktop.org/wiki/Software/xdg-user-dirs/
Example:
XDG_TEMPLATES_DIR="$HOME/Templates"
Thoughts?
Learn the latest--Visual Studio 2012, SharePoint 2013, SQL 2012, more! Discover the easy way to master current and previous Microsoft technologies and advance your career. Get an incredible 1,500+ hours of step-by-step tutorial videos with LearnDevNow. Subscribe today and save! http://pubads.g.doubleclick.net/gampad/clk?id=58040911&iu=/4140/ostg.clk... _______________________________________________ Inkscape-devel mailing list Inkscape-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/inkscape-devel
Thanks for the quick reply Jan,
On Wed, 2013-08-28 at 15:19 +0200, Jan Darowski wrote:
It could be more useful if more projects were following such rules. Personally I don't like when applications spam my homedir with additional directories.
Are you under the impression that the Templates directory would be created if we tried to use it and it didn't exist? Because XDG dirs are set to $HOME if they get deleted or never existed. So checking $HOME != $XDG_TEMPLATE_DIR should mean "There IS a template directory and the user has kept it around or intentionally set it up."
I'd much prefer keeping a user's data out of hidden directories for lots of reasons. From backups to ownership context. So ~/.config/inkscape/templates should only really be for templates installed by inkscape or some process related to inkscape. While a public directory like Templates/ provides us with the space to save user created and look for downloaded or restored templates.
Or you might be in support of the idea and I misunderstood :-)
Martin,
2013/8/28 Martin Owens <doctormo@...400...>:
I'd much prefer keeping a user's data out of hidden directories for lots of reasons. From backups to ownership context. So ~/.config/inkscape/templates should only really be for templates installed by inkscape or some process related to inkscape. While a public directory like Templates/ provides us with the space to save user created and look for downloaded or restored templates.
Strictly speaking, only configuration data should go to ~/.config/inkscape. Assets should go to ~/.local/share/inkscape, though we are not using that at the moment.
Regards, Krzysztof
Ok, I misunderstood your point from the first post. But this way we still need to find some clever way of informing user about possibility of keeping his templates in $XDG_TEMPLATE_DIR. Feature which is not visible is not used.
2013/8/28 Martin Owens <doctormo@...400...>
Thanks for the quick reply Jan,
On Wed, 2013-08-28 at 15:19 +0200, Jan Darowski wrote:
It could be more useful if more projects were following such rules. Personally I don't like when applications spam my homedir with additional directories.
Are you under the impression that the Templates directory would be created if we tried to use it and it didn't exist? Because XDG dirs are set to $HOME if they get deleted or never existed. So checking $HOME != $XDG_TEMPLATE_DIR should mean "There IS a template directory and the user has kept it around or intentionally set it up."
I'd much prefer keeping a user's data out of hidden directories for lots of reasons. From backups to ownership context. So ~/.config/inkscape/templates should only really be for templates installed by inkscape or some process related to inkscape. While a public directory like Templates/ provides us with the space to save user created and look for downloaded or restored templates.
Or you might be in support of the idea and I misunderstood :-)
Martin,
participants (3)
-
Jan Darowski
-
Krzysztof Kosiński
-
Martin Owens