Bug#1019375: Not started under wayland/plasma

2022-09-13 Thread Didier 'OdyX' Raboud
13 septembre 2022 20:33 "Axel Beckert"  a écrit
> Didier 'OdyX' Raboud wrote:
>> https://bugs.debian.org/855868 suggests that a similar script as
>> present in /etc/Xsession.d should be placed in
>> /usr/lib/systemd/user-environment-generators/ for systemd/wayland
>> systems to benefit from unburden-home-dir.
> 
> So this is only needed in the combination of Wayland AND systemd? That
> kinda sounds weird.

My understanding is rather "Wayland does not use Xsession.d, and systemd
provides an alternative to this Xsession.d mechanism that would run on these
systems. I have not found a Wayland-specific way.

>> As a temporary local configuration, I've done this;
>> 
>> # mkdir -p /etc/systemd/user-environment-generators/
>> # cp /etc/X11/Xsession.d/95unburden-home-dir 
>> /etc/systemd/user-environment-generators/
> 
> Thanks for that tip. Is there a reason why you've copied it instead of
> e.g. a symlink?

Quick test only, good point. Of course I forgot to chmod +x. But it
didn't work :-(

Re-reading the doc, it seems that doing this would be an abuse of that
user-environment-generators mechanism.

The "right" systemd mechanism seems to be a Type=oneshot
/lib/systemd/user/*.service with a Slice=session.slice.

>> Will report back if that helps.

It did not :-). I'll try with a user service and report again. If it
works I'll propose a patch.

Best,
OdyX



Bug#1019375: Not started under wayland/plasma

2022-09-13 Thread Axel Beckert
Hi Didier,

first thanks for the bug report.

I only have a single Wayland system and that's clearly not yet ready
for production use and currently offline.

Didier 'OdyX' Raboud wrote:
> https://bugs.debian.org/855868 suggests that a similar script as
> present in /etc/Xsession.d should be placed in
> /usr/lib/systemd/user-environment-generators/ for systemd/wayland
> systems to benefit from unburden-home-dir.

So this is only needed in the combination of Wayland AND systemd? That
kinda sounds weird.

> As a temporary local configuration, I've done this;
> 
> # mkdir -p /etc/systemd/user-environment-generators/
> # cp /etc/X11/Xsession.d/95unburden-home-dir 
> /etc/systemd/user-environment-generators/

Thanks for that tip. Is there a reason why you've copied it instead of
e.g. a symlink?

> Will report back if that helps.

And thanks for that, too, in advance.

Regards, Axel
-- 
 ,''`.  |  Axel Beckert , https://people.debian.org/~abe/
: :' :  |  Debian Developer, ftp.ch.debian.org Admin
`. `'   |  4096R: 2517 B724 C5F6 CA99 5329  6E61 2FF9 CD59 6126 16B5
  `-|  1024D: F067 EA27 26B9 C3FC 1486  202E C09E 1D89 9593 0EDE



Bug#1019375: Not started under wayland/plasma

2022-09-08 Thread Didier 'OdyX' Raboud
Package: unburden-home-dir
Version: 0.4.2
Severity: important

Hello Axel,

with KDE's Plasma under Wayland, unburden-home-dir isn't started at all,
although other XSession.d scripts are.

What am I doing wrong?

Best,
Didier

-- System Information:
Debian Release: bookworm/sid
  APT prefers buildd-unstable
  APT policy: (500, 'buildd-unstable'), (500, 'unstable'), (500, 'testing'), 
(1, 'buildd-experimental'), (1, 'experimental')
Architecture: amd64 (x86_64)

Kernel: Linux 5.19.0-1-amd64 (SMP w/16 CPU threads; PREEMPT)
Kernel taint flags: TAINT_WARN
Locale: LANG=fr_CH.UTF-8, LC_CTYPE=fr_CH.UTF-8 (charmap=UTF-8), 
LANGUAGE=fr_CH:fr
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages unburden-home-dir depends on:
ii  dpkg   1.21.9
ii  libconfig-file-perl1.54-1
ii  libfile-basedir-perl   0.09-1
ii  libfile-rsync-perl 0.49-2
ii  libfile-touch-perl 0.12-1
ii  libfile-which-perl 1.27-1
ii  libipc-run-perl20220807.0-1
ii  libstring-expand-perl  0.04-4
ii  libtry-tiny-perl   0.31-1
ii  perl   5.34.0-5

Versions of packages unburden-home-dir recommends:
ii  lsof4.95.0-1
ii  x11-common  1:7.7+23

Versions of packages unburden-home-dir suggests:
pn  agedu 
pn  autotrash 
pn  bleachbit 
pn  corekeeper
ii  eatmydata 130-2
pn  fslint
pn  ncdu | baobab | filelight | xdiskusage | xdu  
pn  tmpreaper 
pn  unburden-home-dir-doc 

-- Configuration Files:
/etc/default/unburden-home-dir changed:
UNBURDEN_HOME=true

/etc/unburden-home-dir.list changed:
m D .thumbnails thumbnails
m D .ccache ccache
m d .config/google-chrome/*/Thumbnails google-chrome-thumbnails-%1
m f .config/google-chrome/*/Thumbnails-journal 
google-chrome-thumbnails-journal-%1
m d .config/chromium/*/Thumbnails chromium-thumbnails-%1
m f .config/chromium/*/Thumbnails-journal chromium-thumbnails-journal-%1
m d .mozilla/default/*/Cache mozilla-default-cache-%1
m d .mozilla/default/*/startupCache mozilla-default-startup-cache-%1
m d .mozilla/firefox/*/Cache firefox-cache-%1
m d .mozilla/firefox/*/startupCache firefox-startup-cache-%1
m d .mozilla/firefox/*/Cache.Trash firefox-cache-trash-%1
m d .conkeror.mozdev.org/conkeror/*/Cache conkeror-cache-%1
m d .conkeror.mozdev.org/conkeror/*/startupCache conkeror-startup-cache-%1
m d .conkeror.mozdev.org/conkeror/*/Cache.Trash conkeror-cache-trash-%1
m d .kazehakase/mozilla/kazehakase/Cache kazehakase-cache
m d .galeon/mozilla/galeon/Cache galeon-cache
m d .gnome2/epiphany/mozilla/epiphany/Cache epiphany-cache
m d .xxxterm/cache xxxterm-cache
m d .forg/cache forg-cache
m d .opera/cache opera-cache
m d .opera/cache4 opera-cache4
m d .opera/opcache opera-opcache
m d .opera/cacheOp opera-cacheOp
m d .config/qupzilla/profiles/*/networkcache qupzilla-cache-%1
m d .thunderbird/*/Cache thunderbird-cache-%1
m d .mozilla-thunderbird/*/Cache debian-thunderbird-cache-%1
m d .icedove/*/Cache icedove-cache-%1
m d .buzzbird/*/Cache buzzbird-cache
m f .aptitude/cache aptitude-cache
m d .wesnoth*/cache wesnoth%1-cache
m d .gaia/cache gaia-cache
m d .googleearth/Cache google-earth-cache
m d .java/deployment/cache java-deployment-cache
m d .adobe/Acrobat/*/Cache adobe-acrobat-%1-cache
m d .shotwell/thumbs shotwell-thumbs
m D .sxiv sxiv-thumbs
m D .devscripts_cache devscripts_cache
r D .Trash trash
r D .local/Trash local-trash
r D Downloads downloads
r D Téléchargements downloads


-- no debconf information