to rotate gtk application running on text mode of porteus into portrait view?
Posted: 04 Feb 2020, 18:53
I am using porteus on text only with terminal in potrait mode to run the GTK application. I have removed GUI/Desktop mode.
I used 'startx' and 'xinit' without using x server.
The application is able to run, but it is running in landscape view only while I am using porteus in text mode with portrait view.
I tried the following commands,
I also tried to embed 'xinit' with 'xrandr -o left ' as below,
but above is also not making the application run in the portrait mode.
However when I tried the 'xinit' command alone, then a temporary **xserver** white window of **xinit** opens up in the landscape view, where I was able to run and rotate the application in portrait view using *'xrandr -o left'* command followed by application running as below mentioned,
In the text mode console
In the 'xinit' white console
But I want to make application run and rotate in portrait view using a single line command on text mode console only, with or without writing any script.
I tried to make a script with the above commands and run it, still I didn't get the application running on the porteus mode.
I used xvfb also to run the gtk application using command but nothing seems to be promising
Any suggestions would be surely appreciated.
I used 'startx' and 'xinit' without using x server.
The application is able to run, but it is running in landscape view only while I am using porteus in text mode with portrait view.
I tried the following commands,
Code: Select all
$ xinit ./(gtk application)
Code: Select all
$ xinit && xrandr -o left ./(gtk application)
However when I tried the 'xinit' command alone, then a temporary **xserver** white window of **xinit** opens up in the landscape view, where I was able to run and rotate the application in portrait view using *'xrandr -o left'* command followed by application running as below mentioned,
In the text mode console
Code: Select all
$ xinit
Code: Select all
$ xrandr -o left
$ ./(gtk_application)
I tried to make a script with the above commands and run it, still I didn't get the application running on the porteus mode.
I used xvfb also to run the gtk application using
Code: Select all
xvfb-run ./(gtk application)
Any suggestions would be surely appreciated.