You are not logged in.

#126 2012-10-21 12:35:58

Cloudef
Member
Registered: 2010-10-12
Posts: 636

Re: xcmenu - lightweight clipboard manager for X (formerly loliclip)

Can I have the output of this when you are able to reproduce the bug.

for i in $(loliclip -h | grep -o "text/.*"); do loliclip -b "$i"; echo "\n----"; done

Offline

#127 2012-10-21 12:39:44

karabaja4
Member
From: Croatia
Registered: 2008-09-14
Posts: 997
Website

Re: xcmenu - lightweight clipboard manager for X (formerly loliclip)

~ >>> for i in $(loliclip -h | grep -o "text/.*"); do loliclip -b "$i"; echo "\n----"; done
\n----
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa\n----
\n----
ÿþBeginners' subforum for general Arch issues. Please consult the 
excellent Arch wiki and web before posting. Also try the forum search 
function at the upper left.\n----
~ >>> 

this is when you follow steps from before, just after 8:

karabaja4 wrote:

1. Kill all running loliclip processes.
2. Delete .local/share/loliclip/
3. Start loliclip.
4. Open Firefox, go to bbs.archlinux.org, copy this text below newbie corner subforum (not this one, the one on the forum website).

Beginners' subforum for general Arch issues. Please consult the excellent Arch wiki and web before posting. Also try the forum search function at the upper left.

5. Close Firefox.
6. Open gcw, write "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaa" (don't paste this or anything, write with your keyboard), copy it.
7. Close gcw.
8. Open Firefox, go to Gmail, compose new mail, paste in mail contents area.

Last edited by karabaja4 (2012-10-21 12:41:53)

Online

#128 2012-10-21 12:40:18

Šaran
Member
From: Bosnia
Registered: 2011-09-03
Posts: 407

Re: xcmenu - lightweight clipboard manager for X (formerly loliclip)

There you go.

\n----
\n----
\n----
ÿþYou've reached the website for <strong>Arch Linux</strong>, a
    lightweight and flexible Linux® distribution that tries to Keep It
    Simple.\n----

EDIT: I can select aaaaaaaaaaa in lolictrl.

Last edited by Šaran (2012-10-21 12:41:37)

Offline

#129 2012-10-21 12:42:05

Cloudef
Member
Registered: 2010-10-12
Posts: 636

Re: xcmenu - lightweight clipboard manager for X (formerly loliclip)

Seems like the Beginners forum text is in some selection.. This is the same bug as the libreoffice one and the CLEAR_SELECTIONS will remedy it. And there is no easy workaround since I can't decide in which order to give the selections to application.

for i in $(loliclip -h | grep -o "text/.*"); do loliclip -b "$i"; echo -e "\n--$i--"; done

Can you give me output with this again, so I know from which selection it is, thanks.

Last edited by Cloudef (2012-10-21 12:47:42)

Offline

#130 2012-10-21 12:45:49

karabaja4
Member
From: Croatia
Registered: 2008-09-14
Posts: 997
Website

Re: xcmenu - lightweight clipboard manager for X (formerly loliclip)

That line is identical to the one you gave before?

Online

#131 2012-10-21 12:47:54

Cloudef
Member
Registered: 2010-10-12
Posts: 636

Re: xcmenu - lightweight clipboard manager for X (formerly loliclip)

Oh, sorry about that. Modified the post above.

Offline

#132 2012-10-21 12:51:02

karabaja4
Member
From: Croatia
Registered: 2008-09-14
Posts: 997
Website

Re: xcmenu - lightweight clipboard manager for X (formerly loliclip)

~ >>> for i in $(loliclip -h | grep -o "text/.*"); do loliclip -b "$i"; echo -e "\n--$i--"; done

--text/uri-list--
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
--text/plain--

--text/richtext--
ÿþBeginners' subforum for general Arch issues. Please consult the 
excellent Arch wiki and web before posting. Also try the forum search 
function at the upper left.
--text/html--

I should mention that if I try to paste in gcw in the last step instead of Gmail textbox, it works fine and pastes "aaaaaaaaaaaaaaaa...".

Last edited by karabaja4 (2012-10-21 12:53:04)

Online

#133 2012-10-21 12:51:22

Šaran
Member
From: Bosnia
Registered: 2011-09-03
Posts: 407

Re: xcmenu - lightweight clipboard manager for X (formerly loliclip)

--text/uri-list--

--text/plain--

--text/richtext--
ÿþYou've reached the website for <strong>Arch Linux</strong>, a
    lightweight and flexible Linux® distribution that tries to Keep It
    Simple.
--text/html--

EDIT: It pastes aaaaaaaaaaaa in recipient field in gmail (or in text field in dwb), but text field gets Arch text.

Last edited by Šaran (2012-10-21 12:53:58)

Offline

#134 2012-10-21 12:53:27

karabaja4
Member
From: Croatia
Registered: 2008-09-14
Posts: 997
Website

Re: xcmenu - lightweight clipboard manager for X (formerly loliclip)

P.S. I edited the post above. I missed the last line that said "--text/html--".

Online

#135 2012-10-21 12:55:30

Cloudef
Member
Registered: 2010-10-12
Posts: 636

Re: xcmenu - lightweight clipboard manager for X (formerly loliclip)

Yeah, the text is in text/html, where firefox takes it from.

Can you try put these to 1 in config.h:

 REGISTER_SELECTION("text/plain", 1),
 REGISTER_SELECTION("text/richtext", 1),
 REGISTER_SELECTION("text/html", 1),    

Does it still happen? This is quite bad workaround.. And I think making CLEAR_SELECTIONS default would be better.

EDIT: Actually, I have good idea.. brb

Last edited by Cloudef (2012-10-21 12:57:07)

Offline

#136 2012-10-21 12:59:23

Šaran
Member
From: Bosnia
Registered: 2011-09-03
Posts: 407

Re: xcmenu - lightweight clipboard manager for X (formerly loliclip)

Still the same.

Offline

#137 2012-10-21 13:17:39

Šaran
Member
From: Bosnia
Registered: 2011-09-03
Posts: 407

Re: xcmenu - lightweight clipboard manager for X (formerly loliclip)

One more thing - I'm not sure if this comes from dwb or loliclip.
Copying from dwb's command line (or current url or new tab field) with ctrl+c only closes dialog (nothing in lolictrl or "for i in $(loli...)", but right click copy works.

Offline

#138 2012-10-21 13:41:47

Cloudef
Member
Registered: 2010-10-12
Posts: 636

Re: xcmenu - lightweight clipboard manager for X (formerly loliclip)

Pushed update to git, can you test again and post the output of the command before.

Šaran wrote:

One more thing - I'm not sure if this comes from dwb or loliclip.
Copying from dwb's command line (or current url or new tab field) with ctrl+c only closes dialog (nothing in lolictrl or "for i in $(loli...)", but right click copy works.

That's dwb.

Offline

#139 2012-10-21 13:50:29

Šaran
Member
From: Bosnia
Registered: 2011-09-03
Posts: 407

Re: xcmenu - lightweight clipboard manager for X (formerly loliclip)

--text/uri-list--
ÿþBeginners' subforum for general Arch issues. Please consult the 
excellent Arch wiki and web before posting. Also try the forum search 
function at the upper left.
--text/plain--
ÿþBeginners' subforum for general Arch issues. Please consult the 
excellent Arch wiki and web before posting. Also try the forum search 
function at the upper left.
--text/richtext--
ÿþBeginners' subforum for general Arch issues. Please consult the 
excellent Arch wiki and web before posting. Also try the forum search 
function at the upper left.
--text/html--

Still no aaaaaaaaaaaaa.

Offline

#140 2012-10-21 13:51:52

karabaja4
Member
From: Croatia
Registered: 2008-09-14
Posts: 997
Website

Re: xcmenu - lightweight clipboard manager for X (formerly loliclip)

It works now for me, it pastes aaaaaaaaaaa

~ >>> for i in $(loliclip -h | grep -o "text/.*"); do loliclip -b "$i"; echo -e "\n--$i--"; done

--text/uri-list--
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
--text/plain--
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
--text/richtext--
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
--text/html--

Why doesn't it work for Šaran now ... ?

Last edited by karabaja4 (2012-10-21 13:56:49)

Online

#141 2012-10-21 13:57:37

Cloudef
Member
Registered: 2010-10-12
Posts: 636

Re: xcmenu - lightweight clipboard manager for X (formerly loliclip)

Try again, it should work now. (pushed commit to git)

Last edited by Cloudef (2012-10-21 13:58:00)

Offline

#142 2012-10-21 14:05:54

karabaja4
Member
From: Croatia
Registered: 2008-09-14
Posts: 997
Website

Re: xcmenu - lightweight clipboard manager for X (formerly loliclip)

Now it's different but it still works:

~ >>> for i in $(loliclip -h | grep -o "text/.*"); do loliclip -b "$i"; echo -e "\n--$i--"; done

--text/uri-list--
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
--text/plain--

--text/richtext--

--text/html--

Cloudef, could you please elaborate a bit on what was wrong?

Online

#143 2012-10-21 14:09:32

karabaja4
Member
From: Croatia
Registered: 2008-09-14
Posts: 997
Website

Re: xcmenu - lightweight clipboard manager for X (formerly loliclip)

New problem - now copying images in Gimp doesn't work (after you copy, close Gimp, open it and try to paste the copied image).

Online

#144 2012-10-21 14:25:17

Cloudef
Member
Registered: 2010-10-12
Posts: 636

Re: xcmenu - lightweight clipboard manager for X (formerly loliclip)

New problem - now copying images in Gimp doesn't work (after you copy, close Gimp, open it and try to paste the copied image).

Should be fixed now.

Cloudef, could you please elaborate a bit on what was wrong?

There was nothing wrong. I just introduced new options to config.h that allows to workaround the issue, without using CLEAR_SELECTIONS.
Basically the special selections marked with reset bit, gets reset when new data is copied.
Also now every special clipboard can have their own shared data block, or sperate one.

Last edited by Cloudef (2012-10-21 14:25:34)

Offline

#145 2012-10-21 14:37:49

karabaja4
Member
From: Croatia
Registered: 2008-09-14
Posts: 997
Website

Re: xcmenu - lightweight clipboard manager for X (formerly loliclip)

I think everything works now.

Thanks for your effort! smile

Online

#146 2012-10-21 15:09:48

Šaran
Member
From: Bosnia
Registered: 2011-09-03
Posts: 407

Re: xcmenu - lightweight clipboard manager for X (formerly loliclip)

It doesn't work here. I have tried removing loliclip, history, rebuilding few times, and even rebooting.

--text/uri-list--

--text/plain--

--text/richtext--
ÿþBeginners' subforum for general Arch issues. Please consult the 
excellent Arch wiki and web before posting. Also try the forum search 
function at the upper left.
--text/html--

Offline

#147 2012-10-21 15:36:54

karabaja4
Member
From: Croatia
Registered: 2008-09-14
Posts: 997
Website

Re: xcmenu - lightweight clipboard manager for X (formerly loliclip)

Šaran wrote:

It doesn't work here. I have tried removing loliclip, history, rebuilding few times, and even rebooting.

Even before this latest change, your output of the "for i" line was different from mine. You are probably doing something different to reproduce the bug.

If you would write your exact steps we could try to reproduce it exactly.

P.S. Also, make sure you have the latest git version (2.4-3).

Last edited by karabaja4 (2012-10-21 15:38:02)

Online

#148 2012-10-21 15:51:59

Šaran
Member
From: Bosnia
Registered: 2011-09-03
Posts: 407

Re: xcmenu - lightweight clipboard manager for X (formerly loliclip)

I have 2.4-3.
I'm doing everything like you do, only difference is Geany instead of gcw.

Kill loliclip, delete ~/.local/share/loliclip, start loliclip deamonised (-d).
Copy text on Arch forums in Firefox, then close it.
Open geany, type aaaaaa and copy it. Close geany.
Open Gmail in Firefox and paste in new mail. I get text from forum in new mail, but aaaaaa in everything else.
I can't paste aaaaaaaa in Gmail even if I select it in lolictrl.

Offline

#149 2012-10-21 15:58:03

Cloudef
Member
Registered: 2010-10-12
Posts: 636

Re: xcmenu - lightweight clipboard manager for X (formerly loliclip)

Šaran wrote:

I have 2.4-3.
I'm doing everything like you do, only difference is Geany instead of gcw.

Kill loliclip, delete ~/.local/share/loliclip, start loliclip deamonised (-d).
Copy text on Arch forums in Firefox, then close it.
Open geany, type aaaaaa and copy it. Close geany.
Open Gmail in Firefox and paste in new mail. I get text from forum in new mail, but aaaaaa in everything else.
I can't paste aaaaaaaa in Gmail even if I select it in lolictrl.

I'm not able to reproduce with your steps. Do you have modified config.h?
Does this happen even if you use CLEAR_SELECTIONS bitflag?

Offline

#150 2012-10-21 16:14:50

Šaran
Member
From: Bosnia
Registered: 2011-09-03
Posts: 407

Re: xcmenu - lightweight clipboard manager for X (formerly loliclip)

My config.h isn't modified and it works with CLEAR_SELECTIONS.

Offline

Board footer

Powered by FluxBB