{"id":324,"date":"2017-06-17T08:02:28","date_gmt":"2017-06-17T07:02:28","guid":{"rendered":"https:\/\/tollana.d-tor.org\/notes-to-self\/?p=324"},"modified":"2017-06-17T08:02:28","modified_gmt":"2017-06-17T07:02:28","slug":"dbus-crap","status":"publish","type":"post","link":"https:\/\/tollana.d-tor.org\/notes-to-self\/?p=324","title":{"rendered":"DBUS Crap"},"content":{"rendered":"<p>After today&#8217;s (2017\/06\/16) usual pacman -Syu &amp; systemctl reboot the shit hit the fan. SDDM started up fine, but when I tried to login, nothing happened for a while until I got a nice X11-Widget right from the 80&#8217;s telling me that something &#8220;could not sync environment to dbus&#8221;. Yeah, sure! WTF!?<\/p>\n<p>First stop: Google. I&#8217;m not the only one. For some reason I can&#8217;t just &#8220;startkde&#8221; any more, but have to use &#8220;dbus-launch startkde&#8221; in \/usr\/share\/xsessions\/plasma.desktop (that&#8217;s where SDDM gets the sessions from). Easy enough. KDE loads and seems to work, but it doesn&#8217;t really. Any connection attempt to the session bus fails: can&#8217;t connect to the ssh-agent even though it&#8217;s started, can&#8217;t do systemctl &#8211;user &lt;something&gt;, pulseaudio doesn&#8217;t work and so on&#8230; Craptastic!<\/p>\n<p>Maybe it&#8217;s some cruft in ~\/.config or ~\/.session. Move both away, and just to make sure, ~\/.cache, too. One swift reboot later it&#8217;s work&#8230; Fuck, same shit! While skimming through wiki-pages and forum-posts on my mobile, I read the suggestion to try a new user. OK, can&#8217;t hurt, can it?<\/p>\n<p>Yes, it kinda can! Of course that works! Well, at least one way out. So, create a new user and port all settings there. Oh what fun! Well, I learned a lot of lessons, like:<\/p>\n<ul>\n<li>If you have an USB2 stick plugged in, entering the UEFI-Crap-Thingy what&#8217;s now called BIOS doesn&#8217;t work (or takes an eternity, maybe I didn&#8217;t wait long enough). At least it still boots if you don&#8217;t hit DEL or F2<\/li>\n<li>The ssh-agent.service for users is hand-crafted (or stolen from somewhere, I don&#8217;t remember). You must have $SSH_AUTH_SOCK set in your .bashrc (the latter is sourced by SDDM, BTW) to make it work.<\/li>\n<li>Sometimes it ain&#8217;t so bad to have Google accounts. After logging in with Chromium, my bookmarks and extensions were back almost immediately.<\/li>\n<li>To start a synergy Server, all you have to do is &#8220;systemctl &#8211;user enable synergys.service&#8221;, if you have a working config in \/etc\/synergys.conf. Starting the client is another beast, though&#8230;<\/li>\n<li>How to copy and modify the beet database (stored in $HOME\/.config\/beets\/musiclib.blb in my case):<\/li>\n<\/ul>\n<pre>$ ~\/.config\/beets $ sqlite3 musiclib.blb\r\nSQLite version 3.19.3 2017-06-08 14:26:16 \r\nEnter \".help\" for usage hints. \r\nsqlite&gt;\u00a0update items set path = replace(path, '&lt;oldhome&gt;', '&lt;newhome&gt;');<\/pre>\n<ul>\n<li>You don&#8217;t have to fire up QtCreator if rdpk starts and exits immediately. If you tell xfreerdp to use pulseaudio and there&#8217;s no daemon running, it will do just that&#8230;<\/li>\n<li>For some reason, letting minidlnad reindex everything is much, much faster than letting it read the database on startup<\/li>\n<li>LibreOffice macros are stored in $HOME\/.config\/libreoffice\/4\/user\/basic\/Standard\/Module1.xba for now. You can just copy that file to the new $HOME and have fun with it after restarting it<\/li>\n<\/ul>\n<p>Maybe it was a good thing &#8482; to get rid of all the baggage, I don&#8217;t know&#8230; Sure enough, it happened on othalla, too \ud83d\ude41<\/p>\n","protected":false},"excerpt":{"rendered":"<p>After today&#8217;s (2017\/06\/16) usual pacman -Syu &amp; systemctl reboot the shit hit the fan. SDDM started up fine, but when I tried to login, nothing happened for a while until I got a nice X11-Widget right from the 80&#8217;s telling me that something &#8220;could not sync environment to dbus&#8221;. Yeah, sure! WTF!? First stop: Google. &hellip; <a href=\"https:\/\/tollana.d-tor.org\/notes-to-self\/?p=324\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">DBUS Crap<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[19,13,77],"tags":[107,15],"class_list":["post-324","post","type-post","status-publish","format-standard","hentry","category-arch-linux","category-desktop","category-linux","tag-dbus","tag-kde"],"_links":{"self":[{"href":"https:\/\/tollana.d-tor.org\/notes-to-self\/index.php?rest_route=\/wp\/v2\/posts\/324","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/tollana.d-tor.org\/notes-to-self\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/tollana.d-tor.org\/notes-to-self\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/tollana.d-tor.org\/notes-to-self\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/tollana.d-tor.org\/notes-to-self\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=324"}],"version-history":[{"count":1,"href":"https:\/\/tollana.d-tor.org\/notes-to-self\/index.php?rest_route=\/wp\/v2\/posts\/324\/revisions"}],"predecessor-version":[{"id":325,"href":"https:\/\/tollana.d-tor.org\/notes-to-self\/index.php?rest_route=\/wp\/v2\/posts\/324\/revisions\/325"}],"wp:attachment":[{"href":"https:\/\/tollana.d-tor.org\/notes-to-self\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=324"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/tollana.d-tor.org\/notes-to-self\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=324"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/tollana.d-tor.org\/notes-to-self\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=324"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}