0

I'm currently trying to send my browser the command to go fullscreen with "xdotool key F11" which I inlcuded in a seperate script that is called in rc.local. The script includes a sleep to give the system time to load and then executes the mentioned command. But it doesn't work. Is there another way to run a script directly when the desktop is loaded?

2
  • 1
    What distro and browser do you use? Raspbian and Midori for example?
    – ExploWare
    Mar 7, 2014 at 12:10
  • I solved the problem by using my own script. But thank you for your aid and time. Mar 10, 2014 at 11:11

1 Answer 1

1

The answer to your problem is easier than the answer to your question.
(Although thas most likely to be just 'YES')
Most browsers will accept commandline arguments.
Midori has the option '-e Fullscreen' which will do just what you wish for.

For Firefox it's a bit more work, but seems to work fine once its done:
It remembers the last window state. We can use that...

Create a new profile by running firefox -no-remote -ProfileManager
Name it for example 'fullscreen'
run firefox with the new profile (firefox -no-remote -P 'fullscreen'), move to full screen (F11) and then close it while in fullscreen (use ALT+F4)

firefox -no-remote -P 'fullscreen'
To make sure it will allways be in fullscreen, you could remove write-permisions on the localstore.rdf file in the firefox profile. I'm not sure what else gets stored in that file so it could mean DATA LOSS!
If you choose to try it, here is how IF your new profilename is fullscreen:
chmod a-w ~/.mozilla/firefox/*.fullscreen/localstore.rdf

This readonly option could be applied to your regular firefox profile files, but I'd do some heavy testing first!

Source: https://askubuntu.com/a/36467

4
  • (as of Midori 0.2.9, midori –help-execute will list all available commands)
    – ExploWare
    Mar 7, 2014 at 12:18
  • Well, firefox does not. At least I did not find any hints that it actually does. Mar 7, 2014 at 13:31
  • @user2196234: Thats why I asked the question what distribution and browser you are using. So please tell us :)
    – ExploWare
    Mar 7, 2014 at 16:04
  • @user2196234 I added the firefox way to do it. Hope this will be of use for you
    – ExploWare
    Mar 7, 2014 at 17:18

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.