Fixing directories after change of file manager

This commit is contained in:
Devin Dice 2022-08-15 23:06:26 -04:00
parent 845e1aa1fc
commit e9bd2372ed
6 changed files with 233 additions and 16 deletions

View file

@ -161,7 +161,7 @@ RUN echo \
"deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/docker.gpg] https://download.docker.com/linux/ubuntu \
$(lsb_release -cs) stable" | tee /etc/apt/sources.list.d/docker.list > /dev/null
RUN apt-get update
RUN apt-get -y install menulibre python3-pip keychain python3.8-venv strace gedit gvfs-backends
RUN apt-get -y install nautilus menulibre python3-pip keychain python3.8-venv strace gedit gvfs-backends
RUN apt-get -y install docker-ce docker-ce-cli containerd.io docker-compose-plugin
RUN wget -O beyond-compare.deb https://www.scootersoftware.com/$(curl -sd "platform=linux" https://www.scootersoftware.com/download.php | grep amd64.deb | awk -F\" '{print $2}' | sed 's/\///g')
@ -172,6 +172,8 @@ RUN apt install -y ./beyond-compare.deb ./sublime-text.deb ./sublime-merge.deb .
RUN npm -g install sass yuglify
RUN apt -y remove thunar
# Copy files
COPY rootfs /
RUN rm -rf /workspace/*
RUN rm -rf /workspace/*

View file

@ -0,0 +1,4 @@
FileManager=nautilus
WebBrowser=google-chrome
TerminalEmulator=xfce4-terminal

View file

@ -4,9 +4,9 @@
# will be translated on a per-path-element basis into the users locale
DESKTOP=Desktop
DOWNLOAD=Downloads
TEMPLATES=Workspace
PUBLICSHARE=Workspace/Company Files
DOCUMENTS=Documents
#TEMPLATES=Workspace
PUBLICSHARE=Shared Files
DOCUMENTS=Workspace
#MUSIC="$HOME"
#PICTURES="$HOME"
#VIDEOS="$HOME"

View file

@ -51,6 +51,13 @@ if [ "$USER" != "root" ]; then
fi
sed -i -e "s|%USER%|$USER|" -e "s|%HOME%|$HOME|" /etc/supervisor/conf.d/supervisord.conf
#mkdir -r /home/$USER/.config/
# Set the default file manager
#grep "FileManager" /home/$USER/.config/xfce4-helpers.rc && sed -i "/FileManager/c\FileManager=nautilus" || echo "FileManager=nautilus" >> /home/$USER/.config/xfce4-helpers.rc
# Set the default web browser if it does not exist
#grep "WebBrowser" /home/$USER/.config/xfce4-helpers.rc || echo "WebBrowser=google-chrome" >> /home/$USER/.config/xfce4-helpers.rc
#chown -R $USER:$USER /home/$USER/.config
# nginx workers
sed -i 's|worker_processes .*|worker_processes 1;|' /etc/nginx/nginx.conf
@ -111,16 +118,22 @@ fi
bash /cloud9/configure_desktop.sh &
mkdir /home/$USER/Workspace
chown $USER:$USER /home/$USER/Workspace
echo "/home/$USER/Workspace /workspace none defaults,bind 0 0" >> /etc/fstab
mkdir -p "/home/$USER/Workspace/-Shared Files-"
grep -qxF "/home/$USER/Workspace /workspace none defaults,bind 0 0" /etc/fstab || echo "/home/$USER/Workspace /workspace none defaults,bind 0 0" >> /etc/fstab
grep -qxF "/home/$USER/Shared\ Files /workspace/-Shared\ Files- none defaults,bind 0 0" /etc/fstab || echo "/home/$USER/Shared\ Files /workspace/-Shared\ Files- none defaults,bind 0 0" >> /etc/fstab
mount -a
mkdir /home/$USER/.config/gtk-3.0
chown $USER:$USER /home/$USER/.config/gtk-3.0
echo "file:///home/$USER/Documents" > /home/$USER/.config/gtk-3.0/bookmarks
echo "file:///home/$USER/Workspace" >> /home/$USER/.config/gtk-3.0/bookmarks
echo "file:///home/$USER/Workspace/Company%20Files" >> /home/$USER/.config/gtk-3.0/bookmarks
echo "file:///home/$USER/Downloads" >> /home/$USER/.config/gtk-3.0/bookmarks
# Make directory for bookmarks
mkdir -p /home/$USER/.config/gtk-3.0
exec /bin/tini -- supervisord -n -c /etc/supervisor/supervisord.conf
# Keep these bookmarks
grep "file:///home/$USER/Documents" /home/$USER/.config/gtk-3.0/bookmarks || echo "file:///home/$USER/Documents" >> /home/$USER/.config/gtk-3.0/bookmarks
grep "file:///home/$USER/Workspace" /home/$USER/.config/gtk-3.0/bookmarks || echo "file:///home/$USER/Workspace" >> /home/$USER/.config/gtk-3.0/bookmarks
grep "file:///home/$USER/Workspace/Shared%20Files" /home/$USER/.config/gtk-3.0/bookmarks || echo "file:///home/$USER/Workspace/Shared%20Files" >> /home/$USER/.config/gtk-3.0/bookmarks
grep "file:///home/$USER/Downloads" /home/$USER/.config/gtk-3.0/bookmarks || echo "file:///home/$USER/Downloads" >> /home/$USER/.config/gtk-3.0/bookmarks
grep "127.0.0.1 archive.linux.duke.edu" /etc/hosts || echo "127.0.0.1 archive.linux.duke.edu" >> /etc/hosts
chown -R $USER:$USER /home/$USER/
exec /bin/tini -- supervisord -n -c /etc/supervisor/supervisord.conf

View file

@ -0,0 +1,198 @@
[Desktop Entry]
Name=Nautilus File Manager
Name[am]=
Name[ar]=مدير الملفات ثونار
Name[ast]=Xestor de ficheros Nautilus
Name[be]=Кіраўнік файлаў Nautilus
Name[bg]=Файлов мениджър Nautilus
Name[bn]=Nautilus
Name[ca]=Gestor de fitxers Nautilus
Name[cs]=Správce souborů Nautilus
Name[da]=Nautilus Filhåndtering
Name[de]=Nautilus-Dateiverwaltung
Name[el]=Διαχειριστής αρχείων Nautilus
Name[en_AU]=Nautilus File Manager
Name[en_GB]=Nautilus File Manager
Name[eo]=Nautilus dosier-administrilo
Name[es]=Gestor de archivos Nautilus
Name[et]=Failihaldur Nautilus
Name[eu]=Nautilus fitxategi kudeatzailea
Name[fa_IR]=مدیر پروندههای تونار
Name[fi]=Nautilus-tiedostonhallinta
Name[fr]=Gestionnaire de fichiers Nautilus
Name[gl]=Xestor de ficheiros Nautilus
Name[he]=מנהל קבצים Nautilus
Name[hr]=Nautilus upravitelj datotekama
Name[hu]=Nautilus fájlkezelő
Name[hy]=Nautilus նիշք
Name[hy_AM]=Nautilus նիշք
Name[id]=Manajer Berkas Nautilus
Name[ie]=Gerente de files Nautilus
Name[is]=Nautilus skráastjóri
Name[it]=Il gestore dei file Nautilus
Name[ja]=Nautilus
Name[kk]=Nautilus файлдар басқарушысы
Name[ko]=
Name[lt]=Nautilus failų tvarkytuvė
Name[lv]=Nautilus failu pārvaldnieks
Name[ms]=Pengurus Fail Nautilus
Name[nb]=Nautilus Filbehandler
Name[nl]=Nautilus bestandbeheerder
Name[nn]=Nautilus filhandsaming
Name[oc]=Gestionari de Fichièrs Nautilus
Name[pa]=
Name[pl]=Menedżer plików Nautilus
Name[pt]=Gestor de ficheiros Nautilus
Name[pt_BR]=Gerenciador de arquivos Nautilus
Name[ro]=Managerul de fișiere Nautilus
Name[ru]=Файловый менеджер Nautilus
Name[si]=Nautilus
Name[sk]=Správca súborov Nautilus
Name[sl]=Upravljalnik datotek Nautilus
Name[sq]=Përgjegjësi i Kartelave Nautilus
Name[sr]=Тунар управник датотека
Name[sv]=Filhanteraren Nautilus
Name[te]= ి
Name[th]= Nautilus
Name[tr]=Nautilus Dosya Yöneticisi
Name[ug]=سۇنار(Nautilus) ھۆججەت باشقۇرغۇ
Name[uk]=Файловий менеджер Nautilus
Name[ur]=تھنر فائل منیجر
Name[ur_PK]=تھنر فائل منیجر
Name[vi]=Trình qun lý tp tin Nautilus
Name[zh_CN]=Nautilus
Name[zh_HK]=Nautilus
Name[zh_TW]=Nautilus
Comment=Browse the filesystem with the file manager
Comment[ar]=تصفح ملفات النظام بمدير الملفات
Comment[ast]=Restolar el sistema de ficheros col xestor de ficheros
Comment[be]=Агляд файлавай сістэмы кіраўніком файлаў
Comment[bg]=Преглед на файловата система с файловият мениджър
Comment[bn]= ি ি
Comment[ca]=Navegueu pel sistema de fitxers amb el gestor de fitxers
Comment[cs]=Procházet systém souborů správcem souborů
Comment[da]=Gennemse filsystemet med filhåndteringen
Comment[de]=Das Dateisystem in der Dateiverwaltung anzeigen
Comment[el]=Περιήγηση του συστήματος αρχείων με τον διαχειριστή αρχείων
Comment[en_AU]=Browse the filesystem with the file manager
Comment[en_GB]=Browse the filesystem with the file manager
Comment[eo]=Rigardu dosier-sistemon per dosier-administrilo
Comment[es]=Explore el sistema de archivos con el gestor de archivos
Comment[et]=Failisüsteemi lehitsemine kasutades failihaldurit
Comment[eu]=Fitxategi kudeatzaileaz fitxategi sistema arakatu
Comment[fa_IR]=مرور سیستم پرونده با مدیر پرونده
Comment[fi]=Selaa tiedostojärjestelmää tiedostonhallinnassa
Comment[fr]=Parcourir le système de fichiers avec le gestionnaire de fichiers
Comment[gl]=Explorar o sistema de ficheiros co xestor de ficheiros
Comment[he]=סייר במערכת הקבצים בעזרת מנהל הקבצים
Comment[hr]=Pregledaj datotečni sustav sa upraviteljem datoteka
Comment[hu]=A fájlrendszer böngészése a fájlkezelővel
Comment[hy]=Դիտանցնել նշահամակարգը նշերի կառավարչի հետ
Comment[hy_AM]=Դիտանցնել նշահամակարգը նշերի կառավարչի հետ
Comment[id]=Ramban sistem berkas dengan manajer berkas
Comment[ie]=Navigar li sistema de files per li gerente de files
Comment[is]=Vafra um skráarkerfið með skráarstjóranum
Comment[it]=Esplora il file system con il gestore dei file
Comment[ja]=
Comment[kk]=Файлдық жүйені файлдар басқарушысымен шолу
Comment[ko]=
Comment[lt]=Naršyti failų sistemą naudojant failų tvarkytuvę
Comment[lv]=Pārlūko failu sistēmu ar failu pārvaldnieku
Comment[ms]=Layar sistem fail dengan pengurus fail
Comment[nb]=Utforsk filsystemet med filbehandleren
Comment[nl]=Blader met de bestandbeheerder door het bestandssysteem
Comment[nn]=Bla gjennom filsystemet med filhandsamaren
Comment[oc]=Percórrer lo sistèma de fichièrs amb lo gestionari de fichièrs
Comment[pa]= ਿ
Comment[pl]=Przegląda system plików za pomocą menedżera plików
Comment[pt]=Explorar sistema de ficheiros com o gestor de ficheiros
Comment[pt_BR]=Navegue no sistema de arquivos com o gerenciador de arquivos
Comment[ro]=Gestionați fișierele cu un manager dedicat
Comment[ru]=Просмотр файловой системы с помощью файлового менеджера
Comment[sk]=Prehliada súborový systém pomocou správcu súborov
Comment[sl]=Brskajte po datotečnem sistemu z upravljalnikom datotek
Comment[sq]=Shfletoni sistemin e kartelave me përgjegjësin e kartelave
Comment[sr]=Прегледај систем датотека управником датотека
Comment[sv]=Bläddra i filsystemet med filhanteraren
Comment[te]= ి ి ిి
Comment[th]=
Comment[tr]=Dosya sistemine dosya yöneticisi ile göz atın
Comment[ug]=ھۆججەت باشقۇرغۇدا ھۆججەت سىستېمىسىنى كۆر
Comment[uk]=Перегляд файлової системи менеджером файлів
Comment[ur]=فائل سسٹم کو فائل منیجر سے دیکھیں
Comment[ur_PK]=فائل سسٹم کو فائل منیجر سے دیکھیں
Comment[vi]=Duyt hê thng tp tin vi trình qun lý tp tin
Comment[zh_CN]=
Comment[zh_HK]=
Comment[zh_TW]=使
GenericName=File Manager
GenericName[am]=
GenericName[ar]=مدير الملفات
GenericName[ast]=Xestor de ficheros
GenericName[be]=Кіраўнік файлаў
GenericName[bg]=Файлов мениджър
GenericName[bn]=
GenericName[ca]=Gestor de fitxers
GenericName[cs]=Správce souborů
GenericName[da]=Filhåndtering
GenericName[de]=Dateiverwaltung
GenericName[el]=Διαχειριστής αρχείων
GenericName[en_AU]=File Manager
GenericName[en_GB]=File Manager
GenericName[eo]=Dosier-administrilo
GenericName[es]=Gestor de archivos
GenericName[et]=Failihaldur
GenericName[eu]=Fitxategi kudeatzailea
GenericName[fa_IR]=مدیر پرونده
GenericName[fi]=Tiedostonhallinta
GenericName[fr]=Gestionnaire de fichiers
GenericName[gl]=Xestor de ficheiros
GenericName[he]=מנהל קבצים
GenericName[hr]=Upravitelj datotekama
GenericName[hu]=Fájlkezelő
GenericName[hy]=Նիշք
GenericName[hy_AM]=Նիշք
GenericName[id]=Manajer Berkas
GenericName[ie]=Gerente de files
GenericName[is]=Skráastjóri
GenericName[it]=Gestore dei file
GenericName[ja]=
GenericName[kk]=Файлдар басқарушысы
GenericName[ko]=
GenericName[lt]=Failų tvarkytuvė
GenericName[lv]=Failu pārvaldnieks
GenericName[ms]=Pengurus Fail
GenericName[nb]=Filbehandler
GenericName[nl]=Bestandbeheerder
GenericName[nn]=Filhandsamar
GenericName[oc]=Gestionari de fichièrs
GenericName[pa]=
GenericName[pl]=Menedżer plików
GenericName[pt]=Gestor de ficheiros
GenericName[pt_BR]=Gerenciador de arquivos
GenericName[ro]=Manager de fișiere
GenericName[ru]=Файловый менеджер
GenericName[sk]=Správca súborov
GenericName[sl]=Upravljalnik datotek
GenericName[sq]=Përgjegjës Kartelash
GenericName[sr]=Разгледач датотека
GenericName[sv]=Filhanterare
GenericName[te]= ి
GenericName[th]=
GenericName[tr]=Dosya Yöneticisi
GenericName[ug]=ھۆججەت باشقۇرغۇ
GenericName[uk]=Файловий менеджер
GenericName[ur]=فائل منیجر
GenericName[ur_PK]=فائل منیجر
GenericName[vi]=Trình qun lí tp tin
GenericName[zh_CN]=
GenericName[zh_HK]=
GenericName[zh_TW]=
Exec=nautilus %F
Icon=Nautilus
Terminal=false
StartupNotify=true
Type=Application
Categories=System;Core;GTK;FileTools;FileManager;
MimeType=inode/directory;
# vi:set encoding=UTF-8:

View file

@ -195,5 +195,5 @@ StartupNotify=true
Type=Application
Categories=System;Core;GTK;FileTools;FileManager;
MimeType=inode/directory;
NoDisplay=true
# vi:set encoding=UTF-8: