Author Topic: SOLVED:Openbox desktop - shutter (0.88.1-2pclos2012)  (Read 2184 times)

Offline djohnston

  • PCLinuxOS Tester
  • Hero Member
  • *******
  • Posts: 6227
  • I don't do Windows
SOLVED:Openbox desktop - shutter (0.88.1-2pclos2012)
« on: February 16, 2012, 11:57:07 PM »
The update has rendered about 75% of the icons missing. Folder icons no longer show in PCManFM, except for user root. For some reason, the attributes of the /usr/share/icons folder was changed to 700. I did:

# chmod 755 /usr/share/icons

and got most of the icons back.

EDIT: I still can't get all of the icons to show up correctly. It seems to be the ones in /usr/share/pixmaps. For example, qasmixer shows no icon at all, while clipit is showing the wrong icon.
« Last Edit: February 18, 2012, 08:51:54 PM by djohnston »
Bare metal                           VBox
AMD Athlon 7750 Dual-Core    Single core
4GiB RAM                              1GiB RAM
nVidia GeForce FX 5200          64MB video
LXDE 32bit                            KDE 64bit

Registered Linux User #416378

Offline djohnston

  • PCLinuxOS Tester
  • Hero Member
  • *******
  • Posts: 6227
  • I don't do Windows
Re: Openbox desktop - shutter (0.88.1-2pclos2012)
« Reply #1 on: February 17, 2012, 04:41:54 PM »
Okay, I found the problem. It's the shutter (0.88.1-2pclos2012) package. When it is installed, it changes the permissions of

/usr/share/icons
and
/usr/share/icons/hicolor

directories. There are probably more. I haven't looked completely through the directory tree. For example, the Firefox icon is missing from the menus and elsewhere.

I changed the title of this thread accordingly. Only shutter and perl-Image-ExifTool packages were reinstalled on my Openbox desktop. In VirtualBox, I did a new install of Openbox 2011.11 full, then a full upgrade. Nothing changed after the upgrade. Then I installed Shutter with all its dependencies. The perl-Image-ExifTool package was evidently already installed there, and was not listed as a dependency. The /usr/share/icons and /usr/share/icons/hicolor directory permissions were changed from 755 to 700. I could change everything recursively through the tree, but I don't want to make the icon files executable.

Bare metal                           VBox
AMD Athlon 7750 Dual-Core    Single core
4GiB RAM                              1GiB RAM
nVidia GeForce FX 5200          64MB video
LXDE 32bit                            KDE 64bit

Registered Linux User #416378

Offline LKJ

  • PCLinuxOS Tester
  • Hero Member
  • *******
  • Posts: 1952
Re: Openbox desktop - shutter (0.88.1-2pclos2012)
« Reply #2 on: February 17, 2012, 04:48:43 PM »
I see. well so much for shutter for awhile.
Good things come in small packages. From small minds, not so much.

All walls by LKJ unless noted.
iMac 2.8 GHz Quad Core i7 12GB

Offline Neal ManBear

  • Administrator
  • Super Villain
  • *****
  • Posts: 15847
  • LXDE! Coffee, Bacon and Cheesecake!
Re: Openbox desktop - shutter (0.88.1-2pclos2012)
« Reply #3 on: February 17, 2012, 05:02:28 PM »
I double checked the spec on that update. It called for permissions of 755, not 700. The line is:     
chmod 755 %buildroot%{_var}/lib/rpm/filetriggers/gtk-icon-cache-hicolor.script     

It is the same as it was in the previous update. No change was made to it.     

Offline melodie

  • Hero Member
  • *****
  • Posts: 5942
  • XMMP=Jabber, free instant messaging protocol !
    • PCLinuxOS Fr
Re: Openbox desktop - shutter (0.88.1-2pclos2012)
« Reply #4 on: February 17, 2012, 06:25:10 PM »
I could change everything recursively through the tree, but I don't want to make the icon files executable.

Hi djohnston, it seems you found the source ? I don't know about spec files but there must be something.

To change the directories only here is a command line you should like:

If in /usr/share:

Quote
# find icons/ -type d -exec chmod 755 {} \;

Now it needs to be decomposed for some explanation:

# you are root (obvious)
find : the find command (obvious)

icons/ here you indicate from where to start. If you want to start from within the icons directory, you do "find . -type" and so on.

-type will give the type of file (all is file in Unix)

d it is the directory type

-exec : we are going to start an action

then the action is
chmod 755 (on the directories only, and as it is a find command it will be recursive and applied to all sub-directories)

then:
{} : I think it's about the content of all what preceeds (all the files of the type directory) and

a space : very important that there is a space between {} and the following \
then:

\;

the ; ends the command line. No space between \ and ;

If you want to change permissions to all files recursively, for example in the current directory:

Quote
# find . -type f -exec chmod 644 {} \;

I hope I didn't put colors that don't match well.  :-X
« Last Edit: February 17, 2012, 06:28:42 PM by melodie »
melodie at swissjabber dot ch - IRC #pclinuxos-fr sur freenode

Offline melodie

  • Hero Member
  • *****
  • Posts: 5942
  • XMMP=Jabber, free instant messaging protocol !
    • PCLinuxOS Fr
Re: Openbox desktop - shutter (0.88.1-2pclos2012)
« Reply #5 on: February 17, 2012, 06:37:58 PM »
I double checked the spec on that update. It called for permissions of 755, not 700. The line is:    
chmod 755 %buildroot%{_var}/lib/rpm/filetriggers/gtk-icon-cache-hicolor.script    

It is the same as it was in the previous update. No change was made to it.    


Hi, the problem does not come from the package but from the sources:

http://shutter-project.org/wp-content/uploads/releases/tars/

I downloaded shutter-0.88.1.tar.gz, unpacked it in my /tmp and did "ls -l" in the root directory, in the share directory and in icons directory, down to hicolor-icon-theme and elsewhere : all directories are 700.

I have the mail of the dev in front of me in the sources, I send a mail to him.

/ Edit In the mail I just prepared I also add that I found this: when I extract, files belong to me. Ok. So to check if it belongs to root when installed I switched to root, then to real root (su -) then even logged into a tty as root to extract again the tarball, from a fresh copy each time.

Each time the directory extracted and all the directories and files under belongs to my user and my user group.  :o

I have downloaded a tarball from another place to check with sources coming from another place, (at google code) and extracted it as root : as expected all the files where then belonging to root:root.

So... There is a mystery about the latest Shutter sources.

Does the build script (spec file) change permissions to all directories in the sources ? I don't understand the syntax quite clearly.

I keep the project mail to the dev of Shutter as a draft for now.

/Edit :

I am puzzled about this one thread:
mise a jour :)

patrick.2 has updated from shutter (0.88.1-1pclos2011) to 0.88.1-2pclos2012. So it is only a new version of the package. What is the changelog ?

« Last Edit: February 17, 2012, 07:13:39 PM by melodie »
melodie at swissjabber dot ch - IRC #pclinuxos-fr sur freenode

Offline djohnston

  • PCLinuxOS Tester
  • Hero Member
  • *******
  • Posts: 6227
  • I don't do Windows
Re: Openbox desktop - shutter (0.88.1-2pclos2012)
« Reply #6 on: February 17, 2012, 08:18:10 PM »
I uninstalled and reinstalled just one package, shutter.

[root@localhost ~]# rpm -qa | grep shutter
shutter-0.88.1-2pclos2012
[root@localhost ~]# rpm -e shutter-0.88.1-2pclos2012
[root@localhost ~]# ls -l /usr/share | grep icons
drwxr-xr-x  13 root root   12288 Feb 17 21:01 icons/
[root@localhost ~]# apt-get update
Get:1 http://debian.ethz.ch pclinuxos/2010 release [2885B]
Fetched 2885B in 0s (3795B/s)
Get:1 http://debian.ethz.ch pclinuxos/2010/main pkglist [2097kB]
Get:2 http://debian.ethz.ch pclinuxos/2010/main release [160B]
Get:3 http://debian.ethz.ch pclinuxos/2010/updates pkglist [921kB]
Get:4 http://debian.ethz.ch pclinuxos/2010/updates release [163B]             
Get:5 http://debian.ethz.ch pclinuxos/2010/nonfree pkglist [54.5kB]           
Get:6 http://debian.ethz.ch pclinuxos/2010/nonfree release [161B]             
Get:7 http://debian.ethz.ch pclinuxos/2010/kde4 pkglist [163kB]               
Get:8 http://debian.ethz.ch pclinuxos/2010/kde4 release [158B]                 
Get:9 http://debian.ethz.ch pclinuxos/2010/games pkglist [44.7kB]             
Get:10 http://debian.ethz.ch pclinuxos/2010/games release [158B]               
Fetched 3282kB in 7s (431kB/s)                                                 
Reading Package Lists... Done
Building Dependency Tree... Done
[root@localhost ~]# apt-get install shutter
Reading Package Lists... Done
Building Dependency Tree... Done
The following NEW packages will be installed:
   shutter (0.88.1-2pclos2012)
0 upgraded, 1 newly installed, 0 removed and 4 not upgraded.
Need to get 1621kB of archives.
After unpacking 15.2MB of additional disk space will be used.
Get:1 http://debian.ethz.ch pclinuxos/2010/updates shutter 0.88.1-2pclos2012 [1621kB]
Fetched 1621kB in 3s (483kB/s)   
Committing changes...
Preparing                                ############################## [100%]
Updating / installing
  shutter-0.88.1-2pclos2012.noarch       ############################## [100%]
Done.
[root@localhost ~]# ls -l /usr/share | grep icons
drwx------  15 root root   12288 Feb 17 21:02 icons/
[root@localhost ~]#


Here's a screenshot of PCManFM after reinstalling shutter.


Bare metal                           VBox
AMD Athlon 7750 Dual-Core    Single core
4GiB RAM                              1GiB RAM
nVidia GeForce FX 5200          64MB video
LXDE 32bit                            KDE 64bit

Registered Linux User #416378

Offline Neal ManBear

  • Administrator
  • Super Villain
  • *****
  • Posts: 15847
  • LXDE! Coffee, Bacon and Cheesecake!
Re: Openbox desktop - shutter (0.88.1-2pclos2012)
« Reply #7 on: February 18, 2012, 12:29:41 AM »
The shutter update was done to add some dependencies. There was a broken package report saying that shutter would not run because of missing dependencies. I added them, upped the release number from one to two, built the RPM and sent the update to the repo. No other changes were made.     

Offline LKJ

  • PCLinuxOS Tester
  • Hero Member
  • *******
  • Posts: 1952
Re: Openbox desktop - shutter (0.88.1-2pclos2012)
« Reply #8 on: February 18, 2012, 07:28:07 AM »
yep. I had uninstalled shutter after fixing the permissions, reinstalled shutter and the permissions had changed again.
Good things come in small packages. From small minds, not so much.

All walls by LKJ unless noted.
iMac 2.8 GHz Quad Core i7 12GB

Offline pinoc

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 2842
    • other projects...
Re: Openbox desktop - shutter (0.88.1-2pclos2012)
« Reply #9 on: February 18, 2012, 09:33:14 AM »
fixed shutter to not change permissions and sent to dropbox.
-p.

Offline LKJ

  • PCLinuxOS Tester
  • Hero Member
  • *******
  • Posts: 1952
Re: Openbox desktop - shutter (0.88.1-2pclos2012)
« Reply #10 on: February 18, 2012, 09:38:17 AM »
fixed shutter to not change permissions and sent to dropbox.
-p.
that's good but it won't launch in LXDE 2012.1 plus there's no dropbox link  :D ;D
Good things come in small packages. From small minds, not so much.

All walls by LKJ unless noted.
iMac 2.8 GHz Quad Core i7 12GB

Offline pinoc

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 2842
    • other projects...
Re: Openbox desktop - shutter (0.88.1-2pclos2012)
« Reply #11 on: February 18, 2012, 10:12:36 AM »
fixed shutter to not change permissions and sent to dropbox.
-p.
that's good but it won't launch in LXDE 2012.1 plus there's no dropbox link  :D ;D

what makes you think my fixed package does not start in LXDE? You haven't even installed it yet. I can tell you that it does start in LXDE because I have it in front of my eyes right now. Don't know about the dropbox link but you can test that yourself once it hits the repo.
-p.

Offline melodie

  • Hero Member
  • *****
  • Posts: 5942
  • XMMP=Jabber, free instant messaging protocol !
    • PCLinuxOS Fr
Re: Openbox desktop - shutter (0.88.1-2pclos2012)
« Reply #12 on: February 18, 2012, 10:27:29 AM »
pinoc, thank you very much !
melodie at swissjabber dot ch - IRC #pclinuxos-fr sur freenode

Offline LKJ

  • PCLinuxOS Tester
  • Hero Member
  • *******
  • Posts: 1952
Re: Openbox desktop - shutter (0.88.1-2pclos2012)
« Reply #13 on: February 18, 2012, 10:33:13 AM »
fixed shutter to not change permissions and sent to dropbox.
-p.
that's good but it won't launch in LXDE 2012.1 plus there's no dropbox link  :D ;D

what makes you think my fixed package does not start in LXDE? You haven't even installed it yet. I can tell you that it does start in LXDE because I have it in front of my eyes right now. Don't know about the dropbox link but you can test that yourself once it hits the repo.
-p.
:D I didn't mean to imply your fixed version didn't launch. as far as the dropbox link I just meant it wasn't in your post so I couldn't try it.  ;D
Good things come in small packages. From small minds, not so much.

All walls by LKJ unless noted.
iMac 2.8 GHz Quad Core i7 12GB

Offline Neal ManBear

  • Administrator
  • Super Villain
  • *****
  • Posts: 15847
  • LXDE! Coffee, Bacon and Cheesecake!
Re: Openbox desktop - shutter (0.88.1-2pclos2012)
« Reply #14 on: February 18, 2012, 11:25:20 AM »
Lou,     
When pinoc spoke of putting the update in dropbox, he was speaking of sending it to me. Packagers use dropbox to send SRPMs.     
The updated RPM has been sent to the repository. It may take some time for the mirrors to sync.