LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Desktop
User Name
Password
Linux - Desktop This forum is for the discussion of all Linux Software used in a desktop context.

Notices


Reply
  Search this Thread
Old 01-13-2019, 05:12 PM   #16
RockDoctor
Senior Member
 
Registered: Nov 2003
Location: Minnesota, US
Distribution: Fedora, Ubuntu, Linux Mint
Posts: 1,701

Rep: Reputation: 392Reputation: 392Reputation: 392Reputation: 392

Quote:
Originally Posted by Grabby View Post
Caja is respawning itself, as you predicted, in an endless loop. I think it's time to give up on this. I will probably keep the binary and try to run it in another desktop environment when I have a chance.
I would do the following:
  1. back up the original caja
  2. replace the original with my self-compiled copy
  3. log out, then log back in
If it works, great, if not, log in to a console and restore the original
 
1 members found this post helpful.
Old 01-28-2019, 12:24 AM   #17
Grabby
Member
 
Registered: Feb 2016
Posts: 58

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by RockDoctor View Post
I would do the following:
  1. back up the original caja
  2. replace the original with my self-compiled copy
  3. log out, then log back in
If it works, great, if not, log in to a console and restore the original
I was about to do this, but then I noticed something odd: the size of the executable compiled by me is 10 MB whereas the size of the original caja (in /usr/bin) is about 2 MB. How can the size be so different? Should I go ahead?
 
Old 01-28-2019, 09:10 AM   #18
RockDoctor
Senior Member
 
Registered: Nov 2003
Location: Minnesota, US
Distribution: Fedora, Ubuntu, Linux Mint
Posts: 1,701

Rep: Reputation: 392Reputation: 392Reputation: 392Reputation: 392
I would definitely go ahead and try it, but keep that backup handy.
 
Old 01-28-2019, 09:48 AM   #19
RockDoctor
Senior Member
 
Registered: Nov 2003
Location: Minnesota, US
Distribution: Fedora, Ubuntu, Linux Mint
Posts: 1,701

Rep: Reputation: 392Reputation: 392Reputation: 392Reputation: 392
I was curious, so I tried it myself. I'm running Fedora Rawhide, so I downloaded the caja source rpm and the needed devel files and rebuilt caja using 144 (300%) as the largest icon size instead of the default 192 (400%). Both my original and my rebuilt /usr/bin/caja files are only about 2 MB, but the caja rpm itself was about 4.2 MB, and I had to install the caja-schemas rpm (13.1 MB), and the caja-core-extensions rpm (also 13.1 MB). The attached image show icons at 100%, 200%, and 300%
Attached Thumbnails
Click image for larger version

Name:	caja.jpg
Views:	3
Size:	180.3 KB
ID:	29618  
 
Old 01-28-2019, 10:27 PM   #20
Grabby
Member
 
Registered: Feb 2016
Posts: 58

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by RockDoctor View Post
I was curious, so I tried it myself. I'm running Fedora Rawhide, so I downloaded the caja source rpm and the needed devel files and rebuilt caja using 144 (300%) as the largest icon size instead of the default 192 (400%). Both my original and my rebuilt /usr/bin/caja files are only about 2 MB, but the caja rpm itself was about 4.2 MB, and I had to install the caja-schemas rpm (13.1 MB), and the caja-core-extensions rpm (also 13.1 MB). The attached image show icons at 100%, 200%, and 300%
When you rebuilt it, did you just use its own config? I am not expert at all with this, so I am wondering whether perhaps I did something wrong or missed something.
What I did was:
1. I ran ./autogen.sh
2. I built with ./make
 
Old 01-29-2019, 06:30 PM   #21
RockDoctor
Senior Member
 
Registered: Nov 2003
Location: Minnesota, US
Distribution: Fedora, Ubuntu, Linux Mint
Posts: 1,701

Rep: Reputation: 392Reputation: 392Reputation: 392Reputation: 392
Quote:
Originally Posted by Grabby View Post
When you rebuilt it, did you just use its own config?
I used rpmbuild which used Fedora's spec file (which I did not modify) to build the rpm's after I changed the icon size. Fedora uses a configuration that includes
Code:
 --disable-static \
--disable-schemas-compile \
--disable-update-mimedb
which may explain why your self-compiled caja binary is so much larger
 
Old 01-29-2019, 06:47 PM   #22
Grabby
Member
 
Registered: Feb 2016
Posts: 58

Original Poster
Rep: Reputation: Disabled
I forgot to mention: instead of using a package from a distro (like Fedora), I had downloaded the program directly from Github.
 
Old 01-29-2019, 07:01 PM   #23
RockDoctor
Senior Member
 
Registered: Nov 2003
Location: Minnesota, US
Distribution: Fedora, Ubuntu, Linux Mint
Posts: 1,701

Rep: Reputation: 392Reputation: 392Reputation: 392Reputation: 392
I assumed you used the actual caja source. What distro are you using? If your distro has a source package and the tools build the binary from it, that would definitely be the easiestway to go.
 
Old 01-29-2019, 07:15 PM   #24
Grabby
Member
 
Registered: Feb 2016
Posts: 58

Original Poster
Rep: Reputation: Disabled
Sorry, I did not explain myself well, I did build from source. I downloaded it from the official Caja account on Github.
My OS is Manjaro. I still do not know how to build via the package manager. I will look into it.
What I did was simply: running autogen.sh and then ./make
 
Old 01-29-2019, 07:28 PM   #25
RockDoctor
Senior Member
 
Registered: Nov 2003
Location: Minnesota, US
Distribution: Fedora, Ubuntu, Linux Mint
Posts: 1,701

Rep: Reputation: 392Reputation: 392Reputation: 392Reputation: 392
I have manjaro installed, but never tried to build a package for it. I'm going to try my Fedora-compiled version of the caja binary on it. Will be back in a few minutes to let you know if it worked
 
Old 01-29-2019, 07:33 PM   #26
RockDoctor
Senior Member
 
Registered: Nov 2003
Location: Minnesota, US
Distribution: Fedora, Ubuntu, Linux Mint
Posts: 1,701

Rep: Reputation: 392Reputation: 392Reputation: 392Reputation: 392
I have manjaro installed, but never tried to build a package for it. I'm going to try my Fedora-compiled version of the caja binary on it.

Tried it - doesn't work. Fedora version requires libselinux.so.1, and I don't believe Manjaro uses selinux.
 
Old 01-29-2019, 07:40 PM   #27
RockDoctor
Senior Member
 
Registered: Nov 2003
Location: Minnesota, US
Distribution: Fedora, Ubuntu, Linux Mint
Posts: 1,701

Rep: Reputation: 392Reputation: 392Reputation: 392Reputation: 392
But here's how I performed the trial (which you should be able to do, also)
  1. open a terminal and become root (sudo su)
  2. copy /usr/bin/caja to my home directory
  3. copy my replacement caja to /usr/bin
  4. logout
  5. log back in
  6. my desktop icons didn't show, so I knew something wasn't right. I opened a terminal window and tried to run caja
  7. gave me error message
  8. logout
  9. from the Manjaro login screen, open a console (Alt-F2)
  10. login
  11. sudo su
  12. copy the Manjaro caja back to /usr/bin
  13. log out of console
  14. Alt-F7 to get back to the graphical login screen
  15. login
  16. everything is back to the way it was
 
Old 01-31-2019, 10:40 AM   #28
Grabby
Member
 
Registered: Feb 2016
Posts: 58

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by RockDoctor View Post
But here's how I performed the trial (which you should be able to do, also)
  1. open a terminal and become root (sudo su)
  2. copy /usr/bin/caja to my home directory
  3. copy my replacement caja to /usr/bin
  4. logout
  5. log back in
  6. my desktop icons didn't show, so I knew something wasn't right. I opened a terminal window and tried to run caja
  7. gave me error message
  8. logout
  9. from the Manjaro login screen, open a console (Alt-F2)
  10. login
  11. sudo su
  12. copy the Manjaro caja back to /usr/bin
  13. log out of console
  14. Alt-F7 to get back to the graphical login screen
  15. login
  16. everything is back to the way it was
Thanks a lot for taking the time to write this mini-tutorial, I appreciate it.
I think the best thing for me is to stop playing with the idea of modifying Caja myself, as I would surely mess up. Instead, I have already filed a feature request in their bug tracking system.
Thanks to everyone for the help
 
1 members found this post helpful.
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
(caja:27198): GLib-GObject-WARNING error when opening trash with caja via terminal on Debian 9 MATE backport. linustalman Linux - Software 1 08-17-2018 01:04 PM
why would my columns in LibreOffice separate as zoom out and overlap as zoom in 1sweetwater! Linux - Software 18 02-10-2015 08:50 AM
Query regarding "Zoom in" and "Zoom Out" on Fedora-17 ajaygarg Linux - Desktop 2 12-03-2012 11:59 PM
Zoom Zoom barnelli-jones LinuxQuestions.org Member Intro 1 06-27-2012 08:55 PM
plasma hangs - zoom out but no zoom in CollieJim Linux - Desktop 3 04-06-2010 08:53 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Desktop

All times are GMT -5. The time now is 09:23 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration