[Touch-packages] [Bug 1333215] Re: Unable to find keyfile for application: Does not look for .desktop files in click pkgdir

2014-11-01 Thread Martin Pitt
This bug has not been fixed. The reproducer in comment 1 still proves
that (in current vivid). That reproducer is a bit complicated, but I
wanted to have one which doesn't require an actual phone. But you can
easily reproduce that on an actual phone, too. Since I don't have
another click at hand, I just use the calculator and pretend it wasn't
installed already:

Uninstall the preinstalled calculator and remove the cache:

sudo rm -r /usr/share/click/preinstalled/com.ubuntu.calculator
rm ~/.cache/ubuntu-app-launch/desktop/com.ubuntu.calculator_calculator_*.desktop

It's now gone from click list. Now install it again from an actual
.click:

wget 
http://people.canonical.com/~pitti/tmp/com.ubuntu.calculator_1.3.283_all.click
sudo click install --all-users --allow-unauthenticated 
com.ubuntu.calculator_1.3.283_all.click

There's an error about Could not parse click manifest. for a
mismatching version, but that's fine. click list should now show that
com.ubuntu.calculator1.3.283 is installed.

Note that ~ .cache/ubuntu-app-launch/desktop/ doesn't have a cached
entry for the calculator, as it was installed in a running session. And
it indeed can't be started due to that bug:

$ ubuntu-app-launch `ubuntu-app-triplet com.ubuntu.calculator`

** (process:5499): WARNING **: Unable to find keyfile for application
'com.ubuntu.calculator_calculator_1.3.283'

Clicking on the calculator icon in the dash doesn't work either.

** Changed in: ubuntu-app-launch
   Status: Invalid = Confirmed

** Changed in: ubuntu-app-launch (Ubuntu)
   Status: Invalid = Triaged

** Changed in: click (Ubuntu)
   Status: Invalid = New

** Summary changed:

- Unable to find keyfile for application: Does not look for .desktop files in 
click pkgdir
+ Unable to find keyfile for application: clicks installed in current session 
don't create UAL cache, and UAL does not look for .desktop files in click pkgdir

-- 
You received this bug notification because you are a member of Ubuntu
Touch seeded packages, which is subscribed to click in Ubuntu.
https://bugs.launchpad.net/bugs/1333215

Title:
  Unable to find keyfile for application: clicks installed in current
  session don't create UAL cache, and UAL does not look for .desktop
  files in click pkgdir

Status in Ubuntu Application Launcher:
  Confirmed
Status in “click” package in Ubuntu:
  New
Status in “ubuntu-app-launch” package in Ubuntu:
  Triaged

Bug description:
  For testing/autopkgtest I want/need to run click apps and their tests
  in a schroot or container, as the turnaround with real phones and the
  emulator is way too large. But in a container, ubuntu-app-launch fails
  with

  $ ubuntu-app-launch `ubuntu-app-triplet com.ubuntu.calculator`

  ** (process:766): WARNING **: Unable to find keyfile for application 
'com.ubuntu.calculator_calculator_1.3.283'
  init: application-legacy 
(com.ubuntu.calculator_calculator_1.3.283-1403523098604203) pre-start process 
(770) terminated with status 1

  In strace I see that it looks for the .desktop file in the following
  locations:


/home/ubuntu/.cache/ubuntu-app-launch/desktop/com.ubuntu.calculator_calculator_1.3.283.desktop

/home/ubuntu/.local/share/applications/com.ubuntu.calculator_calculator_1.3.283.desktop

/usr/local/share/applications/com.ubuntu.calculator_calculator_1.3.283.desktop
/usr/share/applications/com.ubuntu.calculator_calculator_1.3.283.desktop

  but not in the click dir:

  $ click pkgdir com.ubuntu.calculator
  /opt/click.ubuntu.com/.click/users/@all/com.ubuntu.calculator

  The workaround is to create the symlink manually, then it works:

  $  ln -s `click pkgdir com.ubuntu.calculator`/*.desktop 
.cache/ubuntu-app-launch/desktop/`ubuntu-app-triplet 
com.ubuntu.calculator`.desktop
  $ ubuntu-app-launch `ubuntu-app-triplet com.ubuntu.calculator`

  But that's certainly not something that autopkgtest should do.

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu-app-launch/+bug/1333215/+subscriptions

-- 
Mailing list: https://launchpad.net/~touch-packages
Post to : touch-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~touch-packages
More help   : https://help.launchpad.net/ListHelp


[Touch-packages] [Bug 1333215] Re: Unable to find keyfile for application: Does not look for .desktop files in click pkgdir

2014-10-31 Thread Ted Gould
I think this bug has been fixed and is just old. Marking as invalid
across the board.

** Changed in: ubuntu-app-launch (Ubuntu)
   Status: Incomplete = Invalid

** Changed in: click (Ubuntu)
   Status: New = Invalid

** Changed in: ubuntu-app-launch
   Status: Incomplete = Invalid

-- 
You received this bug notification because you are a member of Ubuntu
Touch seeded packages, which is subscribed to click in Ubuntu.
https://bugs.launchpad.net/bugs/1333215

Title:
  Unable to find keyfile for application: Does not look for .desktop
  files in click pkgdir

Status in Ubuntu Application Launcher:
  Invalid
Status in “click” package in Ubuntu:
  Invalid
Status in “ubuntu-app-launch” package in Ubuntu:
  Invalid

Bug description:
  For testing/autopkgtest I want/need to run click apps and their tests
  in a schroot or container, as the turnaround with real phones and the
  emulator is way too large. But in a container, ubuntu-app-launch fails
  with

  $ ubuntu-app-launch `ubuntu-app-triplet com.ubuntu.calculator`

  ** (process:766): WARNING **: Unable to find keyfile for application 
'com.ubuntu.calculator_calculator_1.3.283'
  init: application-legacy 
(com.ubuntu.calculator_calculator_1.3.283-1403523098604203) pre-start process 
(770) terminated with status 1

  In strace I see that it looks for the .desktop file in the following
  locations:


/home/ubuntu/.cache/ubuntu-app-launch/desktop/com.ubuntu.calculator_calculator_1.3.283.desktop

/home/ubuntu/.local/share/applications/com.ubuntu.calculator_calculator_1.3.283.desktop

/usr/local/share/applications/com.ubuntu.calculator_calculator_1.3.283.desktop
/usr/share/applications/com.ubuntu.calculator_calculator_1.3.283.desktop

  but not in the click dir:

  $ click pkgdir com.ubuntu.calculator
  /opt/click.ubuntu.com/.click/users/@all/com.ubuntu.calculator

  The workaround is to create the symlink manually, then it works:

  $  ln -s `click pkgdir com.ubuntu.calculator`/*.desktop 
.cache/ubuntu-app-launch/desktop/`ubuntu-app-triplet 
com.ubuntu.calculator`.desktop
  $ ubuntu-app-launch `ubuntu-app-triplet com.ubuntu.calculator`

  But that's certainly not something that autopkgtest should do.

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu-app-launch/+bug/1333215/+subscriptions

-- 
Mailing list: https://launchpad.net/~touch-packages
Post to : touch-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~touch-packages
More help   : https://help.launchpad.net/ListHelp


Re: [Touch-packages] [Bug 1333215] Re: Unable to find keyfile for application: Does not look for .desktop files in click pkgdir

2014-07-10 Thread Martin Pitt
Ted Gould [2014-07-10 19:01 -]:
 If the user session is open (for instance on the phone) the Click
 hook is run immediately on install and the cache is up-to-date.

Ah ok, so that seems to be the bit which is broken in some cases then?

Thanks for the explanation!

Martin

-- 
You received this bug notification because you are a member of Ubuntu
Touch seeded packages, which is subscribed to click in Ubuntu.
https://bugs.launchpad.net/bugs/1333215

Title:
  Unable to find keyfile for application: Does not look for .desktop
  files in click pkgdir

Status in Ubuntu Application Launcher:
  Incomplete
Status in “click” package in Ubuntu:
  New
Status in “ubuntu-app-launch” package in Ubuntu:
  Incomplete

Bug description:
  For testing/autopkgtest I want/need to run click apps and their tests
  in a schroot or container, as the turnaround with real phones and the
  emulator is way too large. But in a container, ubuntu-app-launch fails
  with

  $ ubuntu-app-launch `ubuntu-app-triplet com.ubuntu.calculator`

  ** (process:766): WARNING **: Unable to find keyfile for application 
'com.ubuntu.calculator_calculator_1.3.283'
  init: application-legacy 
(com.ubuntu.calculator_calculator_1.3.283-1403523098604203) pre-start process 
(770) terminated with status 1

  In strace I see that it looks for the .desktop file in the following
  locations:


/home/ubuntu/.cache/ubuntu-app-launch/desktop/com.ubuntu.calculator_calculator_1.3.283.desktop

/home/ubuntu/.local/share/applications/com.ubuntu.calculator_calculator_1.3.283.desktop

/usr/local/share/applications/com.ubuntu.calculator_calculator_1.3.283.desktop
/usr/share/applications/com.ubuntu.calculator_calculator_1.3.283.desktop

  but not in the click dir:

  $ click pkgdir com.ubuntu.calculator
  /opt/click.ubuntu.com/.click/users/@all/com.ubuntu.calculator

  The workaround is to create the symlink manually, then it works:

  $  ln -s `click pkgdir com.ubuntu.calculator`/*.desktop 
.cache/ubuntu-app-launch/desktop/`ubuntu-app-triplet 
com.ubuntu.calculator`.desktop
  $ ubuntu-app-launch `ubuntu-app-triplet com.ubuntu.calculator`

  But that's certainly not something that autopkgtest should do.

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu-app-launch/+bug/1333215/+subscriptions

-- 
Mailing list: https://launchpad.net/~touch-packages
Post to : touch-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~touch-packages
More help   : https://help.launchpad.net/ListHelp