Score:0

Add mounts/symlinks into snap automatically

cn flag

I use several symlinks in my root directory usually pointing somewhere into /home directory. I can keep projects organized in directories, but I still have quick (terminal) access to them.

e.g.: /g -> /home/z/projects/kotlin/TheGame

But for snap applications, these symlinks are not visible.

Does exist any way how to globally add such symlinks (/bind mounts/another solution) to snap applications?

Thanks

vanadium avatar
cn flag
I can understand why you may want such links for data directories (but why in the root file system???), but not why you would want this for applications. These can be summoned already by a single command, which you could further abbreviate with a symbolic link or an alias. For daily use, you have no business in the application folders.
ybznek avatar
cn flag
@vanadium `cd /g` is shorter `cd /home/z/g` and `cd ~/g` does not work under root user. When I have "/g/image.png" in clipboard, I cannot open such image in snap gimp for example and I have to retype the path.
vanadium avatar
cn flag
It is a very bad habbit to run user applications as root user.
ybznek avatar
cn flag
Running as root is only one of usecases which does not cause problems. Main issue is about snap apps which cannot access the path.
vanadium avatar
cn flag
Probably not easy to solve: https://askubuntu.com/questions/1033344/how-to-give-snaps-access-to-somedir
mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.