Bug 220051 - x11/gnome3: Make xdg-user-dirs a dependency
Summary: x11/gnome3: Make xdg-user-dirs a dependency
Status: New
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Only Me
Assignee: freebsd-gnome mailing list
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-06-16 17:18 UTC by Yonas Yanfa
Modified: 2017-07-17 17:09 UTC (History)
2 users (show)

See Also:
bugzilla: maintainer-feedback? (gnome)


Attachments
patch (882 bytes, patch)
2017-06-21 16:29 UTC, Carlos J. Puga Medina
cpm: maintainer-approval? (gnome)
Details | Diff
patch-xdg-user-dirs-update-gnome (449 bytes, patch)
2017-07-17 17:06 UTC, Carlos J. Puga Medina
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Yonas Yanfa 2017-06-16 17:18:36 UTC
This port should install the xdg-user-dirs port and run `xdg-user-dirs-update`, which will create the ~/.config/user-dirs.dirs file:

# This file is written by xdg-user-dirs-update
# If you want to change or add directories, just edit the line you're
# interested in. All local changes will be retained on the next run
# Format is XDG_xxx_DIR="$HOME/yyy", where yyy is a shell-escaped
# homedir-relative path, or XDG_xxx_DIR="/yyy", where /yyy is an
# absolute path. No other format is supported.
#
XDG_DESKTOP_DIR="$HOME/Desktop"
XDG_DOWNLOAD_DIR="$HOME/Downloads"
XDG_TEMPLATES_DIR="$HOME/Templates"
XDG_PUBLICSHARE_DIR="$HOME/Public"
XDG_DOCUMENTS_DIR="$HOME/Documents"
XDG_MUSIC_DIR="$HOME/Music"
XDG_PICTURES_DIR="$HOME/Pictures"
XDG_VIDEOS_DIR="$HOME/Videos"


The benefits is that Gnome will use specific folder icons for each of the above directories in Nautilus file manager, and screenshots will be auto-saved to the ~/Pictures directory instead of your home directory.
Comment 1 Carlos J. Puga Medina freebsd_committer 2017-06-21 16:29:10 UTC
Created attachment 183677 [details]
patch

- Add devel/xdg-user-dirs to RUN_DEPENDS
- Pet portlint, COMMENT messages should not be quoted.
- Bump PORTREVISION
Comment 2 Carlos J. Puga Medina freebsd_committer 2017-07-17 17:06:47 UTC
Created attachment 184444 [details]
patch-xdg-user-dirs-update-gnome

The following patch run xdg-user-dirs-update to create various XDG directories, and write ~/.config/user-dirs.dirs, etc. That file is read by glib to get XDG_PICTURES_DIR, XDG_DESKTOP_DIR, etc.
Comment 3 Carlos J. Puga Medina freebsd_committer 2017-07-17 17:09:31 UTC
(In reply to Carlos J. Puga Medina from comment #2)

I think this patch should be added to x11/gnome-sessions.