Advertisement
Guest User

Untitled

a guest
Sep 2nd, 2024
9
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.74 KB | None | 0 0
  1. $ dnf download --source nautilus
  2. $ sudo dnf builddep nautilus-46.2-1.fc40.src.rpm
  3. $ rpm -ivh nautilus-46.2-1.fc40.src.rpm
  4. bump the "release" from 1 to 2 in ~/rpmbuild/SPECS/nautilus.rpm
  5. $ cd ~/rpmbuild/SOURCES
  6. $ tar -Jxvf nautilus-46.2.tar.xz
  7. $ cd nautilus-46.2/src
  8. modify nautilus-application.c
  9. -> replace calls to g_get_home_dir with a new function g_get_starting_dir
  10. static gchar *
  11. g_get_starting_dir ()
  12. {
  13. return g_build_filename (g_get_home_dir (), "Downloads", NULL);
  14. }
  15. $ cd ../../
  16. $ rm SOURCES/nautilus-46.2.tar.xz
  17. $ cd SOURCES
  18. $ tar -Jcvf nautilus-46.2.tar.xz nautilus-46.2
  19. $ cd ..
  20. $ rpmbuild -bb SPECS/nautilus.spec
  21. $ cd RPMS/x86_64
  22. $ sudo rpm -Uvh nautilus-46.2-2.fc40.x86_64.rpm nautilus-extensions-46.2-2.fc40.x86_64.rpm
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement