sudo – Polkit Window doesn’t allow user selection, how to pick different admin

I’m running the latest Ubuntu 20.04.1
It seems like polkit(I could be wrong here) isn’t working as expected. When a regular, non-admin, user tries to do something that needs admin, they get a dialog asking for the password of a specific user on the system (lets say user1). Even though user1, user2, and user3 are all in the sudo group on the system. It only shows user1 .

How do I set it up so we can pick from the users in the system with sudo/admin privileges when getting the authentication dialog?

We are getting this dialog when trying to install software through the GUI or add networks.

lg – Is there a window zoom shortcut on android 10 without using physical buttons?

On android 9 I was able to utilize the “window zoom” vision accessibility feature by triple tapping on the home button to bring it up. On android 10 I cannot find that option. The only shortcut I can find for accessibility settings is to press the volume up and power button at the same time. Is there any way to get window zoom by tapping virtual buttons on android 10?

To clarify, there is a zoom feature that magnifies the whole screen by triple tapping anywhere on the screen, but I do not like this feature as it causes apps with virtual buttons like calculators to become laggy and less responsive. I specifically want the “window zoom” feature for when I play a game with text that is too small at times and I would like to activate it in-game without using the volume and power buttons.

Edit: My phone is an LG G7 thinQ

nvidia – Can get an X Window only on the console or on RDP, but not both at the same time

New to Ubuntu, but I’ve been around Linux for while.

I built my first Ubuntu box. Core i5 processor, GeForce GTX1080 graphics. Running gdm3.

Installed xrdp.

I can be logged in at the console, or I can RDP to the box, but I cannot do both at the same time. If I’m on the console, my RDP session logs in, but I get a blank screen. If I log off from the console, I get an X-Window in my RDP but the display on the console switches to “No Signal.”

This is driving me crazy because my Raspberry Pi 4 allows me to be logged into both simultaneously.

I’ve compared xrdp.ini and sesman.ini on both machines, but I can’t find any difference.

Is this possibly an NVidia X-Server issue? Does anyone know how to get simultaneous displays on the console and RDP?

Thanks in advance for any assistance!

SharePoint 2013 Document Library – open pdfs in a new window & centre on screen

You can try opening the window with top and left parameters as shown below

<!DOCTYPE html>
<html>
<body>

<p>Click the button to open a new window with some specifications.</p>

<button onclick="myPopup('https://www.w3schools.com', 'web', 1100, 500);">Open Qries.com</button>

<script>

function myPopup(myURL, title, myWidth, myHeight) {

            var left = (screen.width - myWidth)/2;
            var top = (screen.height - myHeight)/4;           
            
            var myWindow = window.open(myURL, title, 'toolbar=no, location=no, directories=no, status=no, menubar=no, scrollbars=no, resizable=no, copyhistory=no, width=' + myWidth + ', height=' + myHeight + ', top=' + top + ', left=' + left);
         }



</script>

</body>
</html>

You can also check it here and geeks

Updating function openLinkinNewWindowForms() to open pdfs in a new windows.

Changes: New lines added and one existing line has been commented out.
Replace the entire function with the script provided here.
It has been verified with Chrome


function openLinkinNewWindowForms()
{
    //alert("clicked");
        
        //$("#onetidDoclibViewTbl0").find("a.ms-listlink.ms-draggable").each(function(){    

$(".ms-listlink").each(function(){  
//alert("inside function");     
    
if($(this).attr("href"))
{
    var targetValue=$(this).attr("href");

    //if(targetValue.indexOf(".aspx")>0)
        //{
            var anchorTag = $(this)(0);
            var linkUrl=anchorTag.href;
            anchorTag.removeAttribute("href");

            //**Begin new Lines of Code**
           
            var width=800;
            var height=600;
            var left = (screen.width - width)/2;
            var top = (screen.height - height)/4;
            var customClick =  "window.open('"+linkUrl+"','_blank','resizable=1,scrollbars=yes,height=600,width=800,modal=yes,alwaysRaised=yes" + ", top=" + top + ", left=" + left +"')";
           
           //**End of new Lines of Code**
            
            //**commented out this line
           //var customClick =  "window.open('"+linkUrl+"','_blank','resizable=1,scrollbars=yes,height=600,width=800,modal=yes,alwaysRaised=yes')";
                        //window.resizeTo( 1200,800 );
            anchorTag.setAttribute("onclick", customClick);
            anchorTag.setAttribute("style","cursor:pointer");
        //}
}
    });

}   


Maximizing (not fulll screen) safari window in Bug Sur not working (Option Click Plus)

I am using Big Sur. Inside the Messages app when I click the green circle in the upper left hand corner while holding the Option key the green icon will display a black plus (+) sign and the window will maximize to take up the whole screen except the dock and the menu bar. I call this Maximizing the window.

This same functionality does not work in Safari. In Safari I use the same key combination and the green circle shows a plus (+) symbol when the mouse hovers over the icon, however when I click the Safari window does not expand all the way. It only uses about 60% of the horizontal area of the screen instead of the full 100% of the horizontal area.

Is there a way to correct this? It is very annoying to have to manually drag the edges of Safari to fill up the screen.

automator – Build keyboard shortcut for “minimize all windows of current app except the current window”

I’m looking to bind a keyboard shortcut to the action “minimize all windows from the current application except the current window.” (The app in question is always Google Chrome.)

(Sort of like ⌘ + ⌥ + h, which translates to “hide all applications except the current application”.)

I’ve never bound a new shortcut, but I suspect I could figure it out once I have a working AppleScript for the task. I also use Better Touch Tool, in case it is easier to go through that app.

This question asks the same thing, but the answers are not bindable to a simple keyboard shortcut as far as I can tell.

This question asks the same thing (except specifically for Safari), and a user suggests the AppleScript

tell application "Safari"
    activate
    tell application "System Events"
        keystroke "h" using {command down, option down}
    end tell
    set miniaturized of (windows whose index is not 1) to true
end tell

When I replace “Safari” with “Google Chrome” in the script, and try to run it from Script Editor, I get the error

Script error: Google Chrome got an error: Can’t make miniaturized of every window whose index ≠ 1 into type specifier.

Can anyone help? Thanks

unity – Border around game preview window

I’m trying to put my game view and scene view next to each other, but the game window seems to have a border around the actual game view that I can’t remove:

unity window

In the screenshot above, the game view should be touching the sides. I’ve tried changing the aspect ratio setting at the top to no avail, increasing the scale works to remove the border but that also zooms in so isn’t a correct representation of the game. Does anyone know how I can remove this border?