At Mon, 2 Sep 2019 04:41:08 -0700 (PDT) Juge <
jyrki.m...@gmail.com> wrote:
>
> Am Montag, 2. September 2019 09:20:32 UTC+2 schrieb Juge:
> > In normal webbrowser if I click on hyperlink and download a file, Windows=
> asks whether I want to save the file or open it with some application. I h=
> ave a program that fetches a file from a webserver and I would like to invo=
> ke a similar dialogue or I would simply like to open the file with the asso=
> ciated application.=20
> >=20
> > My problem is that initially my files are either powerpoint or text files=
> and my Tcl program runs in Linux and Windows. In Linux it might be that th=
> ere is no way to handle the powerpoint.=20
> >=20
> > So how can I invoke that option platform independent?
>
> I am not sure, how that is going to help me...
> I have already means of detecting whether my code is running under linux or=
> windows that is not the case.
>
> What I want to achieve is that I download a file from a server with my prog=
> ram and then I want the program to invoke a dialogue whether to "save" or "=
> open with".=20
>
> There are these kind of standard dialogues in both windows or linux. I am j=
> ust not sure how to get something like that to lauch. It could be even that=
> "exec <filename>" could get me what I want...
Browsers have a database of what to just save, what program to execute (open
with), and whether to ask the user or not. Graphical file managers have
something similar as well. In mess-windows there is only a single
graphical file manager ["Windows Explorer"] and MacOSX has Finder. Under
Linux there are many graphical file managers and it is possible to not have a
graphical file manager at all.
Only under mess-windows and MacOSX is this raised to the level of 'system
standard dialogues'. There are no system standard dialogues under Linux at
all (even if it seems that way -- every GUI subsystem has its own dialogues
derived from whatever GUI toolkit it uses -- Gnome from GTK, KDE from Qt,
etc.).
>
--
Robert Heller --
978-544-6933
Deepwoods Software -- Custom Software Services
http://www.deepsoft.com/ -- Linux Administration Services
hel...@deepsoft.com -- Webhosting Services