|
|
2007-12-20
, 03:38
|
|
Posts: 111 |
Thanked: 31 times |
Joined on Nov 2007
|
#3
|
|
|
2007-12-20
, 03:54
|
|
|
Posts: 693 |
Thanked: 502 times |
Joined on Jul 2007
|
#4
|
|
|
2007-12-20
, 14:48
|
|
Posts: 111 |
Thanked: 31 times |
Joined on Nov 2007
|
#5
|
Sounds great... im looking forward to this gui archive program. Does your gui interface with libosso in order to receive the filename they clicked on or are you able to get that from a commandline somehow?
I would like to do something similar with torrent files, but havent figured out libosso yet.
|
|
2007-12-20
, 23:27
|
|
|
Posts: 693 |
Thanked: 502 times |
Joined on Jul 2007
|
#6
|
The key to getting it working is setting up the .desktop, .service, icon and mime type files correctly. When I'm done in the next day or two, you can browse my source tree.

Another alternative to writing a million little wrapper scripts for every conceivable command would be to write a mimetype manager that:
1. lets users create new and edit existing mimetypes and add associated icons
2. associates a command line tool with each mimetype
3. receives mime_open messages and spawns the associated command line tool with appropriate options/flags/switches
I'd rather have a 'shim' type wrapper app as you described... that would instantly open up so many possibilities, especially with multiple target possibilities (open in mplayer, kagu, etc) Would be great if there was such an app with a choice of launch method (launch via command line, launch via libosso).
Problem is I want to associate an icon with each mime type so that the user can easily recognize the compatible archives in the file manager. I recall doing something similar many moons ago in a regular linux gui app and it was as simple as suitably naming the icon after the mimetype and placing it in "/usr/share/icons/hicolor/XXX/mimetypes". e.g. for mimetype "application/x-compressed-tar" (i.e. tar.gz files) I created an icon with the following path: "/usr/share/icons/hicolor/scalable/mimetypes/gnome-icon-application-x-compressed-tar.png". This doesn't appear to work
Does anyone know what I'm doing wrong or how to do this correctly?