installing subtitlecomposer breaks Ambiance theme window decoration

Bug #993275 reported by stm
38
This bug affects 7 people
Affects Status Importance Assigned to Milestone
subtitlecomposer (Ubuntu)
Expired
Undecided
Unassigned
ubuntu-themes (Ubuntu)
Expired
Undecided
Unassigned

Bug Description

It seems I cannot activate the ambiance theme. It seems to fall back to radiance or whatever theme was previously active. This problem also occurs for a new user account. I get the following line in .xsesssion-errors:

Window manager warning: Failed to load theme "Ambiance": Line 337 character 103: Couldn't recognize the image file format for file '/usr/share/themes/Ambiance/metacity-1/close_focused_normal.png'

ProblemType: Bug
DistroRelease: Ubuntu 12.04
Package: light-themes 0.1.9.1-0ubuntu1
ProcVersionSignature: Ubuntu 3.2.0-24.37-generic-pae 3.2.14
Uname: Linux 3.2.0-24-generic-pae i686
NonfreeKernelModules: nvidia
ApportVersion: 2.0.1-0ubuntu7
Architecture: i386
Date: Wed May 2 15:35:29 2012
EcryptfsInUse: Yes
InstallationMedia: Ubuntu 12.04 LTS "Precise Pangolin" - Release i386 (20120423)
PackageArchitecture: all
ProcEnviron:
 TERM=xterm
 PATH=(custom, user)
 LANG=en_US.UTF-8
 SHELL=/bin/bash
SourcePackage: light-themes
UpgradeStatus: No upgrade log present (probably fresh install)

Revision history for this message
stm (spam1208) wrote :
Revision history for this message
Andrea Cimitan (cimi) wrote :

It's weird.
Try reinstalling the theme with sudo apt-get install --reinstall light-themes

Did you install package from a PPA or somewhere else?

Changed in light-themes (Ubuntu):
status: New → Incomplete
Revision history for this message
stm (spam1208) wrote :

Reinstalling brought no change. I do have a few things from ppa, but nothing that should be connected with this. Only thing that comes to my mind is that I experimented with myunity. That might have upset something.

I'm attaching the file mentioned in the error message just in case.

Revision history for this message
Párkányi, Balázs (balazs-fang-deactivatedaccount) wrote :

Perhaps this helps to find out what happened:
Yesterday after installing subtitlecomposer package, two png became unrecognizable: close_focused_normal.png and closed.png. After removing it, the two files became recognizable again.

Revision history for this message
stm (spam1208) wrote :

That's... fascinating, Sherlock. I can confirm that uninstalling subtitlecomposer "solves" the problem.

Revision history for this message
Párkányi, Balázs (balazs-fang-deactivatedaccount) wrote :

I found that installing subtitlecomposer changes the mime database so that the type of two png files from the default Ambiance theme becomes "text/x-tmplayer" instead of "image/png", thus gtk-window-decorator unable to load the theme.

affects: light-themes (Ubuntu) → subtitlecomposer (Ubuntu)
Revision history for this message
vilmos (vilmos) wrote :

Had the same issue, I can confirm that uninstalling subtitlecomposer solves the problem. Thanks!

Revision history for this message
Cleberson Ramirio (cleberson-ramirio) wrote :

I uninstalled the package subtitlecomposer from my pc and the theme returned to work properly. Thanks!

Changed in subtitlecomposer (Ubuntu):
status: Incomplete → Confirmed
Revision history for this message
Philipp Gassmann (phiphi.g) wrote :

Confirmed by other users on askubuntu.com:
http://askubuntu.com/questions/131459/window-decoration-theme-doesnt-change-back

Reported duplicate here: Bug #1093821

summary: - ambiance theme not loaded
+ installing subtitlecomposer breaks Ambiance theme window decoration
Revision history for this message
Philipp Gassmann (phiphi.g) wrote :

Reported it on the project on Github, where the development seems to be somewhat active.
https://github.com/maxrd2/subtitlecomposer/issues/1

But it is probably a packaging issue.

The original project on sourceforge seems dead:
https://sourceforge.net/projects/subcomposer/

Revision history for this message
Mladen Milinkovic (maxrd2) wrote :

what does these command output for you?

$ xdg-mime query filetype /usr/share/themes/Ambiance/metacity-1/close_focused_normal.png
$ xdg-mime query filetype /usr/share/themes/Ambiance/metacity-1/close.png

over here it says "image/png"

/usr/share/mime/packages/subtitlecomposer.xml contains this:

        <mime-type type="text/x-tmplayer">
                <comment>TMPlayer subtitles</comment>
                <sub-class-of type="text/plain"/>
                <generic-icon name="text-x-generic"/>
                <magic priority="100">
                        <match type="string" value="xx\:xx\:xx\:" mask="0x0000ff0000ff0000ff" offset="0"/>
                        <match type="string" value="xx\:xx\:xx\:" mask="0x0000ff0000ff0000ff" offset="9:256"/>
                </magic>
                <glob pattern="*.sub"/>
        </mime-type>

Revision history for this message
Mladen Milinkovic (maxrd2) wrote :

gvfs-info is detecting that file as:
....
  standard::content-type: text/x-tmplayer
  standard::fast-content-type: image/png

Think I've fixed this upstream.. can anyone try it please?
https://github.com/maxrd2/subtitlecomposer/issues/1

Try replacing /usr/share/mime/packages/subtitlecomposer.xml with this one: https://raw.github.com/maxrd2/subtitlecomposer/6528219ade1f2ca2d78b85a236397aa0d62583ee/src/main/subtitlecomposer.xml and then run:
$ sudo update-mime-database /usr/share/mime

After that running
$ gvfs-info /usr/share/themes/Ambiance/metacity-1/close_focused_normal.png | grep content-type
should give:
  standard::content-type: image/png
  standard::fast-content-type: image/png

Thanks!

Revision history for this message
Philipp Gassmann (phiphi.g) wrote :

Hi Mladen

Thanks for the update! your fix works.
I installed subtitlecomposer, logged out and in again > decorations are broken
exchanged the file as requested. logout/login again > decorations work

Tested on ubuntu 12.04

Revision history for this message
Mladen Milinkovic (maxrd2) wrote :

great.. fix is already commited upstream.. it will be included in next release

Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

affects: light-themes → ubuntu-themes (Ubuntu)
Changed in ubuntu-themes (Ubuntu):
status: New → Confirmed
Revision history for this message
Daniel van Vugt (vanvugt) wrote :

Thank you for reporting this bug to Ubuntu.
Ubuntu 12.04 (precise) reached end-of-life on April 28, 2017.

See this document for currently supported Ubuntu releases:
https://wiki.ubuntu.com/Releases

We appreciate that this bug may be old and you might not be interested in discussing it any more. But if you are then please upgrade to the latest Ubuntu version and re-test.

Changed in ubuntu-themes (Ubuntu):
status: New → Incomplete
Changed in subtitlecomposer (Ubuntu):
status: Confirmed → Incomplete
Revision history for this message
Launchpad Janitor (janitor) wrote :

[Expired for ubuntu-themes (Ubuntu) because there has been no activity for 60 days.]

Changed in ubuntu-themes (Ubuntu):
status: Incomplete → Expired
Revision history for this message
Launchpad Janitor (janitor) wrote :

[Expired for subtitlecomposer (Ubuntu) because there has been no activity for 60 days.]

Changed in subtitlecomposer (Ubuntu):
status: Incomplete → Expired
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.