Chris Vogel @me@chrichri.ween.de

not yet

intent

no sarcasm, no irony

hashtag

#packetfence, #yunohost, #flohmarkt, #librem5, #ShotOnLibrem5, #microblogpub, #Lite3DP, #deskhop, #espressi

matrix

@chrichri:ween.de

sourcehut

https://git.sr.ht/~chrichri/

codeberg

https://codeberg.org/ChriChri

member

@ev@social.phosh.mobi, @noybeu@mastodon.social, https://www.duh.de/

  • Notes
  • Articles
  • Remote follow
Chris Vogel's avatar
Chris Vogel
@me@chrichri.ween.de

#PostmarketOS allows to have multiple users. If automatic login is disabled on start a login screen is shown presented by #greetd typically running as the system user greetd.

greetd is logged in automatically to do its magic and systemd starts all the configured user services for that user.

#udiskie is integrated as such a service and mounts all removable media to /run/media/greetd - on my #Shift6mq the sdcard.

After logging in the greetd user session is logout out and the new session for the authenticated user is started. udiskie for the greetd session is stopped leaving the sdcard mounted to the path for greetd.

udiskie starts for the authenticated user, but does not mount the removable media, because it is already mounted for the former logged in greetd.

No music in #gapless 🤷

An easy way around this is to change the service file for udiskie to the new version from the example directory of udiskies repository by copying it to /etc/systemd/user/.

Once systemd picked up the changes udiskie will not be started for system users anymore and systemd will run udiskie-umount after stopping the service on user logout.

Now one UserA can logout and UserB can use the same sdcard if file permissions allow.

udiskie/example/udiskie.service at master · coldfix/udiskie GitHub
  • permalink
  • 16 days ago
  • 4 likes
  • 3 shares
  • 3 replies
Guido Günther's avatar
Guido Günther
@agx@ruhr.social

in reply to this object

@me You don't need to copy the whole file. Adding an override snippet is enough. See `systemctl edit`

#systemd #LinuxMobile #Phosh

  • permalink
  • 10 days ago
Chris Vogel's avatar
Chris Vogel
@me@chrichri.ween.de

in reply to this object

#udiskie is part of #alpine​s community repository - thanks to @craftyguy@freeradical.zone. Clayton mentored me to put the changes accepted by udiskie into a MR to add them to the alpine package used in #PostmarketOS.

Soon the fix will land in edge and I'll need to remember to remove /etc/systemd/user/udiskie.service to keep my system clean.

Clayton (@craftyguy@freeradical.zone) Free Radical
  • permalink
  • interact from your instance
  • 10 days ago
  • 5 likes
  • 1 share
Likes
@DenJohn@mas.to @whiteja@mastodon.social @Logical_Error@fosstodon.org @bsmall2@fedibird.com @craftyguy@freeradical.zone
Shares
@craftyguy@freeradical.zone
Clayton's avatar
Clayton
@craftyguy@freeradical.zone

in reply to this object

@me wdyt about adding that patch to udiskie in Alpine's aports repo?

  • permalink
  • 16 days ago
Powered by microblog.pub 2.0.0+ynh2 and the ActivityPub protocol. Admin.