How to make Skype data persistent on Qubes?

I installed Skype on debian-11 template, but its data is not persistent, unlike other programs. I always have to login again on Skype and go through 2FA every time I launch the appvm. I suppose I must use binddirs to make its data persistent but how do I know which folder I need to add on binddirs?

It’ll likely (but not necessarily) be store in /etc so that’s a good place to start from.

ls -aR /etc | grep skype

You can get creative with grep. If you can’t find anything there try:

sudo ls -aR | grep skype

Then in your AppVM:

sudo mkdir -p /rw/config/qubes-bind-dirs.d
echo "binds+=( '<dir>' )" | sudo tee /rw/config/qubes-bind-dirs.d/50_user.conf

Mind the spaces within the parenthesis.

Not sure, /etc sounds like a pretty weird choice for storing the logins.

Juuuust to be sure: You have installed skype in your template right?
And you created a normal AppVM based on that template?
And you use the AppVM instead of the template?

If so:
Then you have to figure out where skype stores stuff.

A quick search hinted to this file that has rotten away unfortunatelly, but in the cache i read:

In Linux , Skype stores the ‘config.xml’ file in $(HOMEDIR)/.Skype/< skype user id>

So this should work out of the box how i described it above.

Most likely not stored in plaintext but as session id.

Can also check /opt