Ticket #5 (closed Defect: fixed)

Opened 2 years ago

Last modified 4 months ago

.package file association in KDE

Reported by: UnFleshed One Assigned to: taj
Priority: High Milestone: 1.2.3
Component: main Version: 1.2.2
Severity: Normal Keywords: KDE; file association
Cc:

Description

When double clicking on .package files in Fedora Core 3 KDE, standard "open with" dialog will come up, so packages always have to be installed from terminal.

KDE version 3.3.0-5

This was reported in mail list by somebody, and the reason was known IIRC, but it still happens in 1.2.2 (I uninstalled autopackage and then run one of my own packages so it downloaded 1.2.2 support code)

Change History

03/27/07 13:02:21 changed by taj

  • owner changed from taj to isak.
  • component changed from main to frontend.

Sounds related to Ticket #4 (KDE 3.5.6). I seem to remember that Curtis also noticed this on Mandriva One (KDE). I think it must have to do with distro's patches because it works fine in a generic KDE 3.5.4.

03/27/07 13:02:35 changed by taj

  • owner changed from isak to taj.

03/27/07 13:40:47 changed by RedDwarf

Ok, if there are no objections we continue here.
Answering the questions from the mailing list:
- No, I don't think that packages have an Autopackage icon (not that I know how it looks). It looks like a shell script.
- No, I don't get a "Meta Info" tab.
- Yes, autopackage-frontend-qt file.package works.
- Output from package info autopackage-qt:

Short Name    : autopackage-qt
Display Name  : Interfaz utilizador Gráfico De Autopackage Qt
Root Name     : @autopackage.org/autopackage-qt:1.2.2
Version       : 1.2.2
Interface     : 0.0
Revision      : 1
Maintainer    : David Sansome <me@davidsansome.com>
License       : GNU General Public License Version 2
Root Install  : No
Database      : Sistema
Build Host    : moria.wildgarden.org
Build Date    : Tue Feb 20 00:04:20 2007
Install Date  : Mon Mar 26 16:18:30 2007
Install Size  : 368532
Packager      : David Sansome <me@davidsansome.com>
Repository    : http://ftp.sunsite.dk/projects/autopackage/1.2.2/autopackage-qt.xml
URL           : http://autopackage.org/
Summary       : Un frontend gráfico (Qt) para instalar los paquetes de Autopackage.

What means "Root Install : No"? It is installed like root. The files are in "/opt/kde3/...".

03/27/07 14:09:28 changed by RedDwarf

If I go to KControl->KDE Components->File Associations and add the application/x-autopackage type everything works correctly.

I don't really understand how this works, so in more detail:
- I added a new type application/x-autopackage
- Selected the "package" icon
- Put "Autopackage" in "Description"
- Added "*.package" to "Filename Patterns"
- Left "Application Preference Order" in blank.
Just after this nothing works, so I reboot. After the reboot everything work, and "Autopackage Software Installer (Qt)" was magically added to "Application Preference Order" without me doing nothing.

03/27/07 14:57:11 changed by UnFleshed One

BTW, in my case .package files have proper autopackage icon (cardboard box with blue circled arrow around)

03/27/07 15:00:51 changed by UnFleshed One

Also, file type has "*.package" file pattern, "Autopackage Software Package" description and nothing in application preference order.

03/27/07 18:24:56 changed by taj

Yeah, these are separate issues--sorry. RedDwarf?, check the comments in #4 for details on why your issue is happening.

For this bug, it sounds like KDE isn't finding the hidden .desktop that associates application/x-autopackage -> autopackage-launcher-qt. I'm not quite sure why. I'll look into it.

03/27/07 22:20:36 changed by curtis

  • milestone set to 1.2.3.

Moving to next available milestone.

03/29/07 13:20:41 changed by taj

  • status changed from new to assigned.

03/30/07 01:36:37 changed by taj

  • priority changed from High to Low.
  • component changed from frontend to main.
  • milestone changed from 1.2.3 to None.

I just tested on Fedora Core 6 + KDE 3.5.6 and everything works fine. .package files are associated. I also installed visual-ldd and I was able to right click on ELFs and open with visual-ldd.

Since Fedora Core 3/KDE 3.3 is fairly old (FC3 released Nov 04), I'm afraid this bug is a little lower on my list of priorities. Patches are welcome to fix this if anyone wants to debug it.

03/30/07 15:45:22 changed by UnFleshed One

  • priority changed from Low to High.
  • milestone changed from None to 1.2.3.

It is pretty funny actually, I guess newer KDEs are approaching a state of self awareness :). Soon there will be "Do what I want" buttons and all that :).

The bug is in /usr/share/applications/autopackage-launcher-gtk.desktop

3rd line should is

Category=System;

it should be

Categories=System;

I suspect the error was so common (I made it myself several times) so they now check for either of them.

03/31/07 16:56:32 changed by taj

  • status changed from assigned to closed.
  • resolution set to fixed.

Thank you for debugging this! I've fixed it in svn (r2301).

06/20/08 10:53:55 changed by add

Spindle, Stairs & Railings is a stair builder featuring high quality staircases and curved stairwells for the construction and renovation industry. http://www.jp-wrought-iron.com.cn Stair Supplies is your source for stair parts, iron baluster, iron balusters, wood balusters, handrails, railings, stair treads, stair parts