Comments (9)
I don't use snap, but yeah likely it stops you from writing outside some specific dirs. You can use a custom --muhome
(or MUHOME
); see manpage and mu4e-mu-home
for mu4e
(see the manual). Or you can just build mu
yourself, and things should work with the defaults.
Good luck!
from mu.
Hmmm... Perhaps mu is already running? That could lock the database.
from mu.
Nothing in ps ax
and there is no xapian directory. Is there an other way to look for?
And shouldn't there be another error message?
from mu.
Even reboot
and logging in via tty and just running that mu
command does not work. And I cannot see a permission problem. When I try it with sudo
it works and tells me using directory: /root/snap/maildir-utils/629/.cache/mu/xapian
so maybe it should use /home/martin/snap/...
instead of my /home/martin/.cache/...
?
Maybe there is just a configuration mistake ant the snap
is not allowed to write to ~/.cache
?
from mu.
Another error message?
Anyway, you can try to see if it works for some other dir:
mu init --muhome=/tmp/bla --maildir=~/Maildir
and you could try to run mu init
with strace
, to see if there's some underlying error.
from mu.
mu init --muhome=/home/martin/foo --maildir=~/Maildir
works fine.
mu init --muhome=/home/martin/.foo --maildir=~/Maildir
gives the error.
Using strace
on both commands the main difference is that on the later with the error the line
recvmsg(3,` {msg_namelen=112}, 0) = -1 EAGAIN (Resource temporarily unavailable)
But I don't really understand that.
from mu.
on the other hand --muhome="/home/martin/snap/maildir-utils/current/.cache/mu"
works fine, but then I have to do that witch all the time. Shouldn't it be there by default?
Interestingly sudo -u martin mu init --maildir /home/martin/Maildir/
uses /home/martin/snap/maildir-utils/629/.cache/mu/xapian
when using with the user martin
. So what is wrong in my config?
from mu.
unset XDG_CACHE_HOME
before running mu init
seems to solve the problem now mu
uses /home/martin/snap/maildir-utils/629/.cache/mu/xapian
and even mu index
works fine. But in emacs mu4e would not start seems it loads the variable from somewhere. :(
Now I need to find out what is setting this variable on startup or login and why.
Finally I found it just for people who want to know the anser:
I tried ubuntuDDE desktop, see https://itsfoss.com/install-deepin-ubuntu/
the "offical ppa" instructions will install the file /etc/profile.d/deepin-xdg-dir.sh
which is setting the XDG_CACHE_HOME
and that makes mu
installed via snap
to fail. The profile is not loaded when using sudo
. I don't need deepin, was just curious so this is easy to fix.
from mu.
Thanks for your time!
from mu.
Related Issues (20)
- [mu4e rfe] Exit mu4e-read-option when cancelling the action selection menu HOT 3
- [mu4e rfe] Let `display-buffer-alist` dictate compose buffers HOT 3
- [mu bug] Issues locating packages on Mac OS X HOT 3
- [mu bug] `mu` binary built using `make` crashes on ARM64 MAC OS HOT 10
- [misc] clarification about MIME parts in 1.12 HOT 3
- [misc] [mu4e] Why does (mu4e-headers-mark-pattern) ask for a field to match? HOT 1
- [mu bug] avoid `find-file` HOT 1
- [mu4e bug] Clicking links opens them twice HOT 5
- [mu4e bug] switch context in 1.12 not working HOT 6
- [mu4e rfe] Make it easier to access MIME part of given type HOT 1
- [mu4e bug] `mu4e-headers-mark-thread-using-markpair` does not respect `mu4e-headers-advance-after-mark` HOT 3
- [mu4e rfe] Allow saving marks before exiting emacs
- [mu bug] mu server error: expected schema-version 500, but got 466 HOT 3
- [mu4e bug] Sent messages not stored. HOT 2
- [mu4e bug] The new mu4e-compose-new function does not return buffer name
- [mu bug] mu4e-compose-attach-captured-message
- [mu4e bug] `message-cite-reply-position` is not respected in 1.12
- [mu bug] Mu not recognising updated/new emails HOT 6
- [mu4e rfe] HTML Reply and Forward messages have completely different processing HOT 3
- [misc] [documentation] Document how mu works with encrypted mail. HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from mu.