BLAG

BLAG Forums
It is currently Sat Dec 20, 2014 10:23 pm

All times are UTC




Post new topic Reply to topic  [ 7 posts ] 
Author Message
PostPosted: Wed Jun 18, 2008 7:47 pm 
Offline

Joined: Thu Oct 06, 2005 3:49 pm
Posts: 186
My 70000 system needs some serious updating in the pgms that it offers for types of action - I would like to auto-associate some pgms with some file types.

So is there an easy way of doing this in Gnome?

b-


Top
 Profile  
 
 Post subject:
PostPosted: Wed Jun 18, 2008 9:40 pm 
Offline

Joined: Fri Jan 25, 2008 5:15 am
Posts: 125
Location: Western Australia
I don't think there is a simple way. Generally, to set file associations, I choose an example of a particular format, such as a .doc file, right-click on it, choose Properties, and choose which app to associate with it, such as Abiword. *shrug*


Top
 Profile  
 
 Post subject:
PostPosted: Wed Jun 18, 2008 11:42 pm 
Offline
Site Admin

Joined: Wed Mar 17, 2004 6:17 pm
Posts: 1340
Location: London, UK
As said by saint - http://library.gnome.org/users/user-gui ... es.html.en

_________________
BLAG 'em up!


Top
 Profile  
 
 Post subject:
PostPosted: Thu Jun 19, 2008 12:49 am 
Offline
Site Admin

Joined: Sun Mar 14, 2004 3:17 pm
Posts: 4492
Location: Loveland, Colorado, USA
Would be nice to make a good set of these for BLAG if you can make a list.


Top
 Profile  
 
 Post subject:
PostPosted: Thu Jun 19, 2008 1:02 am 
Offline
Site Admin

Joined: Wed Mar 17, 2004 6:17 pm
Posts: 1340
Location: London, UK
There are some more detailed docs, and they might imply that this process could be automated.
http://library.gnome.org/admin/system-a ... -0.html.en
http://library.gnome.org/admin/system-a ... -7.html.en

_________________
BLAG 'em up!


Top
 Profile  
 
 Post subject:
PostPosted: Thu Jun 19, 2008 1:39 am 
Offline
Site Admin

Joined: Wed Mar 17, 2004 6:17 pm
Posts: 1340
Location: London, UK
There's a simple way to find out all (or most) of the supported files on a BLAG server.
Code:
awk '/^# [[:alpha:]]+:[[:space:]]+file/' /usr/share/file/magic


This'll show you the first ten on the list
Code:
awk '/^# [[:alpha:]]+:[[:space:]]+file/' /usr/share/file/magic | head
# Localstuff:  file(1) magic for locally observed files
# acorn:  file(1) magic for files found on Acorn systems
# adi: file(1) magic for ADi's objects
# adventure: file(1) magic for Adventure game files
# Glulx:  file(1) magic for Glulx binaries.
# allegro:  file(1) magic for Allegro datafiles
# alliant:  file(1) magic for Alliant FX series a.out files
# amanda:  file(1) magic for amanda file format
# amigaos:  file(1) magic for AmigaOS binary formats:
# animation:  file(1) magic for animation/movie formats


The last ten
Code:
 awk '/^# [[:alpha:]]+:[[:space:]]+file/' /usr/share/file/magic | tail
# visx:  file(1) magic for Visx format files
# vms:  file(1) magic for VMS executables (experimental)
# vorbis:  file(1) magic for Ogg/Vorbis files
# VXL: file(1) magic for VXL binary IO data files
# wordprocessors:  file(1) magic fo word processors.
# chi:  file(1) magic for ChiWriter files
# xenix:  file(1) magic for Microsoft Xenix
# xwindows:  file(1) magic for various X/Window system file formats.
# zilog:  file(1) magic for Zilog Z8000.
# zyxel:  file(1) magic for ZyXEL modems


and there are 158 different file types ;-)

_________________
BLAG 'em up!


Top
 Profile  
 
 Post subject:
PostPosted: Thu Jun 19, 2008 2:09 am 
Offline

Joined: Thu Oct 06, 2005 3:49 pm
Posts: 186
Is there a flat file ref/doc for gnome?

b-


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 7 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 0 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group