Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I'm trying to use the uniy launcher with progress bar.. but it doesn't work.. I just followed the first example on http://www.youtube.com/watch?v=wqGfsgz1Sl4&list=UUWUDCz-Q0m4qK7lkK4CevQA&index=4&feature=plcp and watched the code of the hello-unity ppa ... trying integration in my apps.. and it doesn't work.

What I did:

  • added from gi.repository import Unity;
  • added self.launcher = Unity.LauncherEntry.get_for_desktop_id ("protoborsa.desktop") in the init code of my window application.
  • added launcher.set_property("progress", 0.42) after my application is displayed
  • added launcher.set_property("progress_visible", True) after my application is displayed

and nothing happened after quickly run...

I tried to follow this also.. How do I make the launcher progress bar work with my application? but it didn't work for me.

many thanks.

share|improve this question
    
Can you provide a link to your code so I can see more of what it's doing? –  mhall119 Jul 6 '12 at 1:26
    
I will provide later, cause I don't have the code here with me.. –  dega1999 Jul 6 '12 at 7:00
    
here is the code of another sample:paste.ubuntu.com/1077705 –  dega1999 Jul 6 '12 at 7:18
    
@mhall119 I created a new ubuntu-application with the quickly command...for make a test, same result. This is the class called for the main window application paste.ubuntu.com/1077705 the method showMeProgress_click it's a callback to a click on a button on the window. The 2 print statements (progress start and progress end) are showed but nothing happened to the launcher. What am I doing wrong? there is a ustockquotes.desktop.in in the directory of the project..but not ustockquotes.desktop ... I am using quickly and I do quickly run to launch the project. Thanks you –  dega1999 Jul 6 '12 at 7:25
    
I don't know why but now, after I've copied the file project.desktop.in (project is the name of the quickly project) inside the project folder in ~/.local/share/applications/ it works. –  dega1999 Jul 7 '12 at 15:25
show 2 more comments

1 Answer

I don't know why but now, after I've copied the file myproject.desktop.in (myproject is the name of the quickly project) inside the project folder in ~/.local/share/applications/myproject.desktop, it works.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.