Use an autostart file instead of using xdg-user-dirs-gtk-update to

force the creation of users "well-known" directories. Since we don't use
things like /etc/X11/xinit/xinitrc.d/foo.sh, using an autostart file is
the closest we can get to how upstream advises it to be used.
This commit is contained in:
ajacoutot 2011-04-10 10:26:19 +00:00
parent 3835bbdfa2
commit 0b5eab9463
3 changed files with 26 additions and 2 deletions

View File

@ -1,10 +1,12 @@
# $OpenBSD: Makefile,v 1.9 2011/04/10 08:21:42 ajacoutot Exp $
# $OpenBSD: Makefile,v 1.10 2011/04/10 10:26:19 ajacoutot Exp $
COMMENT= utilities to manage well know user directories
DISTNAME= xdg-user-dirs-0.13
CATEGORIES= devel
REVISION= 0
HOMEPAGE= http://freedesktop.org/wiki/Software/xdg-user-dirs/
MAINTAINER= Antoine Jacoutot <ajacoutot@openbsd.org>
@ -27,4 +29,14 @@ CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \
FAKE_FLAGS= sysconfdir=${PREFIX}/share/examples/xdg-user-dirs
# Under OpenBSD, we don't have generic directories containing login
# scripts (e.g. /etc/X11/xinit/xinitrc.d/) that login managers would
# check, so use the xdg autostart directory which is standard amongst
# fd.o Desktops. It us up to the Desktop package maintainer to add a
# RUN_DEPENDS on xdg-user-dirs{|-gtk} if he/she wants to enable this.
post-install:
${INSTALL_DATA_DIR} ${PREFIX}/share/examples/xdg-user-dirs/xdg/autostart/
${INSTALL_DATA} ${FILESDIR}/user-dirs-update.desktop \
${PREFIX}/share/examples/xdg-user-dirs/xdg/autostart/user-dirs-update.desktop
.include <bsd.port.mk>

View File

@ -0,0 +1,8 @@
[Desktop Entry]
Encoding=UTF-8
Exec=xdg-user-dirs-update
Name=User folders creation
Comment=Create and configure default desktop user directories
Terminal=false
Type=Application
StartupNotify=false

View File

@ -1,9 +1,13 @@
@comment $OpenBSD: PLIST,v 1.5 2011/04/10 08:21:43 ajacoutot Exp $
@comment $OpenBSD: PLIST,v 1.6 2011/04/10 10:26:19 ajacoutot Exp $
bin/xdg-user-dir
@bin bin/xdg-user-dirs-update
share/examples/xdg-user-dirs/
share/examples/xdg-user-dirs/xdg/
@sample ${SYSCONFDIR}/xdg/
share/examples/xdg-user-dirs/xdg/autostart/
@sample ${SYSCONFDIR}/xdg/autostart/
share/examples/xdg-user-dirs/xdg/autostart/user-dirs-update.desktop
@sample ${SYSCONFDIR}/xdg/autostart/user-dirs-update.desktop
share/examples/xdg-user-dirs/xdg/user-dirs.conf
@sample ${SYSCONFDIR}/xdg/user-dirs.conf
share/examples/xdg-user-dirs/xdg/user-dirs.defaults