UBports Robot Logo UBports Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Register
    • Login

    Rotation lock for specific apps

    Scheduled Pinned Locked Moved General
    rotation lock
    22 Posts 5 Posters 5.1k Views 2 Watching
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
      Reply
      • Reply as topic
      Log in to reply
      This topic has been deleted. Only users with topic management privileges can see it.
      • mihaelM Offline
        mihael
        last edited by

        @doniks In /usr/share/dialer-app/dialer-app.qml there is a automaticOrientation: false setting - so it is set to false...

        D 1 Reply Last reply Reply Quote 0
        • LakotaubpL Offline
          Lakotaubp @doniks
          last edited by

          @doniks As very quick aside what version if Ubports are you on the nexus 7. Mine defaults to portrait oonce the unlock code us entered and does not go back.Mine us 16.04 rc. Think oughts the tablet not Ubports side want ti check. Thanks

          D 1 Reply Last reply Reply Quote 0
          • D Offline
            doniks @mihael
            last edited by

            @mihael said in Rotation lock for specific apps:

            @doniks In /usr/share/dialer-app/dialer-app.qml there is a automaticOrientation: false setting - so it is set to false...

            What does that mean? I don't get it.

            mihaelM 1 Reply Last reply Reply Quote 0
            • mihaelM Offline
              mihael @doniks
              last edited by

              @doniks It means that is the only thing I found in dialer-app files about orientation but it is already set to false...

              D 1 Reply Last reply Reply Quote 0
              • D Offline
                doniks @mihael
                last edited by

                @mihael I'm still not following. Did the X-Ubuntu-Supported-Orientations not work? Are you looking for another workaround? Is it rotating now with automaticOrientation: false? Or not? Which values in the desktop file?

                I'm lost where we are right now and what we're talking about ...

                1 Reply Last reply Reply Quote 0
                • D Offline
                  doniks @Lakotaubp
                  last edited by

                  @lakotaubp said in Rotation lock for specific apps:

                  @doniks As very quick aside what version if Ubports are you on the nexus 7. Mine defaults to portrait oonce the unlock code us entered and does not go back.Mine us 16.04 rc. Think oughts the tablet not Ubports side want ti check. Thanks

                  Well, I have the images from ubports server for Nexus 7 gsm (deb!). 16.04, not sure now which channel (devel? rc?), haven't updated for a few weeks and I'm "between laptops" so I can't easily check and it's ... a ... bit ... uhm ... an adventurous installation 🙂 because: https://github.com/ubports/ubuntu-touch/issues/643 However, it rotates every which way I want it to. (Except the login screen, but I think that rotates for no one). Happy to discuss further, but then let's jump into a separate thread shall we.

                  LakotaubpL 1 Reply Last reply Reply Quote 0
                  • LakotaubpL Offline
                    Lakotaubp @doniks
                    last edited by

                    @doniks Yes sounds great. Working most of the day so will start one later in the support section when free.

                    1 Reply Last reply Reply Quote 0
                    • mihaelM Offline
                      mihael
                      last edited by

                      @doniks Sorry for not being more specific and thank you for your patience.

                      I didn't modify anything. The setting that I described is as I found it and I thought that if it is already set to false, there is no point in me setting it to true since what I want is that the app would not change orientation automatically.

                      D 1 Reply Last reply Reply Quote 0
                      • D Offline
                        doniks @mihael
                        last edited by

                        @mihael ah, ok. understood. But, well, I don't know whether or what that variable does. I'm not really familiar with the dialer source code

                        1 Reply Last reply Reply Quote 0
                        • dobeyD Offline
                          dobey
                          last edited by

                          As dialer-app already has automaticOrientation set to false, and specifies only portrait as supported orientation in the .desktop file, it should not be rotating at all.

                          This is a bug. An extremely complex new feature, such as locking rotation configurations at app level granularity, is not the right fix.

                          Is there an open issue about this problem? If not, please report the issue in github.

                          mihaelM D 2 Replies Last reply Reply Quote 0
                          • mihaelM Offline
                            mihael @dobey
                            last edited by

                            @dobey @doniks Yey!! I did it!!!

                            I added X-Ubuntu-Supported-Orientations=portrait at the end of /usr/share/applications/dialer-app.desktop and now the dialer app does not rotate anymore. This is what I wanted. Thanks guys for all the help and suggestions!

                            1 Reply Last reply Reply Quote 0
                            • D Offline
                              doniks @dobey
                              last edited by

                              @dobey said in Rotation lock for specific apps:

                              As dialer-app already [...] specifies only portrait as supported orientation in the .desktop file

                              It doesn't specify that as far as I can tell ....

                              It rotates for me and I consider that a feature

                              1 Reply Last reply Reply Quote -1
                              • First post
                                Last post