Author Topic: minimize to notification area in gnome/ubuntu  (Read 5270 times)

0 Members and 2 Guests are viewing this topic.

Offline luna

  • Newbie
  • *
  • Posts: 5
    • View Profile
minimize to notification area in gnome/ubuntu
« on: May 03, 2007, 01:33:08 am »
i'm using gnome & alltray, but i can't get this to work. :(
alltray /home/gail/javaop/Core/JavaOp2.jar as a launcher Application or Application in Terminal command dont work. making a link dont work either since i cant seem to modify the command... and doing alltray /home/gail/javaop/Core/JavaOp2.jar gives an error:

Code: [Select]
gail@badassness:~$ alltray /home/gail/javaop/Core/JavaOp2.jar
/home/gail/javaop/Core/JavaOp2.jar: 3: Syntax error: ")" unexpected

putting sudo before that command makes no difference.

Offline Sidoh

  • x86
  • Hero Member
  • *****
  • Posts: 17634
  • MHNATY ~~~~~
    • View Profile
    • sidoh
Re: minimize to notification area in gnome/ubuntu
« Reply #1 on: May 03, 2007, 01:50:13 am »
Running a command as root rarely fixes syntax errors. :-\.

Also, should it not be

alltray "java -jar ~/javaop/Core/JavaOp2.jar" ?

You can't execute a jar directly in such a way, I don't think.

Offline luna

  • Newbie
  • *
  • Posts: 5
    • View Profile
Re: minimize to notification area in gnome/ubuntu
« Reply #2 on: May 06, 2007, 02:04:44 pm »
that command doesnt work in start up or running from terminal. sudo makes no difference....

Offline Sidoh

  • x86
  • Hero Member
  • *****
  • Posts: 17634
  • MHNATY ~~~~~
    • View Profile
    • sidoh
Re: minimize to notification area in gnome/ubuntu
« Reply #3 on: May 06, 2007, 03:06:42 pm »
that command doesnt work in start up or running from terminal. sudo makes no difference....

I don't understand the relevance of anything you've said.  If you don't have an X session started, why would you expect anything to be minimized to tray?

I didn't say that sudo should make a difference.  In fact, I implied the opposite.

Offline chuck

  • Full Member
  • ***
  • Posts: 335
  • Canadian Biathlete
    • View Profile
    • Chucks Blog
Re: minimize to notification area in gnome/ubuntu
« Reply #4 on: May 06, 2007, 04:45:09 pm »
Try this:

Quote
$ cat > execjavaop.sh
#!/bin/sh
java -jar /path/to/javaop.jar
^D
$ chmod +x execjavaop.sh
$ alltray ./execjavaop.sh

Your basicly trying to execute the .jar file as you would execute any program. That won't work on most linux systems.

And, by the way, sudo only gives you the ability to overcome permission errors. Infact, on a debian system, (Ubuntu is based on debian?) this will make X11 programs unable to connect to the display.
Chucks Blog
JavaOp2 Plugins

Quote
Error, keyboard not connected. Press F1 to continue.

Offline Sidoh

  • x86
  • Hero Member
  • *****
  • Posts: 17634
  • MHNATY ~~~~~
    • View Profile
    • sidoh
Re: minimize to notification area in gnome/ubuntu
« Reply #5 on: May 06, 2007, 08:57:59 pm »
The script, in effect, does the same thing I told him to do, yes?

I'm guessing he knows what sudo does but is perhaps misguided as to when it is a viable solution.

Offline chuck

  • Full Member
  • ***
  • Posts: 335
  • Canadian Biathlete
    • View Profile
    • Chucks Blog
Re: minimize to notification area in gnome/ubuntu
« Reply #6 on: May 07, 2007, 11:24:12 am »
The script, in effect, does the same thing I told him to do, yes?

I'm guessing he knows what sudo does but is perhaps misguided as to when it is a viable solution.
Yup.

I was like that before. I was bad an ran apache as root.... Luckly the machine was behind a firewall, otherwise it was cooked.
Chucks Blog
JavaOp2 Plugins

Quote
Error, keyboard not connected. Press F1 to continue.

Offline Joe

  • B&
  • Moderator
  • Hero Member
  • *****
  • Posts: 10319
  • In Soviet Russia, text read you!
    • View Profile
    • Github
Re: minimize to notification area in gnome/ubuntu
« Reply #7 on: May 11, 2007, 07:15:45 pm »
Try this:

Quote
$ cat > execjavaop.sh
#!/bin/sh
java -jar /path/to/javaop.jar
^D
$ chmod +x execjavaop.sh
$ alltray ./execjavaop.sh

Your basicly trying to execute the .jar file as you would execute any program. That won't work on most linux systems.

And, by the way, sudo only gives you the ability to overcome permission errors. Infact, on a debian system, (Ubuntu is based on debian?) this will make X11 programs unable to connect to the display.

I never had that issue, and I often ran 'sudo synaptic' (I think that's what the program was named, the package manager).
I'd personally do as Joe suggests

You might be right about that, Joe.


Offline chuck

  • Full Member
  • ***
  • Posts: 335
  • Canadian Biathlete
    • View Profile
    • Chucks Blog
Re: minimize to notification area in gnome/ubuntu
« Reply #8 on: May 11, 2007, 08:14:53 pm »
I never had that issue, and I often ran 'sudo synaptic' (I think that's what the program was named, the package manager).
Well, its just the way debian is for me. Basicly, KDM sets up X11 to only allow the user who started the session to connect programs to it, and only listens on a socket and localhost.
Chucks Blog
JavaOp2 Plugins

Quote
Error, keyboard not connected. Press F1 to continue.