Hot answers tagged

15

/usr/lib/indicator-session/gtk-logout-helper can be used to open the following dialogs: Log Out (/usr/lib/indicator-session/gtk-logout-helper --logout) Restart (/usr/lib/indicator-session/gtk-logout-helper --restart) Shutdown (/usr/lib/indicator-session/gtk-logout-helper --shutdown)


10

Just for those that was unable to solve this, here is what I did to make my dialogs moveable. I used dconf-editor which can be easily installed by: sudo apt-get install dconf-editor Open: dconf-editor Browse to: org -> gnome -> shell -> overrides -> attach-modal-dialogs And set it to: false Or everything in one line without installing dconf-...


8

In Nautilus, choose Edit ▸ Preferences ▸ Behavior ▸ Executable Text Files ▸ Run executable text files when they are opened.


8

To my knowledge, this is a "feature" of GTK+ 3.x, and I'm not so certain it can be changed. If I find a solution I will update my answer, but for now I don't know of any (other than reporting a bug). Update: I believe I may have found a partial solution. It's not a permanent one unfortunately. Install dconf-tools. Run dconf-editor. Navigate to org.gtk....


7

Same problem here. The fix: Install ccsm as explained in earlier post. Go to General->General Options->Display Settings. From drop down menu of 'Overlapping Output Handling' select 'Prefer smaller output'. (My monitor is smaller than my TV.) Apparently the 'Smart Mode' isn't very smart (at least on my setup).


6

You can also try to have a look at the help for the add command. You can do either of these: invoke the quickly help add command invoke the quickly tutorial command and browse to the add command reference From the outupt of quickly help add For instance 'quickly add dialog dialog-name' will create: A subclass of Gtk.Dialog called DialogNameDialog in ...


5

If you're using Compiz I find that using the Place Windows plugin is a good way to have predictable windows placement. You'll need to install the CompizConfig Settings Manager (aka ccsm) to get going. One warning: CCSM can break things if you run around doing things you're not supposed to, so focus on the task at hand :) I currently have mine set to: ...


5

This is a bug which has beenreported to the developers. You can mark it as affecting you from its bug page. https://bugs.launchpad.net/compiz/+bug/754508


5

Take a look at the file ~/.config/gtk-2.0/gtkfilechooser.ini. You should see something like this: [Filechooser Settings] LocationMode=filename-entry ShowHidden=true ExpandFolders=true ShowSizeColumn=true GeometryX=2064 GeometryY=1053 GeometryWidth=768 GeometryHeight=638 SortColumn=name SortOrder=ascending Change SortColumn=name to SortColumn=modified. I ...


5

:D I can't explain it!!! If you can understand what they are saying in the reference:Advanced Bash-Scripting Guide: Chapter 20. I/O Redirection, write a new answer and I will give you 50rep Bounty was given, for explanation see ByteCommander's answer. :) This is a part of the history. exec 3>&1; result=$(dialog --inputbox test 0 0 2>&1 1>&...


5

:D I can't explain it!!! If you can understand what they are saying in Advanced Bash-Scripting Guide: Chapter 20. I/O Redirection, write a new answer and I will give you 50rep: exec 3>&1; result=$(dialog --inputbox test 0 0 2>&1 1>&3); exitcode=$?; exec 3>&-; echo $result $exitcode; Reference: Dialog in bash is not grabbing ...


5

Use xautolock xautolock -time 15 -locker notify-send -t time "Title" "message_here" -i "path/to/icon" or use zenity or any dialog you wish. See http://manpages.ubuntu.com/manpages/trusty/man1/xautolock.1.html Edit: After the edit to the question, the OP went with zenity xautolock -time 15 -locker "zenity --text='<text here>' --warning"


5

Ah ha, I just noticed this itty bitty error message at the bottom of the screen: I forgot my image is indexed color, not RGB (it was RGB, but PNG compression software made it indexed.) To fix this, just convert it back to RGB: Now color tools work, hooray!


4

Your .ICEauthority file probably isn't owned by your user (maybe because you ran something as root/with 'sudo' that has overwritten it). You can check this by running (in a terminal): ls -l /home/you/.ICEauthority If it says something other than -rw------- 1 you you ... you need to make it owned by your user again: sudo chown you:you /home/you/....


4

You might find your solution here: Audio output device, fast switch? or here: How to change pulseaudio sink with "pacmd set-default-sink" during playback?


4

I was also bugged by this behaviour and gave it a closer look during the last days. I have found only one of the GTK3 applications so far that always brings up Recently Used at fresh start: Gedit. All other apps I have tested (Totem, Eog, Evince, File-Roller, ...) start with a "normal" folder in their file chooser (tested with fresh guest session). So I ...


4

That is not really a dialog box expecting an answer from you but Firefox's downloads window, which is shown by default when downloading a file. However, you can switch it off in Firefox's preferences (untick the checkbox "Show downloads windows when downloading a file"). You can find Firefox's preferences under Edit->Preferences in the menu. See the ...


4

In the download dialog you can drag folders from the file list on the right into the shortcut list to add them. Or you can edit the file $HOME/.config/gtk-3.0/bookmarks using a text editor like gedit.


4

You can use zenity: sudo apt-get install zenity Then in your script: RETVAL=`zenity --entry --title="Hi" --text="What is your username"` Useful link.


4

If you read man page for dialog, there is option --output-fd, which allows you to explicitly set where the output goes (STDOUT 1 , STDERR 2), instead of by default going to STDERR. Bellow you can see me running sample dialog command , with explicitly stating that output must go to file descriptor 1, which allows me to save it into MYVAR. MYVAR=$(dialog --...


4

The highlighting of the "O" in your screenshot is the terminal's cursor. You can't control its appearance, it's rendered according to each user's terminal settings. For example, here is how it appears in the OS X terminal with the default cursor style ("Block cursor"): Here it is with the cursor style changed to "Vertical bar": Here it is with the cursor ...


4

Make a screenshot and use OCR Install OCR software sudo apt-get install tesseract-ocr sudo apt-get install tesseract-ocr-jpn Install a GUI for tesseract sudo apt-get install gimagereader Make a screenshot of your desktop or of a part of your desktop Start gimagereader and start the recognizion Copy the text into the right pane and translate


3

The solution has been given in this forum topic. The specific answer is buried somewhere in that thread. But I'll provide the steps here. However, that forum topic will keep you updated as things evolve. These steps allow the use of KDE dialogs with Firefox in Kubuntu 12.04 (other KDE distros are supported too -- see the forum topic). My solution (given ...


3

It has been decided that the Unity dialogs are not ready for prime time. They won't ship in Ubuntu 11.10 (see this changlog).


3

I found this stackoverflow post, which leads to the documentation on the run function of a GtkDialog, where it states: The run() method blocks in a recursive main loop until the dialog either emits the "response" signal, or is destroyed. If the dialog is destroyed, the run() method returns gtk.RESPONSE_NONE; otherwise, it returns the response ID ...


3

Display path once From the breadcrumb view in both Nautilus (top), and Thunar (bottom) we can temporarily disable breadcrumb view by pressing Ctrl + L: The path will aready be selected ready for copy & paste. Disable Nautilus breadcrumbs We can set the default behaviour for Nautilus using dconf-editor when dconf-tools are installed. Browse to ...


3

The answer provided by Sneetsher is somewhat more elegant, but I can explain what's wrong: The value of $$ is different inside the backticks (because it starts a new shell, and $$ is the PID of the current shell). You'll want to put the file name in a variable, then refer to that variable throughout instead. #!/bin/bash t=$(mktemp -t inputbox.XXXXXXXXX) || ...


3

If you run the following script in the background, it will check the idle-time every 5 seconds. If the idle time exceeds a given amount of time (in minutes), a message will appear, defined in a textfile. (through a Zenity window). #!/usr/bin/env python3 import subprocess import time ######################################### t=15 textfile = "/path/to/...


3

I have not found a system-wide shortcut (even on OS X, the shortcut may change depending on the application), but there is a way to find the right shortcut for each prompt: When the prompt appears, hold alt and look at the underlined characters (as you would for an application top menu). Of course, we are interested in the "Close without saving" option ...


2

I just had the same issue. I got rid of it by using the following command ~ sudo chown user:user /home/user Replace user by your user name. Cheers!



Only top voted, non community-wiki answers of a minimum length are eligible