José Alburquerque | 1 Oct 2006 21:16
Picon

Re: Preserving window's minimized state between sessions

Tshepang Lekhonkhobe wrote:
> On 9/6/06, José Alburquerque <jaalburquerque <at> cox.net> wrote:
>> Hi all.  I'm running a GNU/Linux (Debian) system with GNOME 2.14.3 (I
>> just love the exquisite look, functionality and feel of the desktop
>> BTW!  I find I can get everything done easily and efficiently.)
>>
>> I have a short question:  When I log in, GNOME starts the windows which
>> I did not close in the previous session.  My question is:  Does anyone
>> know any way to have these windows "preserve" their minimized state so
>> that when the new session starts they are minimized?  Sometimes the new
>> windows sort of "clutter" my desktop and it'd be nice if I can start
>> them minimized.  Really appreciate any help!  Thanks!
>
> What I did was assign the Windows key to minimize all windows, instead
> of the awkward and default Ctrl+Alt+D.
>
Not bad.  I didn't say, but it's not really an inconvenience since GNOME 
is so useful regardless.  I'm sure future versions will add this 
functionality.  In the mean time, I'm still very pleased at GNOME's 
functionality! :-)

Thanks.

--
Sincerely
Jose Alburquerque
José Alburquerque | 1 Oct 2006 22:33
Picon

Openinig text files with international characters in nautilus

I have an interesting little question.  I have some text files in a 
folder with international character filenames (ie. the file names 
contain characters such as é,ñ,¡, etc.).  I try to open these files with 
vim from nautilus.  However, it seems that because of the "unusual" 
characters, vim cannot open the files.

If I issue the command (gvim "<filename>.txt") from a gnome-terminal 
(running bash), vim opens it with no problems and displays the name of 
the file (with the international characters) fine at the bottom.  (BTW,  
when I open from nautilus vim shows the filename but the international 
characters are translated to funny characters).

I've been able to find that in the gnome-terminal the shell variable 
"LANG" is defined to have the value "en_US.UTF-8".  If I unset this 
variable and attempt to vi, the filename displayed at the bottom of the 
vim window is again sort of "garbled" as occurs in nautilus.

This sort of leads me to believe that the LANG variable is not defined 
when gnome starts up but is defined in the terminal (I guess from my 
.bashrc).

Would anyone know how I might get nautilus to open these files 
correctly?  I'm running GNOME 2.14 and my system starts in X mode 
running gdm.

--

-- 
Sincerely
Jose Alburquerque
José Alburquerque | 1 Oct 2006 22:56
Picon

Re: Openinig text files with international characters in nautilus

José Alburquerque wrote:
> I have an interesting little question.  I have some text files in a 
> folder with international character filenames (ie. the file names 
> contain characters such as é,ñ,¡, etc.).  I try to open these files with 
> vim from nautilus.  However, it seems that because of the "unusual" 
> characters, vim cannot open the files.
>
> If I issue the command (gvim "<filename>.txt") from a gnome-terminal 
> (running bash), vim opens it with no problems and displays the name of 
> the file (with the international characters) fine at the bottom.  (BTW,  
> when I open from nautilus vim shows the filename but the international 
> characters are translated to funny characters).
>
> I've been able to find that in the gnome-terminal the shell variable 
> "LANG" is defined to have the value "en_US.UTF-8".  If I unset this 
> variable and attempt to vi, the filename displayed at the bottom of the 
> vim window is again sort of "garbled" as occurs in nautilus.
>
> This sort of leads me to believe that the LANG variable is not defined 
> when gnome starts up but is defined in the terminal (I guess from my 
> .bashrc).
>
> Would anyone know how I might get nautilus to open these files 
> correctly?  I'm running GNOME 2.14 and my system starts in X mode 
> running gdm.
>
>   
I just found out that the "LANG" variable has nothing to do with this.  
I issued the command 'LANG=en_US.UTF-8 nautilus --no-desktop' which 
brings up a nautilus window that exhibits the same behavior.  Anyone has 
(Continue reading)

Polonkai Gergely | 1 Oct 2006 23:04
Favicon
Gravatar

Re: Openinig text files with international characters in nautilus

Nautilus, as (as far as I know) all gnome programs use UTF-8 by default. However, maybe those files was created with a program which uses another charset, e.g one of the ISO charsets. So nautilus cannot view the name correctly, but vim can (since it uses your system-wide locale).
Nautilus passes a very funny filename in this case to programs, thus it is possible that the specific program won't even start.

The best way to correct this problem is to use UTF-8 as your system-wide locale, but doing this can be a pain.

Regards,
Gergely Polonkai

José Alburquerque írta:
José Alburquerque wrote:
I have an interesting little question. I have some text files in a folder with international character filenames (ie. the file names contain characters such as é,ñ,¡, etc.). I try to open these files with vim from nautilus. However, it seems that because of the "unusual" characters, vim cannot open the files. If I issue the command (gvim "<filename>.txt") from a gnome-terminal (running bash), vim opens it with no problems and displays the name of the file (with the international characters) fine at the bottom. (BTW, when I open from nautilus vim shows the filename but the international characters are translated to funny characters). I've been able to find that in the gnome-terminal the shell variable "LANG" is defined to have the value "en_US.UTF-8". If I unset this variable and attempt to vi, the filename displayed at the bottom of the vim window is again sort of "garbled" as occurs in nautilus. This sort of leads me to believe that the LANG variable is not defined when gnome starts up but is defined in the terminal (I guess from my .bashrc). Would anyone know how I might get nautilus to open these files correctly? I'm running GNOME 2.14 and my system starts in X mode running gdm.
I just found out that the "LANG" variable has nothing to do with this. I issued the command 'LANG=en_US.UTF-8 nautilus --no-desktop' which brings up a nautilus window that exhibits the same behavior. Anyone has any ideas? Much appreciate it.
_______________________________________________
gnome-list mailing list
gnome-list <at> gnome.org
http://mail.gnome.org/mailman/listinfo/gnome-list
José Alburquerque | 2 Oct 2006 00:18
Picon

Re: Openinig text files with international characters in nautilus

Polonkai Gergely wrote:
> Nautilus, as (as far as I know) all gnome programs use UTF-8 by 
> default. However, maybe those files was created with a program which 
> uses another charset, e.g one of the ISO charsets. So nautilus cannot 
> view the name correctly, but vim can (since it uses your system-wide 
> locale).
> Nautilus passes a very funny filename in this case to programs, thus 
> it is possible that the specific program won't even start.
>
> The best way to correct this problem is to use UTF-8 as your 
> system-wide locale, but doing this can be a pain.
>
> Regards,
> Gergely Polonkai
>
This answer would make complete sense to me except that the filenames 
appear fine in the nautilus window (international characters and all) 
perfectly fine.

Also, if I open the files with gedit (from nautilus) gedit opens them 
fine and displays their filenames properly.

Could nautilus display the filenames properly and yet not be able to 
pass the filenames appropriately?  Can gedit somehow "overcome" these 
character problems in a way that vim can't?  Thanks for your answer; I 
will try to see what I can do about my system locale.

--

-- 
Sincerely
Jose Alburquerque
José Alburquerque | 2 Oct 2006 00:58
Picon

Re: Openinig text files with international characters in nautilus

Joao Palhoto Matos wrote:
> A piece of advice:
>
> Do printenv in a terminal and let people know if
>
> GDM_LANG
>
> is set and to what value.
>
> This depends on your choice in the gdm login screen for language.
>
> Hopefully your trouble is just a choice of the C locale for language 
> (or most likely you never chose one) or  never installed appropriate 
> locale support.
>
> I cannot reproduce your problem. I have
> GDM_LANG=pt_PT.ISO-8859-1
>
> but I am an ultra conservative about using ISO-8859-1 which makes life 
> with pine, latex and php simpler.
>
> Duplicating a file in nautilus I got a filename with "cópia" which Vi 
> improved happily opened.
>
> On the face of it your problem is totally unrelated to gnome.
>
It seems that you are right about me never choosing a gdm locale (I 
don't recall ever having done this since my fresh install of my debian 
system).   When I do a 'printenv | grep -i gdm' I get:

jose <at> sweety:~$ printenv | grep -i gdm
GDM_XSERVER_LOCATION=local
GDMSESSION=default

so I don't have a GDM_LANG variable defined.  Do you think that if this 
variable is set at login (say to "C") it would fix my problem?  TIA.

--

-- 
Sincerely
Jose Alburquerque
José Alburquerque | 2 Oct 2006 05:20
Picon

Re: Openinig text files with international characters in nautilus

José Alburquerque wrote:
> Joao Palhoto Matos wrote:
>   
>> A piece of advice:
>>
>> Do printenv in a terminal and let people know if
>>
>> GDM_LANG
>>
>> is set and to what value.
>>
>> This depends on your choice in the gdm login screen for language.
>>
>> Hopefully your trouble is just a choice of the C locale for language 
>> (or most likely you never chose one) or  never installed appropriate 
>> locale support.
>>
>> I cannot reproduce your problem. I have
>> GDM_LANG=pt_PT.ISO-8859-1
>>
>> but I am an ultra conservative about using ISO-8859-1 which makes life 
>> with pine, latex and php simpler.
>>
>> Duplicating a file in nautilus I got a filename with "cópia" which Vi 
>> improved happily opened.
>>
>> On the face of it your problem is totally unrelated to gnome.
>>
>>     
> It seems that you are right about me never choosing a gdm locale (I 
> don't recall ever having done this since my fresh install of my debian 
> system).   When I do a 'printenv | grep -i gdm' I get:
>
> jose <at> sweety:~$ printenv | grep -i gdm
> GDM_XSERVER_LOCATION=local
> GDMSESSION=default
>
> so I don't have a GDM_LANG variable defined.  Do you think that if this 
> variable is set at login (say to "C") it would fix my problem?  TIA.
>
>   
I don't exactly know the specifics of what is going on, but I was able 
to solve this problem.  What I did first was to select a default 
language, English (USA) - American English (en_US.UTF-8), from the gdm 
login screen, which causes the GDM_LANG variable to be defined (along 
with a LANG variable):

jose <at> sweety:~$ printenv | grep LANG
LANG=en_US.UTF-8
GDM_LANG=en_US.UTF-8

Secondly (and this may be the most inexplicable in my solution), I added 
the actual command 'gvim -f' to the "Open With" tab of the "Properties" 
window of the text (*.txt) files in the directory that I'm working in.  
When I right click on the files and "Open With gvim", everything works 
perfectly fine.

I can see the name of the file fine in nautilus, when I 'ls' in a 
terminal, the name appears fine also.  And finally, the file opens fine 
in vim without any problems with parsing the filename (the filename 
appears fine at bottom of vi).

Can't say why this fixes my problem, but when I look at my 
/usr/share/applications/gvim.desktop file, the "Exec" field has "gvim -f 
%U".  I can only guess that there is an issue on my system with the "%U" 
part but don't know what it could be.  For now I'm satisfied that I can 
open the text files with one click. :-)  Thanks for suggestions!

--

-- 
Sincerely
Jose Alburquerque
Tshepang Lekhonkhobe | 2 Oct 2006 09:54
Picon
Gravatar

neat GNOME feature

Hello,
The user highlights some text and drags it into nautilus, then a file
containing that text is automatically created, prompting for a file
name.
Is this feature available available elsewhere outside GNOME and in
which package does it reside?
Tshepang Lekhonkhobe | 2 Oct 2006 14:04
Picon
Gravatar

UNDO framework

Hello,
Are there plans to implement an undo framework in nautilus for 2.17 or
is it still shelved?
Olav Vitters | 2 Oct 2006 18:25

Re: UNDO framework

On Mon, Oct 02, 2006 at 02:04:52PM +0200, Tshepang Lekhonkhobe wrote:
> Hello,
> Are there plans to implement an undo framework in nautilus for 2.17 or
> is it still shelved?

You probably want nautilus-list, not gnome-list.

--

-- 
Regards,
Olav

Gmane