upstart-app-launch-desktop hook fails when ~/.local/share/applications doesn't exist

Bug #1215478 reported by Loïc Minier
14
This bug affects 2 people
Affects Status Importance Assigned to Milestone
upstart-app-launch (Ubuntu)
Fix Released
High
Ted Gould

Bug Description

Hi,

While debugging installation of click packages with new r/o images, I tried:
wget https://public.apps.ubuntu.com/download/com.ubuntu.developer.mhall119/xda-developers-app/com.ubuntu.developer.mhall119.xda-developers-app-0.1.4.click?noauth=1
click install --user=phablet com.ubuntu.developer.mhall119.xda-developers-app-0.1.4.click\?noauth\=1 --force-missing-framework

and that generated these warnings:
** (process:2009): WARNING **: Unable to read directory '/home/phablet/.local/share/applications': Error opening directory
              '/home/phablet/.local/share/applications': No such file or directory
** (process:2009): WARNING **: Unable to write out desktop file to
              '/home/phablet/.local/share/applications/com.ubuntu.developer.mhall119.xda-developers-app_xda-developers_0.1.4.desktop': Failed to create file
              '/home/phablet/.local/share/applications/com.ubuntu.developer.mhall119.xda-developers-app_xda-developers_0.1.4.desktop.Z0H21W': No such file or directory

and indeed .desktop files were missing.

I think the desktophook doesn't create the .local dirs when needed

Cheers,

Tags: appstore

Related branches

Loïc Minier (lool)
Changed in click (Ubuntu):
importance: Undecided → High
Revision history for this message
Loïc Minier (lool) wrote :

This might be due to a broken/old manifest; need to verify this

Revision history for this message
Colin Watson (cjwatson) wrote :

These error messages appear to come from upstart-app-launch's hook, not from click itself. "click desktophook" doesn't have this bug.

affects: click (Ubuntu) → upstart-app-launch (Ubuntu)
Revision history for this message
Loïc Minier (lool) wrote :

I've just confirmed I could reproduce this with:
click hook remove upstart-app-launch-desktop
rm .local/share/applications/ -rf
click hook install upstart-app-launch-desktop

I get tons of:
** (process:2410): WARNING **: Unable to read directory '/home/phablet/.local/share/applications': Error opening directory '/home/phablet/.local/share/applications': No such file or directory

** (process:2410): WARNING **: Unable to write out desktop file to '/home/phablet/.local/share/applications/com.ubuntu.stock-ticker-mobile_stock-ticker-mobile_0.3.7ubuntu1.desktop': Failed to create file '/home/phablet/.local/share/applications/com.ubuntu.stock-ticker-mobile_stock-ticker-mobile_0.3.7ubuntu1.desktop.H1I51W': No such file or directory

** (process:2413): WARNING **: Unable to read directory '/home/phablet/.local/share/applications': Error opening directory '/home/phablet/.local/share/applications': No such file or directory

** (process:2413): WARNING **: Unable to write out desktop file to '/home/phablet/.local/share/applications/com.ubuntu.stock-ticker-mobile_stock-ticker-mobile_0.3.7ubuntu1.desktop': Failed to create file '/home/phablet/.local/share/applications/com.ubuntu.stock-ticker-mobile_stock-ticker-mobile_0.3.7ubuntu1.desktop.FNVI2W': No such file or directory

but if I mkdir .local/share/applications/, I don't.

Cheers,

summary: - desktophook fails when ~/.local/share/applications doesn't exist
+ upstart-app-launch-desktop hook fails when ~/.local/share/applications
+ doesn't exist
Ted Gould (ted)
Changed in upstart-app-launch (Ubuntu):
status: New → In Progress
assignee: nobody → Ted Gould (ted)
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package upstart-app-launch - 0.1+13.10.20130905-0ubuntu1

---------------
upstart-app-launch (0.1+13.10.20130905-0ubuntu1) saucy; urgency=low

  [ Ted Gould ]
  * Making sure to look for the application directory. (LP: #1215478)
  * Handle click errors by just not setting the value.

  [ Ubuntu daily release ]
  * Automatic snapshot from revision 48
 -- Ubuntu daily release <email address hidden> Thu, 05 Sep 2013 09:06:43 +0000

Changed in upstart-app-launch (Ubuntu):
status: In Progress → Fix Released
Colin Watson (cjwatson)
tags: added: appstore
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.