FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Ubuntu > Ubuntu User

 
 
LinkBack Thread Tools
 
Old 07-28-2011, 10:32 PM
Lucio M Nicolosi
 
Default Why can't I Edit desktop file from Nautilus?

On Thu, Jul 28, 2011 at 5:57 PM, Colin Law <clanlaw@googlemail.com> wrote:
> In ~/.local/share/applications are .desktop files. *If I view that
> folder in Nautilus and right click one of the files then I get an Open
> option but no Open With options so that I can open it in gedit (or
> whatever) for editing. *Is there a good reason for this? *This is the
> sort of behaviour one expects from an OS where the system assumes that
> it knows best, mentioning no names.
>
> I know I can edit it from the terminal, that is not the point of the question.
>
> Ubuntu 11.04.
>
> Colin


If I right click a .desktop file (10.10) I also get the "Scripts"
option from where I can call gedit-root, for instance. Isn't this
option available in 11.04?

L

--
Lucio M. Nicolosi, Eng.
Open Source Implementation
System and Applications
GNU/Linux

--
ubuntu-users mailing list
ubuntu-users@lists.ubuntu.com
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users
 
Old 07-28-2011, 11:13 PM
sktsee
 
Default Why can't I Edit desktop file from Nautilus?

On 07/28/2011 03:57 PM, Colin Law wrote:

In ~/.local/share/applications are .desktop files. If I view that
folder in Nautilus and right click one of the files then I get an Open
option but no Open With options so that I can open it in gedit (or
whatever) for editing. Is there a good reason for this? This is the
sort of behaviour one expects from an OS where the system assumes that
it knows best, mentioning no names.

I know I can edit it from the terminal, that is not the point of the question.



My wild guess is that it's to prevent users from accidentally
associating the application/x-desktop mime-type with an editor or some
other program. If that were to happen, clicking on, say,
shotwell.desktop file wouldn't launch the program shotwell, but instead
would open the shotwell.desktop file in gedit, assuming that's what you
associated .desktop files with. Moreover, any program you clicked on
the menu or on a panel launcher would do the same thing. For most users
unacquainted with where Gnome stores user configured mime-type
overrides, this problem would be rather difficult to reverse.


To open a .desktop file in a gui editor:

1. open gedit and simply drag from nautilus the .desktop file(s) you
want to edit into gedit's window.
2. in the nautilus side pane, change the view to "Information" and then
select a .desktop file. The pane should display a little of the .desktop
file info with the button "Open with Text Editor" under it. Clicking the
button opens it with gedit or whatever program you've got associated
with text/plain mime-type files.


--
sktsee


--
ubuntu-users mailing list
ubuntu-users@lists.ubuntu.com
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users
 
Old 07-28-2011, 11:24 PM
NoOp
 
Default Why can't I Edit desktop file from Nautilus?

On 07/28/2011 01:57 PM, Colin Law wrote:
> In ~/.local/share/applications are .desktop files. If I view that
> folder in Nautilus and right click one of the files then I get an Open
> option but no Open With options so that I can open it in gedit (or
> whatever) for editing. Is there a good reason for this? This is the
> sort of behaviour one expects from an OS where the system assumes that
> it knows best, mentioning no names.
>
> I know I can edit it from the terminal, that is not the point of the question.

You can open from gedit if you start gedit and use 'Open'. Or of course:

$ gedit <filename>.desktop

I suspect that Nautilus provides no edit association with .desktop files
because they are a '[Desktop Entry]' with an executable instruction. If
you right click one of the files & select 'Properties' you'll see that
it lists it as a 'desktop configuration file (application/x-desktop)'
and contains a 'Command:'.

One thing that's always puzzled me is that Nautilus doesn't even display
some files - example:

$ ls -al /home/gg/.local/share/applications
total 696
drwxr-xr-x 3 gg gg 12288 2011-07-28 13:10 .
drwx------ 30 gg gg 4096 2011-07-17 12:07 ..
-rw-r--r-- 1 gg gg 405 2010-05-19 21:19 AdobeReader.desktop
-rwxr-xr-x 1 gg gg 460 2011-05-23 20:07 alacarte-made-10.desktop

the alacarte-made-10.desktop file isn't displayed in Nautilus.



--
ubuntu-users mailing list
ubuntu-users@lists.ubuntu.com
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users
 
Old 07-29-2011, 12:49 AM
"Jeff G."
 
Default Why can't I Edit desktop file from Nautilus?

On 07/28/2011 04:24 PM, NoOp wrote:

<snip>


One thing that's always puzzled me is that Nautilus doesn't even display
some files - example:

$ ls -al/home/gg/.local/share/applications
total 696
drwxr-xr-x 3 gg gg 12288 2011-07-28 13:10 .
drwx------ 30 gg gg 4096 2011-07-17 12:07 ..
-rw-r--r-- 1 gg gg 405 2010-05-19 21:19 AdobeReader.desktop
-rwxr-xr-x 1 gg gg 460 2011-05-23 20:07 alacarte-made-10.desktop

the alacarte-made-10.desktop file isn't displayed in Nautilus.


as an academic exercise, I just looked at a file, thunderbird, in gedit
but in the opened file tab, it shows the filename as
alacarte-made-1.desktop.


looked at in terminal, the thunderbird file doesn't show, the
alacarte-made-1.desktop shows.


must be a nautilus thing...


--
ubuntu-users mailing list
ubuntu-users@lists.ubuntu.com
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users
 
Old 07-29-2011, 07:49 PM
Colin Law
 
Default Why can't I Edit desktop file from Nautilus?

On 29 July 2011 00:24, NoOp <glgxg@sbcglobal.net> wrote:
> [...]
> One thing that's always puzzled me is that Nautilus doesn't even display
> some files - example:
>
> $ ls -al /home/gg/.local/share/applications
> total 696
> drwxr-xr-x *3 gg * gg * 12288 2011-07-28 13:10 .
> drwx------ 30 gg * gg * *4096 2011-07-17 12:07 ..
> -rw-r--r-- *1 gg * gg * * 405 2010-05-19 21:19 AdobeReader.desktop
> -rwxr-xr-x *1 gg * gg * * 460 2011-05-23 20:07 alacarte-made-10.desktop
>
> the alacarte-made-10.desktop file isn't displayed in Nautilus.

It seems that Nautilus displays the file as if its name is that
defined in the Name= line from the file (if the file is executable).

Colin

--
ubuntu-users mailing list
ubuntu-users@lists.ubuntu.com
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users
 

Thread Tools




All times are GMT. The time now is 03:03 PM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org