PDA

View Full Version : [SOLVED] compiz --replace ccp & = illegal option


guitarist
May 31st, 2007, 08:11 PM
Hi all, I have a weird problem that I couldn't find anything about by searching.

When I start compiz, I can only pass single-character options such as:

[code:1abef]Usage: /usr/bin/compiz [-r <env|args>] [-v] [-h] [-i] [-f] [-d] [-w][/code:1abef]

when I try to run:

[code:1abef]compiz --replace ccp &[/code:1abef]

I get the following error:

[code:1abef]guitarist@ubuntu:~$ compiz --replace ccp &
[1] 7207
guitarist@ubuntu:~$ /usr/bin/compiz: illegal option -- -
Usage: /usr/bin/compiz [-r <env|args>] [-v] [-h] [-i] [-f] [-d] [-w]
-r outputs recommended values for either
enviromental variables, or arguments.
-v Verbose: Output the result of each individual test
-h Display this message
-i Ignore config file(s)
-f Force; This overwrites your existing config file.
-d Dry run: Do everything, but don't start.
-w Only start window decorator(s). One per screen.
Configuration
/usr/bin/compiz automatically stores configuration the first time you run it.
You can use that to override checks, or pass custom arguments.
To re-write the configuration, you can either use -f, to get one
based on your own settings, or -fi to create a fresh config.
guitarist@ubuntu:~$[/code:1abef]

The weirdest part is, if I just run 'compiz' with no options at all everything works, I'm guessing because I enabled all the right plugins with ccsm? So is this just the new way, or is it a bizarre error that works anyway? I just wonder if I'm missing anything by not passing the ccp plugin on the command line.

I'm using Trevino's latest packages (thanks Trevino!) (5/28) on Kubuntu Feisty.

Jupiter
May 31st, 2007, 08:51 PM
If you defined ccp as the backend plugin in
/home/user/.config/compiz-managerrc
then you don't need to pass ccp on execution.

All you need is
compiz --replace

guitarist
May 31st, 2007, 10:15 PM
OK, maybe I wasn't clear in my original post:

If I pass any parameters that are more than one character (i.e. --replace) I get the error mentioned above. It only allows the parameters shown above after: Usage:

Jupiter
May 31st, 2007, 10:24 PM
That is strange. Make sure you have dev-util/intltool
installed.

guitarist
May 31st, 2007, 10:50 PM
That is strange. Make sure you have dev-util/intltool
installed.

I don't have a package called 'dev-util' available, but I do have once called 'intltool' but it's not installed.

Here's what I see it to be:
[code:ddcaa]guitarist@ubuntu:~$ aptitude show intltool
Package: intltool
New: yes
State: not installed
Version: 0.35.5-0ubuntu2
Priority: optional
Section: devel
Maintainer: Ubuntu Desktop Team <ubuntu-desktop@lists.ubuntu.com>
Uncompressed Size: 360k
Depends: gettext (>= 0.10.36-1), patch, automake1.7 | automaken, perl,
libxml-parser-perl, file
Provides: xml-i18n-tools
Description: Utility scripts for internationalizing XML
Automatically extracts translatable strings from oaf, glade, bonobo ui,
nautilus theme and other XML files into the po files.

Automatically merges translations from po files back into .oaf files (encoding
to be 7-bit clean). The merging mechanism can also be extended to support other
types of XML files.

guitarist@ubuntu:~$
[/code:ddcaa]

I don't see what XML internationalization has to do with the command line parameters that /usr/bin/compiz will take.

But I'll try it anyway.

***

OK, installed intltool and tried again, still same error message. Since this isn't really a "problem" because compiz and all required plugins work, I'll just mark it up to alpha/beta packages and associated weirdness. Thought it might be a good thing to suss out for future use, though.

Jupiter
May 31st, 2007, 11:06 PM
intltool is a tool for extracting translatable strings from various sourcefiles
and is a dependency for compiling compiz properly

If you are using a startup script and named it compiz then you don't need to
give it any options either.

Deciare
June 3rd, 2007, 10:00 PM
I think you may be using a distribution where "compiz" has been renamed to something like "compiz.real". Try running that instead.

The reason I suspect this is because the output you were seeing for compiz is the same as what I get from running Kristian's compiz-manager script:
[quote="compiz-manager --help":3be2b]/opt/compcomm/bin/compiz-manager: illegal option -- -
Usage: /opt/compcomm/bin/compiz-manager [-r <env|args>] [-v] [-h] [-i] [-f] [-d] [-w]
-r outputs recommended values for either
enviromental variables, or arguments.
-v Verbose: Output the result of each individual test
-h Display this message
-i Ignore config file(s)
-f Force; This overwrites your existing config file.
-d Dry run: Do everything, but don't start.
-w Only start window decorator(s). One per screen.
[/quote:3be2b]
But when I run compiz, I receive the following output:
[quote="compiz --help":3be2b]Usage: compiz [--display DISPLAY] [--bg-image PNG] [--refresh-rate RATE]
[--fast-filter] [--indirect-rendering] [--loose-binding] [--replace]
[--sm-disable] [--sm-client-id ID] [--no-detection]
[--ignore-desktop-hints] [--only-current-screen] [--use-root-window]
[--version] [--help] [PLUGIN]...[/quote:3be2b]

guitarist
June 4th, 2007, 02:49 AM
As I noted above, I'm using Trevino's latest .deb packages from the "New naming convention...." thread.

And, yes, Deciare, I think you hit the nail on the head. Running 'compiz.real --help' displays the same thing you show when you run 'compiz --help'. I didn't know Trevino's packages had a script in place of the actual compiz. Thanks for clearing that up.