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.

In the Guidelines for the Ubuntu App Showdown I can read:

The .desktop file is installed in the standard location /usr/share/applications, but must have the prefix 'extras-' added to its name. Example: extras-foobar.desktop for a package named foobar.

Then I renamed pyenglish.desktop.in to extras-pyenglish.desktop.in and changed the setup.py line 57 to: fin = file('extras-pyenglish.desktop.in', 'r')

And run this command for using /opt with Quickly:

quickly package --extras
  • The desktop file is included in /opt/extras.ubuntu.com/package/share/applications/.desktop
  • The bin file is included in /opt/extras.ubuntu.com/package/bin/

The problem is that Ubuntu not found the app in the system :(

How could I change this behavior? Thanks!

share|improve this question

1 Answer 1

up vote 2 down vote accepted

You don't need to rename the .desktop file, Quickly will take care of it for you.

The point of using Quickly is that you don't have to worry about the requirements and don't have to change files manually, as Quickly will automate it transparently for you.

So I would recommend undoing the changes in setup.py and renaming the .desktop file back to the original pyenglish.desktop.in, and then run quickly package --extras again.

After that, the .desktop and binary file locations should be:

  • /usr/share/applications/extras-pyenglish.desktop
  • /opt/extras.ubuntu.com/pyenglish/bin/pyenglish

That will allow you starting PyEnglish from the Unity Dash as usual. Note that if you want to start it from the terminal, you'll either need to call it explicitly as /opt/extras.ubuntu.com/pyenglish/bin/pyenglish or add /opt/extras.ubuntu.com/pyenglish/bin/ to your $PATH

share|improve this answer
    
Thanks ;) Works perfect! –  costales Jul 5 '12 at 15:16

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.