Disable modal dialog to insert password

I upgraded to Ubuntu 18.04 and I find a very annoying “feature” when I commit in git which was not present in 16.04 with Unity. I have gpgsign enabled and everytime I commit in git it opens a modal dialog box where I have to insert the GPG password.

As someone who values my security I keep all my passwords in a KeePass database which is conveniently not usable when this uselessly modal dialog comes up.

How do I stop Gnome from creating a modal dialog when asking for passwords?

I want to be able to copy&paste my password from KeePass when the dialog asking for password is already shown, and even better be able to search my KeePass db for the correct entry (i.e. I should also be able to type inside KeePass).

It’s a real waste of time having to cancel whatever operation, then copy the password and having 10 seconds to repeat it before the password gets cleared from the clipboard. Especially when I try to commit from an IDE since when selecting files it does not stage them which means if I forget to copy the password right before clicking on commit I have to reselect all the files/portions of files to commit.


BTW: I do not want to use the GNOME keyring. I want to be able to use KeePass. Is there a way to do this in Gnome or do I have to uninstall ubuntu-desktop and install kubuntu-desktop instead?

¿Como puedo obtener los datos creados de un adapter hacia un Dialog fragment?

Tengo un activity que llena dos listas que paso a un adapter, cuando se llena ese adapter lo paso como parámetro de constructor de un Dialog Fragment y lo muestro en pantalla , ese adaptador crea controles dinámicos en el método onBindViewHolder y a la vez llena un Recycler view (mostrado en mi Dialog Fragment) con esos controles creados, mi pregunta es ¿como puedo desde mi Dialog Fragment obtener todos los datos de esos controles creados en mi adapter?

How to put back de CKE Image Dialog Box in Drupal 8?

Since I’m on D8 I can’t find the image dialog box I use to have on D7 : https://ckeditor.com/cke4/addon/image2

I learn that it was a core issue. But my contributors are used to it and have a different level of expertise… This little dialog box was usefull, allowed them to choose the size of the picture and to put the ALT tag.

How can I put it back on my D8 ? By installing the CKE image2 plugin ? Did I miss something ? I can’t find anything on the web of people complaining about the image dialog box supression…

(sorry for my bad english)

Thanks

How to create a Drupal 8 modal dialog which is draggable and resizable?

I have a simple dialog that comes up from a Drupal 8 link created as follows. I want it to be draggable and resizable:

    $  content .= "<h4><a class='use-ajax' data-dialog-options='{&quot;width&quot;:1000,&quot;draggable&quot;:true,&quot;resizable&quot;:true}' data-dialog-type='modal' href='/help'>HelpForm</a></h4>"; return array(   '#attached' => array( 'library' => array( 'core/drupal.dialog.ajax', 'chapter6/help-styling' ) ),   '#markup' => $  content,   '#cache' =>array( 'max-age' => 0 ) ); 

my ‘chapter6/help-styling’ library is js downloaded from https://jqueryui.com/download/#!version=1.12.1 with the Interactions ‘draggable’ and ‘resizable’ selected.

I have also tried to create the render array this way (as suggested here How do you create a link to a modal dialog?) :

$  render = [   '#title' => t('HelpFormLink'),   '#type' => 'link',   '#url' => Url::fromRoute('chapter6.help_form'),   '#attributes' => [     'class' => ['use-ajax'],     'data-dialog-type' => 'modal',     'data-dialog-options' => ['width' => 900, 'draggable'=>true, 'resizable'=>true],   ],   '#attached' => [     'library' => ['core/drupal.dialog.ajax', 'chapter6/help-styling']   ], ]; 
return $  render; 

This code did not create a modal; my form came up as a page.

Can anyone offer suggestions?

Many thanks, Mary Edith

osascript display dialog hangs when screen is off; detect unavailable GUI/display from bash or applescript?

I’ve been working on a backup script that runs occasionally via launchd. When it runs, it prompts me with something like:

osascript -e "display dialog \"Is now a good time to back up?\"" 

This works great when the system is open/online, but it seems to hang if the lid is closed or screen is locked/off. A tolerable way to test this is to SSH into the system as the same user with the desktop active, run a command like the one above, and observe that the dialog pops up.

If I run the same command with the system locked, it just hangs. If I unlock/open the system, the command doesn’t finish, and the dialog doesn’t appear.

Is anyone aware of a way to detect this condition so that I can abort the script run before it hangs (or keep the job from running at all until the system is active…)?

I’m not keen on it, but the best I’ve been able to figure out so far involves putting a long timeout on the first dialog in the script and bailing out if it never gets answered, i.e.:

osascript -e "display dialog \"Is now a good time to back up?\" giving up after 600" 

IsDlg=1 causes no content to be displayed in dialog

We are having a problem that has apparently been an issue for a while on all of our SP 2013 sites. Any dialog marked with IsDlg=1 shows no content at all whatsoever. Meaning a thin white dialog is displayed. No content. No nothing. If I inspect the iframe using dev tools and remove the IsDlg=1, the full page displays in the dialog (ribbon and all). enter image description here

Clearly a masterpage or some CSS has been messed with at some point in time but I cannot figure it out. I have tried resetting all masterpages but this has had no impact. If someone would have suggestions as to what I should be looking at, I would be very thankful.

EDIT: Some additional info that is important. The content isn’t even rendering. It’s not that the HTML is being hidden. If I inspect the content, this is quite literally all there is

<html>    <head>       <meta http-equiv="Content-Type" content="text/html; charset=utf-8"><meta name="Robots" content="NOINDEX ">    </head>    <body>       <script type="text/javascript">            var gearPage = document.getElementById('GearPage');            if(null != gearPage)            {                gearPage.parentNode.removeChild(gearPage);                document.title = "Error";            }       </script>    </body> </html> 

From the ULS Error=Cannot make a cache safe URL for "styles/dlgframe.css",

Do tabs belong in a Material Design dialog?

I’m building a MD styled desktop application that essentially acts as a dashboard (w/ a data table) for a list of remote devices. Within the data table, I have a button for each item that presents a dialog of the detailed properties for that item. I also want the user to see a history of action items for each item.

I think a good UX decision to present the item action history would be to create a tab layout for this same dialog, one tab for item detail view, one tab for item history. I don’t think this is taboo for MD design, but if it is, can someone recommend some good alternatives for the data I’m looking to present to the user?

Thanks!

Edittext to String within a Dialog

I want to turn an EditText to a string. The toString() method doesn’t work, name_string is null when I print it out later. Are there any other ways to turn an EditText to a String?

    final Dialog dialog = new Dialog(ScrollingActivity.this);     dialog.setContentView(R.layout.add_new_card);     dialog.setTitle("Title");      Button ok = (Button) dialog.findViewById(R.id.ok);     ok.setOnClickListener(new View.OnClickListener() {         public void onClick(View v) {             name_edit = (EditText) findViewById(R.id.name_xml);             name_string = name_edit.getText().toString();             dialog.cancel();         }     });     Button cancel = (Button) dialog.findViewById(R.id.cancel);     cancel.setOnClickListener(new View.OnClickListener() {         @Override         public void onClick(View v) {             dialog.cancel();         }     });     dialog.show();