Sponsored Content
Special Forums UNIX Desktop Questions & Answers How to associate files with app.? In GNOME. Post 302887598 by fpmurphy on Sunday 9th of February 2014 09:35:15 AM
Old 02-09-2014
I have not tested this but one possible way would be to do something like the following:
Code:
touch ~/.local/share/applications/defaults.list

and add the following lines to ~/.local/share/applications/defaults.list
Code:
[Default Applications]
text/plain=vim.desktop

The above is a fairly crude association. For finer grained association, you need to use desktop entries. See the Desktop Entry Specification.
This User Gave Thanks to fpmurphy For This Post:
 

9 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Associate files to a prgm in solaris

Does anyone know how to associate a file to a program in solaris 8(running CDE). I use my filemgr in solaris and have some .jpg files that are associated with the old openwindows imagetool, so when I dubbleclick the .jpg-file imagetool opens. How and where can I change this to another program... (0 Replies)
Discussion started by: tonlu
0 Replies

2. UNIX for Dummies Questions & Answers

Problems associate with upgrade

Dear all, We are planning on upgrading our current HP unix 64 bites from version 11.0 to 11.11. I would like to find out all the possible problems that we will encounter especially on the application side. Can anyone provide me with list(s) or link(s) where I can find out more information? ... (0 Replies)
Discussion started by: wujee
0 Replies

3. UNIX for Dummies Questions & Answers

Possible to use a Java app with dll files on Unix-systems

Hi... I have build a program for the Velleman K8000 interface card, in java, which works just fine in windows, but now I want to use the program on a Unix-System. Is it possible to somehow convert the dll file to a format that Unix supports, or do I have to find another way? Dll-file:... (3 Replies)
Discussion started by: Scorp-D
3 Replies

4. OS X (Apple)

Terminal.app keeps creating copies of my settings files

Under Leopard, I like to conveniently open Terminal windows onto remote systems. I've created several settings files in Terminal, one for each remote system that I want to access. To open window, I right-click on the Terminal icon in the Dock, expand the "New Window" menu item, and select the... (0 Replies)
Discussion started by: siemsen
0 Replies

5. Programming

Populating Associate Arrays in PHP

I'm not very good at associative arrays; and working on this PHP code has got me a bit stumped. My goal is to populate a (multidimensional) associative array in a PHP while look after a MySQL query. The code fragment looks like this: while($campaign_row = mysql_fetch_array($campaigninfo)) { ... (9 Replies)
Discussion started by: Neo
9 Replies

6. Shell Programming and Scripting

Backup & restore Gnome Desktop and all settings in Gnome

Hi I'm looking for scripts to backup & restore Gnome Desktop and all settings in Gnome. (0 Replies)
Discussion started by: ccc
0 Replies

7. Shell Programming and Scripting

Script to run files with an app

hello, I need help in Unix scripting I have a whole list of file name in a Input file. I need to run the command iteratively and output the result into a text file e.g While read < Input file ; do QUERY filenane done > output.txt Appreciate your help Thank you Suhas;) (8 Replies)
Discussion started by: Suhas Kurse
8 Replies

8. Red Hat

Unable to get a Xterm or X app to appear under a Linux Gnome Desktop

I want to have a xterm or xapplication from a Solaris client to appear on my RHEL Server running GNOME desktop. It may sound easy at first but, I have done the basics and I be stuck. Have Tried: Linux - logged in as root, open a Terminal and did a echo $DISPLAY and it reports back :0.0 I... (7 Replies)
Discussion started by: mrmurdock
7 Replies

9. Programming

Wuhan Coronavirus Status App for China - Rapid Prototype using MQTT and the IoT OnOff IOS App

With a little bit of work, was able to build a nice "Wuhan Coronavirus Status" app using MQTT and the IoT-OnOff app. More on this technique here: ESP32 (ESP-WROOM-32) as an MQTT Client Subscribed to Linux Server Load Average Messages The result turned out nice, I think. I like the look and... (10 Replies)
Discussion started by: Neo
10 Replies
DESKTOP-FILE-VALIDATE(1)				      General Commands Manual					  DESKTOP-FILE-VALIDATE(1)

NAME
desktop-file-validate - Validate desktop entry files SYNOPSIS
desktop-file-validate [--no-warn-deprecated] [--warn-kde] FILE... DESCRIPTION
The desktop-file-validate program is a tool to validate desktop entry files according to the Desktop Entry specification 1.0. The specification describes a file format to provide information such as name, icon and description for an application. Such a file can then be used as an application launcher and to display the application in the applications menu. For information about the Desktop Entry specification, see http://freedesktop.org/wiki/Specifications/desktop-entry-spec. The desktop entry files are commonly called desktop files. OPTIONS
The following options are supported: --no-warn-deprecated Do not warn about usage of deprecated items that were defined in previous versions of the specification. --warn-kde Warn about usage of KDE extensions to the specification. This includes the use of the KDE Desktop Entry group, of the ServiceTypes, DocPath, Keywords, InitialPreference, Dev, FSType, MountPoint, ReadOnly, UnmountIcon keys, or of the Service, ServiceType and FSDe- vice types. BUGS
If you find bugs in the desktop-file-validate program, please report these on https://bugs.freedesktop.org. SEE ALSO
desktop-file-edit(1) desktop-file-install(1) FREEDESKTOP.ORG DESKTOP-FILE-VALIDATE(1)
All times are GMT -4. The time now is 04:14 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy