[chromium-dev] My Chrome Application Shortcut app won't always receive focus when opened

2009-10-11 Thread Philipp Lenssen

For now I'm down to two issues with my Chrome app text editor Netpadd
B (http://blogoscoped.com/archive/2009-10-04-n43.html). While not
having Chrome show Fixedsys is still an issue, I'm currently using a
programming-optimized font based on Google's Droid font. Which brings
me to my for now remaining question:

Q: On Windows Vista, my app only sometimes gets focused when I double-
click a Chrome App connected file. At other times, it will open but
not be focused, i.e. quietly rest in the task bar having me to click
it again there.


For reference, below is the regedit (.reg) file used to associate a
file type to open with my particular Chrome app. FWIW using a -start-
maximized parameter doesn't solve the issue. Also, in the app itself,
in JavaScript, I'm also using a textfield.focus() call.

--

Windows Registry Editor Version 5.00

; TXT

[-HKEY_LOCAL_MACHINE\Software\Classes\.txt]
[-HKEY_CURRENT_USER\Software\Classes\.txt]
[-HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer
\FileExts\.txt]

[HKEY_CLASSES_ROOT\.txt]
@=txt_auto_file

[HKEY_CLASSES_ROOT\txt_auto_file]
@=Web Search

[HKEY_CLASSES_ROOT\txt_auto_file\shell]

[HKEY_CLASSES_ROOT\txt_auto_file\shell\open]

[HKEY_CLASSES_ROOT\txt_auto_file\shell\open\command]
@=\C:\\Users\\[johndoe]\\AppData\\Local\\Google\\Chrome\\Application\
\chrome.exe\ -disable-popup-blocking -enable-remote-fonts -disable-
plugins -disable-java --app=\http://localhost/netpadd/#%1\;
--~--~-~--~~~---~--~~
Chromium Developers mailing list: chromium-dev@googlegroups.com 
View archives, change email options, or unsubscribe: 
http://groups.google.com/group/chromium-dev
-~--~~~~--~~--~--~---



[chromium-dev] Re: Google Blogoscoped author tries out Chrome app shortcuts

2009-10-07 Thread Philipp Lenssen

For reference, here now is the .reg file that will also work with
previously associated files all solved now!


Windows Registry Editor Version 5.00

[-HKEY_LOCAL_MACHINE\Software\Classes\.myextension]
[-HKEY_CURRENT_USER\Software\Classes\.myextension]
[-HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer
\FileExts\.myextension]

[HKEY_CLASSES_ROOT\.myextension]
@=myextension_auto_file

[HKEY_CLASSES_ROOT\myextension_auto_file]
@=Web Search

[HKEY_CLASSES_ROOT\myextension_auto_file\shell]

[HKEY_CLASSES_ROOT\myextension_auto_file\shell\open]

[HKEY_CLASSES_ROOT\myextension_auto_file\shell\open\command]
@=\C:\\Users\\johndoe\\AppData\\Local\\Google\\Chrome\\Application\
\chrome.exe\ --app=\http://netpadd/#%1\;
--~--~-~--~~~---~--~~
Chromium Developers mailing list: chromium-dev@googlegroups.com 
View archives, change email options, or unsubscribe: 
http://groups.google.com/group/chromium-dev
-~--~~~~--~~--~--~---



[chromium-dev] Re: Google Blogoscoped author tries out Chrome app shortcuts

2009-10-06 Thread Philipp Lenssen

Very glad to see someone looking at the issues!

 - *Sort of crucial:* Chrome won’t accept my system font definition,
Fixedsys,

 I don't understand the problem description well enough to take action here.

To explain, my CSS includes
font-family: fixedsys, consolas, monospace;
... and Chrome doesn't use Fixedsys, but jumps to Consolas instead.
Firefox finds Fixedsys fine. Apparently it being a system font
confuses Chrome? (I also can't locate the font when trying to adjust
my Chrome monospace default font in the options.)

 He just needs to learn how to create an application shortcut. Copy a
 chrome shortcut on the desktop, rename it, right click on it,
 properties, edit the command line to add the arguments wanted.

I can't get this set up properly -- did you try it, could you please
guide me through the steps? When I use a shortcut, then setting up a
file extension association and then opening the associated file will
make Vista route to the main program (Chrome, not Chrome App).
Dragging the source file over the shortcut shows somewhat better
behavior, but I didn't fully explore that route as it wouldn't be a
solution in the first place (as I just want to double click my text
files to edit).

My goal is:
- On Windows (Vista), open all file types of extension .foo with
Chrome App, and pass the foo path to the application as anchor, like
in http://netpadd/#C:\bar.foo

Current workaround: using a CMD file with the following does the job,
and I can properly connect .foo files with it (with the remaining
issue that the batch window is briefly visible on startup):
start C:\...\AppData\Local\Google\Chrome\Application\chrome.exe --
app=http://netpadd/#%1;

cheers
Philipp

--~--~-~--~~~---~--~~
Chromium Developers mailing list: chromium-dev@googlegroups.com 
View archives, change email options, or unsubscribe: 
http://groups.google.com/group/chromium-dev
-~--~~~~--~~--~--~---



[chromium-dev] Re: Google Blogoscoped author tries out Chrome app shortcuts

2009-10-06 Thread Philipp Lenssen

(Duh, this groups is moderated, which explains why the post didn't
show. Why doesn't Google Groups tell me my post is awaiting moderation
after I post?)

--~--~-~--~~~---~--~~
Chromium Developers mailing list: chromium-dev@googlegroups.com 
View archives, change email options, or unsubscribe: 
http://groups.google.com/group/chromium-dev
-~--~~~~--~~--~--~---



[chromium-dev] Re: Google Blogoscoped author tries out Chrome app shortcuts

2009-10-06 Thread Philipp Lenssen

Not sure if my last reply was a success (Google Groups told me posting
was successful but I can't see the post here yet after some minutes),
so let me double post :)

In a nutshell, I'm glad to see the issues being looked at!

The Fixedsys font problem is this: In my CSS, I have the line
font-family: fixedsys, consolas, monospace;
but Chrome ignores the first font, and jumps to Consolas (Firefox
finds Fixedsys fine). It being a system font might be part of the
issue, I can also not locate Fixedsys in Chrome's monospace font
options dialog.

 He just needs to learn how to create an application shortcut. Copy a
 chrome shortcut on the desktop, rename it, right click on it,
 properties, edit the command line to add the arguments wanted.

Could you please guide me through the steps, did you try associating
files? Just a basic edited shortcut doesn't do the job for me, as
Windows (Vista) will set up the file association -- which I need to
open files system wide with double click -- with the source exe when
picking the shortcut... i.e. with basic Chrome, not Chrome App
(dragging the file over the shortcut behaves somewhat better, but I
didn't further explore this route as it's not a solution).

To clarify, my goal is:
- set up Windows (Vista) so that all .foo files (like myfile.foo) will
automatically be opened with Chrome App at the location
http://example/#path-to-foo-file (e.g. 
http://example/#C:\somefolder\myfile.foo).

My current suboptimal workaround as mentioned is associating my files
with a CMD file which reads:
C:\Users\...\Chrome\Application\chrome.exe --app=http://example/#%1;

cheers
Philipp

--~--~-~--~~~---~--~~
Chromium Developers mailing list: chromium-dev@googlegroups.com 
View archives, change email options, or unsubscribe: 
http://groups.google.com/group/chromium-dev
-~--~~~~--~~--~--~---