Giter Club home page Giter Club logo

yad's People

Contributors

brlin-tw avatar cemkeylan avatar dshoreman avatar elig0n avatar grinapo avatar maxice8 avatar misko-2083 avatar motiontx avatar norwayfun avatar patrickgmm avatar shlyakpavel avatar sonyahay avatar step- avatar taraspanchenko avatar tuliocll avatar v1cont avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

yad's Issues

[Feature] extend icon resizing (--icons --icon-width) to compact list mode

I'm opening this feature request as a follow up to PR #29, which is closed.

Victor, thank you for the feature in #29 6239dcf. It works very well for the grid layout. I wonder why you chose not to implement it also for the icon list (--compact) layout. I think it would be useful also in that case. Look at the screen shot below: yad 6239dcf --icon-size=32 --compact. The icons in /usr/share/pixmaps have different sizes so yad displays them at different sizes. It would look much better, and more compact, if yad resized those icons the same size. And that is a user-specified size.
So would you please make --icon-size work for --compact mode, too?
yad-20190214-002

Originally posted by @step- in #29 (comment)

timeout-indicator no longer working - missing schema key

yad --question --timeout-indicator=top --timeout=15 --text "now?"

... generates:

(yad:14160): GLib-GIO-ERROR **: 18:15:23.606: Settings schema 'yad.settings' does not contain a key named 'show-remain'
Trace/breakpoint trap (core dumped)

Adding the following key to the yad.gschema.xml file fixes the issue:

<key type="b" name="show-remain">
  <default>true</default>
  <summary>Remaining time progress bar</summary>
</key>

Option to automatically set the height of a --list dialog to show all items

It might be very useful to have an option to automatically set the height of a --list dialog so that all items are shown

For instance, running:

yad --list --column='' foo bar baz

will show this dialog where baz is not shown:
image

It's necessary to manually set --height to show all items.

I tried:

cat items | yad --list --limit=10 --column=''

where items:

foo
bar
baz

but the result was the same:
image

Problem with yad 2.0-1

Hello,
i am running a manjaro Linux 4.19.66-1-MANJARO x86_64 18.0.4 Illyria machine.
the latest community update of yad 1.0-1 to yad 2.0-1 resulted in:
GLib-GIO-ERROR **Settings schema 'yad.settings' does not contain a key named 'show-remain' when running a yad dialog
was this issue addressed/solved in the newer versions?

thanks for your replies

yad --form --field="" leaves STDIN non-blocking

$ read 
(notice that read works)

$ yad  --form --field="" # input doesn't matter
|

$ read
bash: read: read error: 0: Resource temporarily unavailable

Using yad --form --field="" leaves STDIN fd 0 nonblocking, which read and many other programs cannot use. this also affects parent shells that run scripts in subshells

This is a bug because yad found stdin in a blocking state but didn't leave it that way. see http://gnu-bash.2382.n7.nabble.com/read-may-fail-due-to-nonblocking-stdin-td18519.html

Note, this doesn't happen with just yad --form.

I can only imagine the issue is in

yad/src/form.c

Line 629 in 8957347

handle_stdin (GIOChannel * ch, GIOCondition cond, gpointer data)

where a GTK bug means that g_io_channel_shutdown doesn't fcntl(STDIN_FILENO, F_SETFD, ~O_NONBLOCK...) properly

The fact multiple while loops are used to poll whether to read again would suggest that ch was opened by GIO in non-blocking mode...

macOS/Homebrew?

Has anyone managed to install this on macOS? What would be the way to go about it? Related: you could probably make this a Homebrew package – https://github.com/Homebrew/homebrew-core … zenity is also available in this way, so I assume it should be possible.

Program returns random data in a function

At the end package building process I go the following error:

I: Program returns random data in a function
E: yad no-return-in-nonvoid-function option.c:1130, 1137, 1196, 1203, 1213

For the compiler there are warning only.

I could fix it with this patch:
--- src/option.c.orig 2017-11-16 20:13:51.000000000 +0100
+++ src/option.c 2017-12-02 22:15:59.718429232 +0100
@@ -1127,6 +1127,8 @@
{
options.data.use_posx = TRUE;
options.data.posx = atol (value);
+

  • return TRUE;
    }

static gboolean
@@ -1134,6 +1136,8 @@
{
options.data.use_posy = TRUE;
options.data.posy = atol (value);
+

  • return TRUE;
    }

static gboolean
@@ -1193,6 +1197,8 @@
options.hscroll_policy = pt;
else
options.vscroll_policy = pt;
+

  • return TRUE;
    }

#if GLIB_CHECK_VERSION(2,30,0)
@@ -1200,6 +1206,8 @@
set_size_format (const gchar * option_name, const gchar * value, gpointer data, GError ** err)
{
options.common_data.size_fmt = G_FORMAT_SIZE_IEC_UNITS;
+

  • return TRUE;
    }
    #endif

@@ -1210,6 +1218,8 @@
options.print_xid = TRUE;
if (value && value[0])
options.xid_file = g_strdup (value);
+

  • return TRUE;
    }

static gboolean

JS console doesn't return anything back

yad --version
5.0 (GTK+ 3.24.5) # exits with 1 (err) ?

Example 1.

test.htm

<!DOCTYPE html>
<html>
<head>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.4.1/jquery.min.js"></script>
<script>
$(document).ready(function(){
  $("button").click(function(){
    console.log("Hello!");
  });
});
</script>
</head>
<body>

<button>Write Hello to console</button>

</body>
</html>

Command

cat test.htm | yad --html --height=400 --width=500

Example 2.

https://github.com/brontosaurusrex/clockpickeryad

./openwithyad

Context

https://forums.bunsenlabs.org/viewtopic.php?pid=96701#p96701

wrong dialog size

Between 0660417 and 30a7c2f some change broke the dialog sizing for (my) GTK2 builds. Now the dialog is smaller that the --buttons inside it so some buttons aren't visible. (Linux 64). I need to review all your changes and figure out what's going on, but it will take some time before I can do it. If you already suspect some commits in particular, please let me know which ones. Thank you.

30a7c2f
tas-20180508-075306

0660417
tas-20180508-075343

Yad notification, left click menu

My notification menu is working well at the right click (with icons and cmd). I would like to move it in the left click!! is this possible?

Form: aligning button icons and text vertically

Hi!
Again about yad 5.0.
This is not really an issue but more of a feature request!

Example:
yad --form --field=' Emacs!emacs!':fbtn emacs --field=' Mousepad!mousepad!':fbtn mousepad --field=' Leafpad!leafpad!':fbtn leafpad
Here the icons and text on the buttons are not vertically aligned, but e.g. left-aligning both icons and text would make them look better.

Dialog label selected on open with --selectable-labels

On yad 0.40.0 (most recent in Debian testing).

The following invocation produces a dialog with the dialog label text already selected (and thus highlighted). The documentation says the label should be selectable. Seems it should not be already selected though.

yad --selectable-labels --text="Should not be selected on open... but it is"

RFE: option to pre-select row(s) in --list

The example on the manpage shows a checklist selection but that seems more of a side effect of the boolean data and the checklist behavior. It would be nice to generalize this into a option that could be adapted to all lists (or who knows, other constructs).

yad notebook parameter --active-tab

yad --version
0.40.0 (GTK+ 3.24.4)

hi Victor,
hopefully you can read this :-)
already posted this bug in the ticketsystem at sourceforge, anyway let's say I want to start a script.sh with a parameter, yad should open the notebook with the initial active-tab 2. The following code should work:

#!/bin/bash -xv
id="${RANDOM}"
active_tab="$1"

yad --plug=$id --tabnum=1 --form --columns=4 --scroll --borders=30 &
yad --plug=$id --tabnum=2 --form --columns=4 --scroll --borders=30 &
yad --plug=$id --tabnum=3 --form --columns=4 --scroll --borders=30 &
yad --notebook --key="$id" --tab="tab1" --tab="tab2" --tab="tab3" --active-tab="$active_tab" --width=900 --height=600

If you test this script with ./script.sh 2 it should open the notebook with the initial tab2. In this case, it opens the first tab - always. So I assume, that the notebook parameter --active-tab, which was integrated in yad Version 0.39.0, is not working at all.

The notebook active tab function works with gtkdialog, an example is shown here:
http://blogs.czapski.id.au/2017/05/gtkdialog-exploring-the-notebook-object-by-example

In this example you can define which tab should be the initial active tab in the notebook widget.

Since i don't want to use gtkdialog or both tools with gtkdialog as a wrapper, i would appreciate it if you could at least confirm this bug in the actual yad version.

thanks in advance

How to make progress bar with 7z ?

Hi,

Have try to use 7z and progress bar but not work.
./7za x archive.7z -bso0 -bsp1 | sed -e 's/%/\n/g'

The test is
./7za x archive.7z -bso0 -bsp1 | sed -e 's/%/\n/g' | ./yad.x86_64 --progress --center --text="Extracting..." --button=gtk-cancel --auto-kill --auto-close

Best Regards

Wrong positioning on multimonitor

If you have a window on the left monitor focused and then move the mouse through a bar to the right monitor and then call e.g yad --calendar --mouse yad gets the mouse position right but not the monitor.

2018-07-31-211432_3840x1080_scrot

I tested it with polybar and lemonbar and happens on both.
I'm using bspwm but this happened on i3wm too.

On the other hand jgmenu behaves properly.

I'm gonna take a look at this myself but it's my first time with C so I don't think I will be able to fix it.

Special 'quit' menu item doesn't work with whitespace

If I use --notification --listen with a menu defined similar to the following:

echo "menu:\
First item        ! some_command        |\
Another menu item ! other-command       |\
Menu item Three   ! yet_another-command ||\
Quit              ! quit " >&3

...the first three menu items all function correctly, but the Quit item fails due to the surrounding space.

While !quit works fine (with no surrounding whitespace), it would be nice if it worked both ways to aid readability of code in more complex menus.

Column text does not render markdown / yad version Fedora 0.40.0 6.fc31

yad --list --column "<span foreground='green' font-size='large' font='bold'>Pick one</span>"

does not render the markdown as expected.

No errors thrown.

The column header becomes, "<span foreground='green' font-size='large' font='bold'>Pick one</span>"

Is this a bug or a version issue?

open-command non functional

When clicking on a link in a yad dialog, the following error message is displayed:

yad:7668): GLib-GIO-ERROR **: 21:26:22.359: Settings schema 'yad.settings' does not contain a key named 'open_command'
/home/toz/bin/twit-click.sh: line 3:  7668 Trace/breakpoint trap   (core dumped)

During the gsettings migration open_command was not changed to open-command in the source. Here is a patch:

diff --git a/src/text.c b/src/text.c
index fd838f0..b60cb72 100644
--- a/src/text.c
+++ b/src/text.c
@@ -173,7 +173,7 @@ tag_event_cb (GtkTextTag * tag, GObject * obj, GdkEvent * ev, GtkTextIter * iter
           gtk_text_iter_forward_to_tag_toggle (&end, tag);
 
           url = gtk_text_iter_get_text (&start, &end);
-          cmdline = g_strdup_printf (g_settings_get_string (settings, "open_command"), url);
+          cmdline = g_strdup_printf (g_settings_get_string (settings, "open-command"), url);
           g_free (url);
 
           g_spawn_command_line_async (cmdline, NULL);

yad with --print --filename options coredumped with any existing file

Hello,

I'm on Manjaro Linux 18.1.0 Juhraya, x86_64, kernel 4.19.69-1, Xorg 1.20.5, GTK+ 3.24.10, with french locale (YAD installed from AUR).

yad-git 4.1 --print --filename options coredumped with any existing file. Example:
yad --print --filename=LEGITIMEFILENAME
or
yad --print --filename="LEGITIMEFILENAME"
or
yad --print --filename LEGITIMEFILENAME
or
yad --print --filename "LEGITIMEFILENAME"
returns:

Erreur de segmentation (core dumped)

Regular yad 3.0 version from Manjaro repository fails also with this statement.

Moreover, since the 1.0 release, the buttons' labels are no longer translated into the language of my locale (french).

Thanks to take a look.

Application will not start

After launching yad (version 0.41.0), I got the following dialog:

image

No matter what button I press, the application exits.
This warning will be shown on STDERR:

(yad:20006): Gtk-WARNING **: 20:58:45.559: Error loading icon from file 'yad':
	Couldn’t recognize the image file format for file “yad”

I compiled the source with the following flags:

      --prefix=/usr \
      --with-gtk=gtk3 \
      --enable-icon-browser \
      --enable-html \
      --enable-gio \
      --enable-spell \
      --enable-sourceview

It does not make a difference if I use gtk2 or gtk3.

--posx and/or --posy adds erroneous window render

Specifying --posx and/or --posy positions the window in the top left corner briefly before moving it to the specified position:
yad --borders=0 --no-buttons --text="test" --posx=960 --posy=-1 --undecorated 2> /dev/null &

I expect the window to render only at the specified position.

Ghost Button

Is it possbile to ghost a button until another button is pressed , meaning I want to display all the buttons but aesthetically make a button look unfunctional until a different button is pressed

example

yad
--width 300
--height 400
--info
--skip-taskbar
--title "test"
--button="Exit":0
--button="button 1":1
--button="button 2":2
--button="button 3":3

I want to ghost button 3 at all times unless button 2 is pressed

Configure script should check minimum supported Gtk3 version

I tried to build YAD on Ubuntu 16.04 and encountered this error:

  CCLD     yad-icon-browser
yad-list.o: In function `popup_menu_cb':
list.c:(.text+0x28e2): undefined reference to `gtk_menu_popup_at_pointer'
yad-picture.o: In function `button_handler':
picture.c:(.text+0xa5f): undefined reference to `gtk_menu_popup_at_pointer'
collect2: error: ld returned 1 exit status
Makefile:419: recipe for target 'yad' failed
make[2]: *** [yad] Error 1
make[2]: Leaving directory '/home/ubuntu/yad-snap/parts/yad/build/src'
Makefile:402: recipe for target 'all-recursive' failed
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory '/home/ubuntu/yad-snap/parts/yad/build'
Makefile:343: recipe for target 'all' failed
make: *** [all] Error 2

Which later found out is due to the shipped version of Gtk3 is too old (gtk_menu_popup_at_pointer is introduced in 3.22 while the shipped Gtk3 is 3.18). It seems that Gtk has autoconf macros that can detect this situation so the error can be diagnosed earlier.

Thanks in advance!

YAD - Can I Minimize GUI To System Tray?

Hello,

I'm running yad-0.42.1 in Slackware. I run OpenVPN from the command line, and I created a YAD GUI for this purpose. I use tint2 in Openbox if you are familiar with it, and the only thing I can do with the GUI is minimize it to tint2.

I wanted to know, is there a way to have a YAD GUI minimized to the system tray with an icon of my choice displayed in the system tray?

I know there is a notification option, but that doesn't look like what I want, I just want this as an option, like many apps have the ability to be minimized to the system tray is all, that display a system tray icon...

Below is my bash script I am using... THANKS

#!/bin/bash

function confirm_close () {
yad --title="OpenVPN Shutdown" --window-icon="/home/foo/.icons/AwOken/clear/128x128/apps/openvpn.png"
--center --width="360" --height="100" --image="dialog-question"
--text="Click 'OK' To Shutdown OpenVPN\nClick 'Cancel' to Keep OpenVPN Running"
[[ $? -eq 0 ]] && kill -USR1 $YAD_PID
}
export -f confirm_close

sudo -b openvpn --config /etc/openvpn/openvpn.conf |
yad --fontname="Noto Sans 9" --text-info --wrap --fore="#ababab" --back="#264d74" --button="Close:bash -c confirm_close"
--center --width="700" --height="450" --title="OpenVPN"
--window-icon="/home/foo/.icons/AwOken/clear/128x128/apps/openvpn.png"

[[ $? -eq 0 ]] && sudo killall openvpn 2>/dev/null

Ininiating results from stdin

Dear Sir,
Can you please add an option to print the selection by sending some special character to standard input?
This could be useful when using paned and notebook dialogs with the forms and lists.
Perhaps "alert" or some other special character.

Use case:

# function that gets the results from both tabs
# when the button "get result" is clicked
function get_res () {
     # send \a to first tab
    echo -e "\a" >&3
      # send \a to second tab
    echo -e "\a" >&4
   # do something with res1 and res2
    cat res1
    cat res2
}
export -f get_res

yad --plug="$id" --tabnum=1 --form --cycle-read  --field="form:CB" '1!2!3!4!5' ... <&3  >res1 &

yad --plug="$id" --tabnum=2  --list --cycle-read --checklist ... <&4 >res2 &

# main dialog has a button that calls function get_res
yad --paned --key="$id" --button="get result":'bash -c "get_res"'

build windows executable

Hello,

I'm struggling finding a toolchain to create a yad executable for windows (static if possible).
Does any of the yad contributors have some build recipe ?

Best regards.

dialogue boxes are huge when you have a wrap in text

distro is debian9 (stretch)

try this to see :

yad -- info --title "Huge Dialogue Box" --text "Four score and seven years ago our fathers brought forth on this continent, a new nation, conceived in Liberty, and dedicated to the proposition that all men are created equal. Four score and seven years ago our fathers brought forth on this continent, a new nation, conceived in Liberty, and dedicated to the proposition that all men are created equal. Four score and seven years ago our fathers brought forth on this continent, a new nation, conceived in Liberty, and dedicated to the proposition that all men are created equal."

Any fix or work-around for this? thx

no menu icons in LXQt

I'm on OpenBSD 6.4 with LXQt 0.13.0 and yad 0.40.0

Notification icon shows up fine, but no icons next to right-click menu items. For example, running this...

yad --notification --image="dialog-error" --menu='Test!quit!dialog-error'

...causes the dialog-error icon to show up in the system tray, but no icon at all next to the "Test" menu item.

P.S. On a different machine with OpenBSD and MATE, yad's menu icons show up without issue. But LXQt is my main DE, so I would like to find a fix or workaround for the missing menu icons in LXQt. Is yad butting heads with Qt? Maybe yad needs a gtk-related environmental variable that is missing in LXQt's environment? Icon theme issue? I've checked all of these to the best of my ability but I'm going around in circles because GUI intricacies are not my forte.

yad --calendar --day=08

Version: 4.1
For whatever reason, the command in the title doesn't work.

09 also doesn't work. Error outputted is
Unable to parse command line: Cannot parse integer value “08” for --day

uanble to compile on ubuntu 18.04

./configure --enable-html --enable-gio --enable-spell --enable-sourceview --enable-icon-browser --with-gtk=gtk3 checking for a BSD-compatible install... /usr/bin/install -c checking whether build environment is sane... yes checking for a thread-safe mkdir -p... /bin/mkdir -p checking for gawk... no checking for mawk... mawk checking whether make sets $(MAKE)... yes checking whether make supports nested variables... yes checking whether make supports nested variables... (cached) yes checking whether to enable maintainer-specific portions of Makefiles... no checking whether NLS is requested... yes Unescaped left brace in regex is illegal here in regex; marked by <-- HERE in m/^(.*)\${ <-- HERE ?([A-Z_]+)}?(.*)$/ at /usr/local/bin/intltool-update line 876. checking for intltool >= 0.40.0... found configure: error: Your intltool is too old. You need intltool 0.40.0 or later.
intltool 0.51.0 installed

Buttons in a form: focus returns to the first button always

Hi,
and first of all: thanks for the great yad!
I'm using yad version 5.0.

The small problem is the focus in a form filled with action buttons. The focus always returns to the first button regardless of which button was clicked.

Here's an example:
yad --form --columns=2 --field="Emacs":fbtn emacs --field="Mousepad":fbtn mousepad --field="Leafpad":fbtn leafpad >&/dev/null
That is a simple form with 3 buttons, each start a program (here: editors just for demonstration).
If I click e.g. the Leafpad button, the focus goes back to Emacs button.

This may be a bit confusing especially when using some changed theming - then the focused button may be with a different color than all other buttons.

Completely Get Rid of X

Wayland is Future.
yad runs without X or Xwayland .yad runs natively in wayland.
But,running yad programs gives us this error.

(yad:19801): Gdk-WARNING **: 20:59:56.797: ../gtk/gdk/x11/gdkwindow-x11.c:5611 drawable is not a native X11 window

--focus-field does not focus when --form is swallowed into --paned window

My --paned window has 2 tabs placed vertically, the upper tab is a --text-info and the lower tab is a --form for data entry. I am trying to focus a field in the --form tab, but it does not focus.
Here is the code,

yad --plug=12345 --tabnum=1 --text-info --filename="$LINBMDDIR/TranscribedData/$CURRENTDTAFILE" --back=yellow --tail --editable &> "$LINBMDDIR/Program/Record-result_keyed" &

yad --plug=12345 --tabnum=2 --text="$MESSAGE" --form --columns=5 --focus-field=2 --field="" "${ENTRY_RESULTS[0]}" --field="" "${ENTRY_RESULTS[1]}" --field="" "${ENTRY_RESULTS[2]}" --field="" "${ENTRY_RESULTS[3]}" --field="" "${ENTRY_RESULTS[4]}" &> "$LINBMDDIR/Program/Record-result_entry" &

yad --paned --key=12345 --title "$WINDOWTITLE" --width=1000 --height=700 --orient=vert --splitter=550 --active-tab=2 --buttons-layout=center --button="<span foreground='red' font-size='x-large' font='bold'>ABANDON</span>":1 --button="<span foreground='green' font-size='x-large' font='bold'>UPDATE</span>":0

If I make a standalone --form, --focus-field=2 does work, ie,

yad --text="$MESSAGE" --form --columns=5 --focus-field=2 --field="" "${ENTRY_RESULTS[0]}" --field="" "${ENTRY_RESULTS[1]}" --field="" "${ENTRY_RESULTS[2]}" --field="" "${ENTRY_RESULTS[3]}" --field="" "${ENTRY_RESULTS[4]}" &> "$LINBMDDIR/Program/Record-result_entry"

I'm wondering if this is a bug or something that I doing incorrectly.

bug or feature in version 0.42.0 with icon size

yad --version
0.42.0 (GTK+ 3.24.5)

after the last update I noticed a little difference with the icons, maybe someone could give me a hint how to fix that. I am using icons with 32x32px.

with yad version 0.41.0 it looks like this:
bildschirmfoto 2019-02-25 03 29 03

with the actual yad version 0.42.0 it looks like this:
bildschirmfoto 2019-02-25 03 30 23

the example code:

yad --width=600 --height=200 --form --columns=4 --center --scroll \
--borders=30 --no-buttons \
--field "epiphany!/usr/share/dsys/icons/epiphany.png!(Open Source):fbtn" \
"bash -c 'browser_installation epiphany'" \
--field "vivaldi!/usr/share/dsys/icons/vivaldi.png!(Proprietär):fbtn" \
"bash -c 'browser_installation vivaldi'" \
--field "tor-browser!/usr/share/dsys/icons/tor-browser.png!(Open Source):fbtn" \
"bash -c 'browser_installation tor-browser'"

I have tried different parameter --icon-size=32, --icons --icon-width=32, but nothing changes.
Do I really need to buy magnifying glasses ? :-D

Button arguements not parsed

Exapmle of what works correctly:
yad --form --height=450 --center --width=800 --title="PulseJoin" --text="Что будем делать?" --field="Text text":FBTN "yad --text Text " --field="Нужно выбрать режим работы.":LBL
Clicking the button 'Text text' opens yad dialog, screenshot:
_2018-09-09_01-50-32

What does not work:
yad --form --height=450 --center --width=800 --title="PulseJoin" --text="Что будем делать?" --field="Нужно выбрать режим работы.":LBL --field="Text text":FBTN "yad --text Text"
The button does not work.
_2018-09-09_01-51-35

0.32.0 (GTK+ 3.22.26) (sorry for the old YAD version, have not checked with a newer yet)

how to create notification icon without starting dbus?

I'm trying to get rid of dbus on my system. I'm almost there but yad (one of my very favorite utilities) starts dbus when it creates notification icon:

bruno@box:~$ pgrep -fa dbus
bruno@box:~$ yad --notification --image=dialog-ok --text="testing" &
bruno@box:~$ pgrep -fa dbus
8504 dbus-launch --autolaunch b67e35c57ed5e6cf8ef0f5b65da5d7b3 --binary-syntax --close-stderr
8505 /usr/local/bin/dbus-daemon --syslog-only --fork --print-pid 5 --print-address 7 --session
8511 /usr/local/bin/dbus-daemon --config-file=/usr/local/share/defaults/at-spi2/accessibility.conf --nofork --print-address 3

Is it possible for yad to create notification icons without starting dbus?

--text-info specified vs. omitted

Specifying --text-info renders the window with an unexpected separator and empty panel below the text:
yad --borders=0 --center --no-buttons --text="test" --text-info --undecorated 2> /dev/null &

Omitting --text-info renders the window as expected:
yad --borders=0 --center --no-buttons --text="test" --undecorated 2> /dev/null &

I expect the omission of a dialog type to throw an error, such as zenity's "You must specify a dialog type."

I also expect the text-info dialog to render, ironically, as it currently does without specifying a dialog, which does not add a panel below the text.

Image switch now acts the same as Image-on-top

Not sure when this crept in, but specifying an image (which previously would result in the image appearing to the left of all the content as with normal dialogue windows) now results in the image appearing on top of (above) everything, as though the additional "image-on-top" flag had been specified.

GTK2 --geometry width/height ignored

Hello,

The GTK2 build of b3a9904 ignores the width x heigth components of option --geometry. Try
yad --geometry=300x200+800+600
position is set correctly, but the window size is smaller than requested.
If you instead try
yad --geometry=300x200+800+600 --width=300 --height=200
size and position are set correctly.

Center on primary monitor when using multiple monitors

Is there a way to get a dialogue box to open centred on a particular display when using multiple monitors? With the --center argument, the dialogue box opens at the side of the primary monitor as though it's trying to centre on the total available display space but, mercifully, respecting the edge of the monitor.
I'm using this on Raspbian.

Please let me know if I'm missing something.
Thanks

yad notification menu right click doesn't work anymore

yad --version
3.0 (GTK+ 3.24.10)

hi Victor,

I recently switch from version yad 0.41 to 3.0-1 and thanks to you the icons are displayed correctly with the option --keep-icon-size. Now I have a problem with the notification icon in the taskbar. The Left-Click option works fine, but the Right-Click option for the menu doesn't work with the version 3.0-1. Maybe you could give me a hint, how to fix that.

this code works with version 0.41
yad --notification --listen --image='security-high' --menu=menulist

with the version 3.0-1 the Right Click does nothing, it just throws errors in the console when you right click the notification icon

(yad:3013): GLib-GObject-WARNING **: 18:20:10.979: invalid cast from 'GtkStatusIcon' to 'GtkWidget'

(yad:3013): Gtk-CRITICAL **: 18:20:10.979: gtk_menu_popup_at_widget: assertion 'GTK_IS_WIDGET (widget)' failed

(yad:3013): GLib-GObject-WARNING **: 18:20:11.045: invalid cast from 'GtkStatusIcon' to 'GtkWidget'

(yad:3013): Gtk-CRITICAL **: 18:20:11.045: gtk_menu_popup_at_widget: assertion 'GTK_IS_WIDGET (widget)' failed

any Idea ?

WebKit2

What about to support WebKit2 API? Webkit1 is deprecated.
In the next OpenSUSE release webkitgtk-3.0 is not available any more.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.