[Bug 1122853] Re: Clicking the xchat indicator starts a new instance

2018-10-03 Thread Steven Maddox
Flock doesn't seem to be needed, this worked for me...

sed -i 's/\(--existing \)%U/\1-c '\''gui show'\''/'
/usr/share/applications/hexchat.desktop

Essentially it just changes...

hexchat --existing %U

To...

hexchat --existing -c 'gui show'

The '--existing' part is meant to run a URL or a command in an existing
copy of HexChat - so the %U is interpreted as a URL it doesn't
comprehend so I think that makes the whole '--existing' argument invalid
(so it opens a whole new copy, as though '--existing' wasn't specified).
But putting '--existing -c' makes it run a command, that command being
to bring the window to the foreground.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1122853

Title:
  Clicking the xchat indicator starts a new instance

To manage notifications about this bug go to:
https://bugs.launchpad.net/xchat-indicator/+bug/1122853/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 1122853] Re: Clicking the xchat indicator starts a new instance

2018-03-27 Thread Ken VanDine
** Changed in: xchat-indicator (Ubuntu)
 Assignee: Ken VanDine (ken-vandine) => (unassigned)

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1122853

Title:
  Clicking the xchat indicator starts a new instance

To manage notifications about this bug go to:
https://bugs.launchpad.net/xchat-indicator/+bug/1122853/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 1122853] Re: Clicking the xchat indicator starts a new instance

2015-03-31 Thread Acho Arnold
@Oleg I created an account here just to say 'THANK YOU FOR THE WORKAROUND'!!
It has helped me alot.

P.S  I use ubuntu 14.04

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1122853

Title:
  Clicking the xchat indicator starts a new instance

To manage notifications about this bug go to:
https://bugs.launchpad.net/xchat-indicator/+bug/1122853/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 1122853] Re: Clicking the xchat indicator starts a new instance

2014-08-29 Thread Oleg
Indicator will reload modified desktop file after reboot (or at least
logout/logon)

The only hardcoded command is xchat.desktop, so if it works for dash,
it should work for indicator either

P.S. I have Ubuntu 14.04, i didn't try this workaround on anything else

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1122853

Title:
  Clicking the xchat indicator starts a new instance

To manage notifications about this bug go to:
https://bugs.launchpad.net/xchat-indicator/+bug/1122853/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 1122853] Re: Clicking the xchat indicator starts a new instance

2014-08-28 Thread Tory Gaurnier
@Oleg
Your workaround works, but you should note it only works when launching from 
the shortcut in the application menu (Unity dash), if you open it from the 
indicator it still launches a new instance.

Unfortunately the indicator most likely has the command hard coded into
it so there's probably no way to apply this workaround to it, if anyone
has an idea how it would be greate.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1122853

Title:
  Clicking the xchat indicator starts a new instance

To manage notifications about this bug go to:
https://bugs.launchpad.net/xchat-indicator/+bug/1122853/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 1122853] Re: Clicking the xchat indicator starts a new instance

2014-08-11 Thread Oleg
Looks like xchat-indicator works like it should, the problem is
somewhere between messaging menu and xchat (xchat can't use the same
instance, it create new one every time you start it, and messaging menu
doesn't care)


Here is my workaround

1) open /usr/share/applications/xchat.desktop with a text editor
2) comment line Exec=
3) add new line:
Exec=sh -c flock -n -x /var/run/lock/xchat.lock -c xchat || xchat --existing 
-c 'gui show'

Hope this helps

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1122853

Title:
  Clicking the xchat indicator starts a new instance

To manage notifications about this bug go to:
https://bugs.launchpad.net/xchat-indicator/+bug/1122853/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 1122853] Re: Clicking the xchat indicator starts a new instance

2013-07-29 Thread Joe
If only I had the knowledge.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1122853

Title:
  Clicking the xchat indicator starts a new instance

To manage notifications about this bug go to:
https://bugs.launchpad.net/xchat-indicator/+bug/1122853/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 1122853] Re: Clicking the xchat indicator starts a new instance

2013-07-28 Thread Tigran Gabrielyan
Is there any updates on this bug?

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1122853

Title:
  Clicking the xchat indicator starts a new instance

To manage notifications about this bug go to:
https://bugs.launchpad.net/xchat-indicator/+bug/1122853/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 1122853] Re: Clicking the xchat indicator starts a new instance

2013-07-28 Thread Eric Draven
tigran
 No updates seams that this bug will continue being a bug for a long time 
unless someone with scripting knowledge gets bored enough to fix it.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1122853

Title:
  Clicking the xchat indicator starts a new instance

To manage notifications about this bug go to:
https://bugs.launchpad.net/xchat-indicator/+bug/1122853/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 1122853] Re: Clicking the xchat indicator starts a new instance

2013-05-31 Thread Radu Camerzan
A bug was opened related to this one:
https://bugs.launchpad.net/ubuntu/+source/xchat/+bug/1185809

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1122853

Title:
  Clicking the xchat indicator starts a new instance

To manage notifications about this bug go to:
https://bugs.launchpad.net/xchat-indicator/+bug/1122853/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs