Ymount 002

Core libraries and systems
Message
Author
User avatar
L18L
Posts: 3479
Joined: Sat 19 Jun 2010, 18:56
Location: www.eussenheim.de/

Re: It works.

#91 Post by L18L »

sc0ttman wrote:
L18L wrote:Good point,
in other scripts the bashism

Code: Select all

export OUTPUT_CHARSET=UTF-8
enables correct output without utf8. This is looking for me like another missing feature of yad.
It might be, but I get the same thing with some GTKDialog apps that also use that code.. Think it is more likely that not fully changing system language causes problems.. But not a major issue.. Also the non-bashism way is simply

Code: Select all

VAR='something'; export VAR
1 example please
EDITED
1 example for same thing with some GTKDialog apps please
sc0ttman wrote:But actually, I IMVHO think it's generally not the best idea to allow users to choose languages/locales on a program by program basis.. Ymount should automatically show Russian if my locale is Russian, German if its German, and so on.. Ymount IMHO, should always and only show up in the current system language.. and fall back to English is none found, of course..

Not saying things should be changed, just a thought.
Ymount does show up in the current system language if available and fall back..
I am giving users the freedom to change GUI language, nobody is forced to do it. Somebody might find it useful.
BTW seamonkey addon quick-locale-switcher does it, Suzy does it...
(edited: gcompris does it too )
It is new in puppy now.
sc0ttman wrote:
There is a 'Quit' button to quit the application. What do you want to close as there isn't anything opened?
EDITED: Now I see: rox-filer has opened! But as rox-filer does NOT have a close button ymount also has none 8)
I mean that if other windows go on top of ymount, there is nothing in the tasklist at the bottom... So I cannot click on the programs tasklist box, to bring to front, maximise, minimise, etc.. I must minimise all other programs to see it again..
I do not minimize all other programs, just use ALT TAB or choose 'Layer top' before.
I see, putting ymount into the task bar is a feature request. But I don't know how to do it.
sc0ttman wrote:
Maybe you make pmount a symlink to ymount in Akita :idea: :?:
I will keep both :D I personally think pmount is a little simpler, and is fast enough on Akita, as I hacked it a bit to speed things up - uses ash, less piping, etc.. I will compare ymount and pmount code (and maybe JWM-tools) to see if I can improve either one any further..
If you compare them then please compare among others:
Mount all drives.
Unmount all drives... :)
Last edited by L18L on Fri 16 Sep 2011, 06:52, edited 2 times in total.

sheldonisaac
Posts: 902
Joined: Mon 22 Jun 2009, 01:36
Location: Philadelphia, PA

Re: re: mount -o utf8

#92 Post by sheldonisaac »

L18L wrote: Take version 1.1 please

If anything goes wrong report it please, if OK too :)
Thanks to you and sc0ttman.

I uninstalled ymount ,

and installed ver 1.2

Initially all was well: all the partitions showed up for mounting or unmounting.

after rebooting, the previous behavior occurred: they disappear from the ymount screen after they are mounted or unmounted.

Here's a paste from terminal:

Code: Select all

ash: : invalid number
df: invalid --block-size argument `'
ash: : invalid number
ash: : invalid number
ash: : invalid number
ash: : invalid number
df: invalid --block-size argument `'
ash: : invalid number
ash: : invalid number
ash: : invalid number
df: invalid --block-size argument `'
ash: : invalid number
ash: : invalid number
ash: : invalid number
df: invalid --block-size argument `'
ash: : invalid number
ash: : invalid number

User avatar
L18L
Posts: 3479
Joined: Sat 19 Jun 2010, 18:56
Location: www.eussenheim.de/

Re: re: mount -o utf8

#93 Post by L18L »

sheldonisaac wrote:
L18L wrote: Take version 1.1 please

If anything goes wrong report it please, if OK too :)
Thanks to you and sc0ttman.

I uninstalled ymount ,

and installed ver 1.2
That's for you sc0ttman :wink:

Jim1911
Posts: 2460
Joined: Mon 19 May 2008, 20:39
Location: Texas, USA

#94 Post by Jim1911 »

As you can see from the attached desktop, the latest 1.2 does not display partitions correctly using Three Headed Dog 5.2.9. Only unmounted partitions are displayed. Same problem exists in versions 1.0 and 1.1.
Attachments
image-1.jpg
(54.42 KiB) Downloaded 982 times
Last edited by Jim1911 on Wed 14 Sep 2011, 21:49, edited 2 times in total.

User avatar
sc0ttman
Posts: 2812
Joined: Wed 16 Sep 2009, 05:44
Location: UK

#95 Post by sc0ttman »

Just a note, if you change the first line of the ymount 1.2 script from

Code: Select all

#!/bin/ash
to

Code: Select all

#!/bin/sh
, then any risk that it was me who broke something is removed ;) Then debugging can continue as normal :)

But seriously, in case anyone was wondering, I only changed a few very simple things and then the 'hashbang' on the 1st line.. I did not touch much... I'm guessing the problem lies in the fact that I completely forgot about the 'function' file in /usr/local/ymount - it still contains bashisms which will be throwing the main 1.2 script, as it uses ash.
[b][url=https://bit.ly/2KjtxoD]Pkg[/url], [url=https://bit.ly/2U6dzxV]mdsh[/url], [url=https://bit.ly/2G49OE8]Woofy[/url], [url=http://goo.gl/bzBU1]Akita[/url], [url=http://goo.gl/SO5ug]VLC-GTK[/url], [url=https://tiny.cc/c2hnfz]Search[/url][/b]

User avatar
sc0ttman
Posts: 2812
Joined: Wed 16 Sep 2009, 05:44
Location: UK

#96 Post by sc0ttman »

here is the updated functions file, with all bashisms removed.. I think.. the 'checkbashisms' script I used claims it's all fine... All changes commented with "# sc0ttman" at the end of the line... Plus I put the long piped commands on one line, and added a sync after (Barry recommends that with long piped commands)...

I haven't tested yet, but here it is anyway...
NOTE: This is not a real gz archive, just remove the '.gz' extension..
Attachments
functions.gz
remove the .gz extension, copy to /usr/local/ymount
(10.71 KiB) Downloaded 690 times
[b][url=https://bit.ly/2KjtxoD]Pkg[/url], [url=https://bit.ly/2U6dzxV]mdsh[/url], [url=https://bit.ly/2G49OE8]Woofy[/url], [url=http://goo.gl/bzBU1]Akita[/url], [url=http://goo.gl/SO5ug]VLC-GTK[/url], [url=https://tiny.cc/c2hnfz]Search[/url][/b]

sheldonisaac
Posts: 902
Joined: Mon 22 Jun 2009, 01:36
Location: Philadelphia, PA

#97 Post by sheldonisaac »

sc0ttman wrote:here is the updated functions file, with all bashisms removed.
GOT IT.

Also did the

#!/bin/sh

No change in the funny behavior mentioned previously.

User avatar
sc0ttman
Posts: 2812
Joined: Wed 16 Sep 2009, 05:44
Location: UK

#98 Post by sc0ttman »

sheldonisaac wrote:
sc0ttman wrote:here is the updated functions file, with all bashisms removed.
GOT IT.

Also did the

#!/bin/sh

No change in the funny behavior mentioned previously.
Did you get this 'funny behaviour' with 1.1?
[b][url=https://bit.ly/2KjtxoD]Pkg[/url], [url=https://bit.ly/2U6dzxV]mdsh[/url], [url=https://bit.ly/2G49OE8]Woofy[/url], [url=http://goo.gl/bzBU1]Akita[/url], [url=http://goo.gl/SO5ug]VLC-GTK[/url], [url=https://tiny.cc/c2hnfz]Search[/url][/b]

User avatar
L18L
Posts: 3479
Joined: Sat 19 Jun 2010, 18:56
Location: www.eussenheim.de/

ymount

#99 Post by L18L »

Jim1911 wrote:As you can see from the attached desktop, the latest 1.2 does not display partitions correctly using Three Headed Dog 5.2.9. Only unmounted partitions are displayed. Same problem exists in versions 1.0 and 1.1.
Good catch,
latest versions had new parameter unit_size (G or M or K).
Delete the config file once before launching ymount and everything is OK.

Code: Select all

rm /root/.config/ymount.conf
Thanks again for reporting
@all,
sorry for your inconveniences
L

Jim1911
Posts: 2460
Joined: Mon 19 May 2008, 20:39
Location: Texas, USA

Re: ymount

#100 Post by Jim1911 »

L18L wrote:
Jim1911 wrote:As you can see from the attached desktop, the latest 1.2 does not display partitions correctly using Three Headed Dog 5.2.9. Only unmounted partitions are displayed. Same problem exists in versions 1.0 and 1.1.
Good catch,
latest versions had new parameter unit_size (G or M or K).
Delete the config file once before launching ymount and everything is OK.

Code: Select all

rm /root/.config/ymount.conf
Thanks again for reporting
@all,
sorry for your inconveniences
L
Deleting ymount.conf works, thanks.

sheldonisaac
Posts: 902
Joined: Mon 22 Jun 2009, 01:36
Location: Philadelphia, PA

Re: ymount

#101 Post by sheldonisaac »

I SNIPPED some.
Jim1911 wrote:
L18L wrote:
Jim1911 wrote:the latest 1.2 does not display partitions correctly

Same problem exists in versions 1.0 and 1.1.
Delete the config file once before launching ymount and everything is OK.

Code: Select all

rm /root/.config/ymount.conf
L
Deleting ymount.conf works, thanks.
Seems OK now, many thanks!

User avatar
L18L
Posts: 3479
Joined: Sat 19 Jun 2010, 18:56
Location: www.eussenheim.de/

ymount version 1.3.1

#102 Post by L18L »

Having used ymount in wary52 help window did not show caused by not existing image gtk-help.

As I have no idea where this or other gtk images are located
I have been changing to just another help image.

Another change was:
If rox-filer is not on the system (Guy Dog) then emelfm2 is used.

If you are happy with your version of ymount now there is no need to upgrade.
Attachments
ymount-1.3.1.pet
(15.14 KiB) Downloaded 835 times

Post Reply