Setup a shared folder between UT and Waydroid
-
Hi everyone
I've tried to setup a shared folder between UT and waydroid so I can easily and quickly share files without using the terminal. I want to be able to use easily this share folder in the graphical app Files of Ubuntu Touch.
I've kinda followed this link : https://docs.waydro.id/faq/setting-up-a-shared-folder
So i have first created two directories :
~/shared
and~/.local/share/waydroid/data/media/0/shared
Then I have done the commands :sudo mount --bind ~/shared ~/.local/share/waydroid/data/media/0/shared sudo chown phablet:phablet shared
phablet@ubuntu-phablet:~$ ls -l | grep shared drwxrwxr-x 2 phablet phablet 4096 juin 7 01:04 shared phablet@ubuntu-phablet:~$
It only works for one file, then the permissions automatically change to
1023
and I'm not authorised to continue sharing files :phablet@ubuntu-phablet:~$ ls -l | grep shared drwxrwxr-x 2 1023 1023 4096 juin 9 23:14 shared phablet@ubuntu-phablet:~$
So I have to do the
chown
command again for every file...Furthermore, if I check the
id
command then I don't see which user is1023
:phablet@ubuntu-phablet:~$ id uid=32011(phablet) gid=32011(phablet) groups=32011(phablet),4(adm),5(tty),20(dialout),24(cdrom),27(sudo),30(dip),44(video),46(plugdev),105(systemd-journal),1001(radio),1002(bluetooth),1003(android_graphics),1004(android_input),1005(audio),1013(android_media),1015(sdcard_rw),1021(gps),2001(android_cache),3002(android_net3),3003(android_net),3004(android_net2),9997(android_nvram) phablet@ubuntu-phablet:~$
And finally if I reboot UT I have to also re-do the
mount --bind
command...I would like to make this shared folder persistent without having to re-do those commands every time, any ideas ?
Thanks
-
-
Does Ubuntu touch have a "autostart” feature?....if it already does not exist that could be a clickable....auto start clickable apps or run scripts.....surly someone did this already?
-
@developerbayman said in Setup a shared folder between UT and Waydroid:
Does Ubuntu touch have a "autostart” feature?....if it already does not exist that could be a clickable....auto start clickable apps or run scripts.....surly someone did this already?
Not sure what you put behind "autostart feature", but Ubuntu Touch uses systemd to start services at boot time.
-
@AppLee a lot of distros usually have a settling app to auto start stuff initiated by the desktop after boot Linux mint, Ubuntu....most distros and windows have one simple add program/script button add the path to the file or script and starts after desktop boots
-
@developerbayman
Making a little script and make it autorun on startup could be a workaround to avoid doing themount --bind
command every time I reboot the phone but I don't know how to do this.
Still, for each file that I want to copy into the shared folder I have to do thechown
command again and again, that's the most problematic thing