Jump to content

Second Desktop - secure workspace with kiosk option


RTFC
 Share

Recommended Posts

I tried it out, it seems to work as designed but for it to be a real and true kiosk I would need to impliment icons/shortcuts to the desktop.

I think the best way would be to have a folder call "Kiosk" or similar at the Script Dir and have it copy any contents found in that folder to the "Kiosk Desktop" Simply having a browser open would not work, because if they close it they have no way to open it again without a start bar or task bar. 

Link to comment
Share on other sites

@jeanphile: Thanks!^_^

@ViciousXUSMC: Thanks for trying it out. It's funny you should mention that, I'm just exploring support for a separate set of alternative desktop shortcuts (but shortcuts for "all users" are still being added to the ones I've selected:blink:).

However, kiosk mode as I understand it (and would want it to work) is to prevent the user from starting any programme, and merely interact with whatever is already running, perhaps with an added fail-safe to restart any app that is inadvertently (or intentionally) closed. Your browser/file manager idea could work if you would monitor it to restart automatically when closed.

Link to comment
Share on other sites

Yes, you could do a loop that re-opens a process if closed. 

It's not very traditional but it would work.

Normally I have a few shortcuts to the main sites the Kiosk user needs to get too since the average user may not be very familiar with using bookmarks in the browser, also we may have some documents say word documents or pdf forms for the user to be able to fill out and print.

You will have to share with me your findings in how to add the shortcuts, I can see what I need to do from there.

Link to comment
Share on other sites

Well, I just got it to work (custom shortcuts without CommonDesktop shortcuts), but I'm still tinkering with various related bits, so it may be a few days before the next release. But your comments and interest are appreciated!:)

Edited by RTFC
Link to comment
Share on other sites

Great work! Thanks for sharing!  Just a thought...Perhaps instead of using if not fileexists ("desktopSwitch.exe") to verify if the script is already compiled at runtime, you might want to use instead @Compiled:

 
@CompiledReturns 1 if script is a compiled executable or an .a3x file; returns 0 if an .au3 file.
Link to comment
Share on other sites

@coffeeturtle: Thanks a lot!:)

Regarding your macro suggestion, I don' think that would work the way you think it would, as @compiled checks whether the current script is running as exe, and I'm checking from secondDesktop.au3/exe whether desktopSwitch is available as exe, not secondDesktop itself (which does not have to be compiled). I could have desktopSwitch check itself, but by then the second desktop would already be created, and the check was implemented as an early-out as soon as possible. But if I misunderstood your suggestion, feel free to elaborate.

Link to comment
Share on other sites

If DesktopSwitch should always be compiled in order for your application/utility/tool to work correctly you could test if it from SecondDesktop early on,

I mean if it absolutely has to be compiled and not just have the extension .exe.

Perhaps DesktopSwitch should test for the existence of particular command line switch, and if present exit with 1 if @Compiled or 0 if not.

SecondDesktop first runs DesktopSwitch first with the switch, and exits with a warning if it is not compiled.

If you get my rabid gibberish.

AutoIt Absolute Beginners    Require a serial    Pause Script    Video Tutorials by Morthawt   ipify 

Monkey's are, like, natures humans.

Link to comment
Share on other sites

Hi JohnOne, not gibberish at all, it makes perfect sense to me. I'd never even considered that someone would be foolish enough to just rename an .au3 to an .exe. You solution is certainly interesting, and would be easy to implement. Thanks.:)

Link to comment
Share on other sites

I'd never even considered that someone would be foolish enough to just rename an .au3 to an .exe.

Never under estimate how foolish some people can be :)

I made some software for a friend, it included 4 exe files, all prefixed with "john" so he knew what they were, he had me take a look because they stopped working, he's replaced "john" with "matty" his own name.

AutoIt Absolute Beginners    Require a serial    Pause Script    Video Tutorials by Morthawt   ipify 

Monkey's are, like, natures humans.

Link to comment
Share on other sites

My mistake, sorry. I totally see what you mean now. :)

 

@coffeeturtle: Thanks a lot!:)

Regarding your macro suggestion, I don' think that would work the way you think it would, as @compiled checks whether the current script is running as exe, and I'm checking from secondDesktop.au3/exe whether desktopSwitch is available as exe, not secondDesktop itself (which does not have to be compiled). I could have desktopSwitch check itself, but by then the second desktop would already be created, and the check was implemented as an early-out as soon as possible. But if I misunderstood your suggestion, feel free to elaborate.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...