pirmdiena, 2021. gada 14. jūnijs

Make Nautilus 3.26.4 for ubuntu 18.04 log copy/move/delete/rename actions. (UPDATED SECOND TIME) HIGHLY EXPERIMENTAL

I PERSONALLY THINK VANILLA VERSION ON UBUNTU IS FAILURE SO THIS ARTICLE DOES NOT MAKE A SENSE UNTIL OPENSOURCE COMMUNITY FIXES NAUTILUS ITSELF ON ANY DISTRO, BUT CMMON.




First of all, this Nautilus version will use Vanilla theme. (Might fix the styling issues for ubuntu 18.04 later.) Second of all, it does not log location of files that are renamed using it. Third of all, logged files have missing extensions. (So far these are only bugs there is to this code). So while using this version, I take no responsibility over it's doings as it is simply few lines of code added to few functions - IN NUTSHELL - https://paste.ubuntu.com/p/PvpBM6dMw5/

Link to flatpak file (org.gnome.NautilusDevel.flatpak)- 

https://drive.google.com/file/d/1sgXckMoXQmfm38nEfqWJ-k0OGDH17Tiv/view?usp=sharing


TO RUN YOUR NAUTILUS FLATPAK OR BUILD IT BY GNOME-BUILDER YOU NEED TO INSTALL FLATPAK ETC but ONCE YOU HAVE BUILDER INSTALLED WITH WORKING BUILDED APP YOU CAN GET APPLICATION THAT DOES NOT NEED FLATPAK - https://stackoverflow.com/questions/60800783/can-gnome-builder-actually-produce-something-else-than-flatpaks

sudo apt install flatpak

flatpak remote-add --if-not-exists --user flathub https://flathub.org/repo/flathub.flatpakrepo

flatpak install flathub org.gnome.Platform//3.28\

sudo flatpak --user install org.gnome.NautilusDevel.flatpak






TO REMOVE FLATHUB - flatpak remote-delete flathub

IF EVERYTHING GOES WRONG:

flatpak uninstall --unused

sudo apt-get remove --autoremove flatpak

sudo apt-get purge flatpak
sudo rm -rf /var/lib/flatpak $HOME/.local/share/flatpak



To run Your Nautilus flatpak - flatpak run org.gnome.NautilusDevel . Log files are saved under /home/username/ directory.

Remember, this is flatpak and it will not replace original system wide used Nautilus, SO after doing this, original system wide used Nautilus, will still not have these features, but they will be USABLE ONLY FROM flatpak version.

In case You want to compile, follow article (There are some tips on creating system wide shortcuts at the end of it, and running Your flatpak Nautilus - >



 For logging copy/move/delete functionality, here is the  - nautilus-file-operations.c   file -  https://paste.ubuntu.com/p/kRhQFtZj4Q/

For logging renaming - here is the - nautilus-files-view.c file -

https://paste.ubuntu.com/p/PxwnBRQYmR/

(logging renaming does not include location of where files are renamed, or which ones are renamed)

Install gnome-builder - (don't run as root)

 flatpak install --user --from https://flathub.org/repo/appstream/org.gnome.Builder.flatpakref
 flatpak run --user org.gnome.Builder Install gnome-builder -

Run gnome-builder -

flatpak run org.gnome.Builder -vvvv

Select Nautilus and choose this repository - 

VANILLA VERSION - 

https://gitlab.gnome.org/chrism/nautilus.git

UBUNTU VERSION - 

https://git.launchpad.net/~ubuntu-desktop/ubuntu/+source/nautilus


Modify nautilus-file-operations.c and nautilus-files-view.c  in source file directory (src).


Build and Export bundle.
 sudo apt install gnome-software-plugin-flatpak


 sudo flatpak install org.gnome.NautilusDevel.flatpak





to run Your version of nautilus with flatpak - flatpak run org.gnome.NautilusDevel 









create system wide shortcut -  sudo geany ~/.local/share/applications/NEWNAUTILUS.desktop 


[Desktop Entry]
NotShowIn=Unity;GNOME;
Name=Files
Comment=Access and organize files
# Translators: Search terms to find this application. Do NOT translate or localize the semicolons! The list MUST also end with a semicolon!
Keywords=folder;manager;explore;disk;filesystem;
Exec=flatpak run org.gnome.NautilusDevel 
# Translators: Do NOT translate or transliterate this text (this is an icon file name)!
Icon=org.gnome.Nautilus
Terminal=false
Type=Application
StartupNotify=true
Categories=GNOME;GTK;Utility;Core;FileManager;
X-GNOME-UsesNotifications=true
Actions=new-window;
X-Unity-IconBackgroundColor=#af4853
X-Ubuntu-Gettext-Domain=nautilus

X-AppStream-Ignore=true

[Desktop Action new-window]
Name=New Window
Exec=nautilus --new-window



Add shortcut to Tint2 
sudo geany ~/.config/tint2/tint2rc 

 launcher_item_app = NEWNAUTILUS.desktop

Nav komentāru:

Ierakstīt komentāru