FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Ubuntu > Ubuntu User

 
 
LinkBack Thread Tools
 
Old 05-12-2012, 11:39 PM
Paul Smith
 
Default Launcher problems... bugs or am I just too stupid to get it?

I'm having a hard time working with the Launcher.

For example I have a proprietary application I use at work for source
code control. It has a Linux GUI client (written in Java with a shell
script wrapper to launch it) but it doesn't come with any desktop
integration at all, so I've written my own very simple .desktop file for
it that I've been using the Gnome Panel for years.

So now I've upgraded to Ubuntu 12.04 64bit and added the .desktop file
and I see the icon in the Dash. I click it and the application starts,
but sometimes no icon at all is added to the Launcher. Other times, I
get two empty spaces where icons would go, then the icon itself in a
third space; when I exit the app all three "spaces" are removed. Still
other times, I get just the single icon I expect. These seem to me to
pretty clearly be bugs but I can't come up with any reliable reproducer
(although I get bad behavior at least half the time).

Now if I right-click on the icon that is created (when it is) and "Lock
to Launcher", then I try to click on the icon in the Launcher, it throbs
a couple of times but my application is never started. I replaced the
application with a script that writes to a temp file and the temp file
is never created, so obviously it's not running the program that I
specified in my .desktop file. I have no idea what it IS running... is
there any way to see what actions the icons in the Launcher are bound
to?

Now if I instead open the Dash and drag the icon onto the Launcher, it
stays and when I click THAT my application does launch... yay! However,
it throbs (like it doesn't recognize that the application launched) and
then I get ANOTHER icon on the Launcher, put there by the application.
And every time I click the dragged/locked icon, instead of taking me to
the existing application instance it starts a new one. I checked the
desktop spec and it mentions setting StartupWMClass. Would that help?
How do I find out what the WM Class is for this application?

I can't figure out this new-fangled Launcher! It's behavior just
doesn't make sense to me. I just want an icon on the Launcher such that
when I click it, my application launches, I don't get extra icons in the
Launcher for it, and when I click the icon again it takes me back there
(the same behavior as the other icons in the launcher). Is that not
possible?

Any help?


--
ubuntu-users mailing list
ubuntu-users@lists.ubuntu.com
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users
 
Old 05-13-2012, 06:55 AM
John D Lamb
 
Default Launcher problems... bugs or am I just too stupid to get it?

On 13/05/12 00:39, Paul Smith wrote:
> I can't figure out this new-fangled Launcher! It's behavior just
> doesn't make sense to me. I just want an icon on the Launcher such that
> when I click it, my application launches, I don't get extra icons in the
> Launcher for it, and when I click the icon again it takes me back there
> (the same behavior as the other icons in the launcher). Is that not
> possible?
>
> Any help?

This looks like a Java-specific problem. Jabref, already in the
repositories, has similar problems. You can lock it to the launcher. But
it won’t restart from a launcher button in 11.10 or 12.04.

I have my own application that I’ve installed manually in the launcher
that can start a Java application. When the Java application starts a
new item, with the Java logo instead of the original one, appears in the
launcher and the application starts without any problems. I can lock
this item to the launcher. But I can’t then use the new item to restart
the original application.

I suspect the problem arises when one process uses an exec call to
replace itself with another, which is the natural choice for a shell
script starting a Java application. I don’t know the solution. But a
starting point might be to look for Java applications that work well
with launcher.

--
John D Lamb

--
ubuntu-users mailing list
ubuntu-users@lists.ubuntu.com
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users
 
Old 05-14-2012, 01:41 AM
Ric Moore
 
Default Launcher problems... bugs or am I just too stupid to get it?

On 05/12/2012 07:39 PM, Paul Smith wrote:

I'm having a hard time working with the Launcher.

For example I have a proprietary application I use at work for source
code control. It has a Linux GUI client (written in Java with a shell
script wrapper to launch it) but it doesn't come with any desktop
integration at all, so I've written my own very simple .desktop file for
it that I've been using the Gnome Panel for years.

So now I've upgraded to Ubuntu 12.04 64bit and added the .desktop file
and I see the icon in the Dash. I click it and the application starts,
but sometimes no icon at all is added to the Launcher. Other times, I
get two empty spaces where icons would go, then the icon itself in a
third space; when I exit the app all three "spaces" are removed. Still
other times, I get just the single icon I expect. These seem to me to
pretty clearly be bugs but I can't come up with any reliable reproducer
(although I get bad behavior at least half the time).

Now if I right-click on the icon that is created (when it is) and "Lock
to Launcher", then I try to click on the icon in the Launcher, it throbs
a couple of times but my application is never started. I replaced the
application with a script that writes to a temp file and the temp file
is never created, so obviously it's not running the program that I
specified in my .desktop file. I have no idea what it IS running... is
there any way to see what actions the icons in the Launcher are bound
to?

Now if I instead open the Dash and drag the icon onto the Launcher, it
stays and when I click THAT my application does launch... yay! However,
it throbs (like it doesn't recognize that the application launched) and
then I get ANOTHER icon on the Launcher, put there by the application.
And every time I click the dragged/locked icon, instead of taking me to
the existing application instance it starts a new one. I checked the
desktop spec and it mentions setting StartupWMClass. Would that help?
How do I find out what the WM Class is for this application?

I can't figure out this new-fangled Launcher! It's behavior just
doesn't make sense to me. I just want an icon on the Launcher such that
when I click it, my application launches, I don't get extra icons in the
Launcher for it, and when I click the icon again it takes me back there
(the same behavior as the other icons in the launcher). Is that not
possible?
If you installed xfce I wonder if you would get the icon behavior you
expect?? Ric




--
My father, Victor Moore (Vic) used to say:
"There are two Great Sins in the world...
..the Sin of Ignorance, and the Sin of Stupidity.
Only the former may be overcome." R.I.P. Dad.
http://linuxcounter.net/user/44256.html

--
ubuntu-users mailing list
ubuntu-users@lists.ubuntu.com
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users
 

Thread Tools




All times are GMT. The time now is 09:50 AM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org