Search found 29 matches

by abacus7
Mon Feb 28, 2022 3:37 am
Forum: PCManFM
Topic: "Open With" Context Menu - Bash Commands Topic is solved
Replies: 14
Views: 44971

Re: "Open With" Context Menu - Bash Commands Topic is solved

This shouldn't be necessary. Did you mark ~/.local/bin/grepper executable, as I pointed out earlier? Yep, I marked it executable. A couple of years ago when I was experimenting with scripts and desktop files, I noticed how hard it was to get things to work right. Reading a bunch of StackExchange or...
by abacus7
Sun Feb 20, 2022 9:06 am
Forum: PCManFM
Topic: "Open With" Context Menu - Bash Commands Topic is solved
Replies: 14
Views: 44971

Re: "Open With" Context Menu - Bash Commands Topic is solved

Success! The final touch needed was to prepend "bash" to the command line in the desktop file. It hadn't worked when I tried it earlier (directly inputting the grep code into the desktop file), but it works now that I'm referencing a script which contains the grep code. Here is the final d...
by abacus7
Sun Feb 20, 2022 3:21 am
Forum: PCManFM
Topic: "Open With" Context Menu - Bash Commands Topic is solved
Replies: 14
Views: 44971

Re: "Open With" Context Menu - Bash Commands Topic is solved

Didn't work, but I'll show you what I did. First I created the script and put it in .local/bin: #!bin/bash echo "Enter keyword" && read keyword && grep -i --color=always "$keyword" "$1"; read Then I made it executable. Then I created a desktop file and p...
by abacus7
Fri Feb 18, 2022 9:20 am
Forum: PCManFM
Topic: "Open With" Context Menu - Bash Commands Topic is solved
Replies: 14
Views: 44971

Re: "Open With" Context Menu - Bash Commands Topic is solved

Did you ever read the links I provided to you in my first reply? Yes. I read it when you first posted it, and unless I missed something, there were no examples using a bash command line as the Exec. It seems to be mainly about using desktop files for GUI programs like file managers, text editors. P...
by abacus7
Tue Feb 15, 2022 6:51 am
Forum: PCManFM
Topic: "Open With" Context Menu - Bash Commands Topic is solved
Replies: 14
Views: 44971

Re: "Open With" Context Menu - Bash Commands Topic is solved

Show us what you have so far. The actual code. It sounds to me like you want to launch an interactive shell script that does what you want. One that you would need to write. That would be launched by your filemanager action. The code was in the first post. Just a little interactive grep command lin...
by abacus7
Sat Feb 12, 2022 10:20 pm
Forum: PCManFM
Topic: "Open With" Context Menu - Bash Commands Topic is solved
Replies: 14
Views: 44971

Re: "Open With" Context Menu - Bash Commands Topic is solved

So the only problem is that you can get it to work on folders, but not on files? Have you clicked on the links I gave you, because it is explained there. You need a different mimetype. MimeTypes=all/allfiles; should do for all actual files (but not symlinks). MimeTypes=all/all; is for everything , ...
by abacus7
Thu Feb 10, 2022 4:17 am
Forum: PCManFM
Topic: "Open With" Context Menu - Bash Commands Topic is solved
Replies: 14
Views: 44971

Re: "Open With" Context Menu - Bash Commands Topic is solved

Thanks. I did have already an OpenFolderInRoot desktop file in the Actions folder. It was a bit different but works the same. I also have an OpenInNano-Root desktop file that I can use on individual files and that is in the .local/share/applications folder. What I don't have is a way to click on an ...
by abacus7
Wed Feb 09, 2022 3:57 am
Forum: PCManFM
Topic: "Open With" Context Menu - Bash Commands Topic is solved
Replies: 14
Views: 44971

"Open With" Context Menu - Bash Commands Topic is solved

I frequently use the following interactive grep command: echo "Enter keyword" && read keyword && grep -i --color=always $keyword /pathtofilename As an alternative, it would be handy to have it as a desktop file that could be called from the context menu ("Open with&quo...
by abacus7
Mon Jun 07, 2021 1:36 am
Forum: Installation and Upgrade of LXDE
Topic: installing LXDE on BodhiLinux Topic is solved
Replies: 10
Views: 28448

Re: installing LXDE on BodhiLinux Topic is solved

But the result then won't be polished anymore. In that case I'd rather recommend installing Debian proper, and opting for an LXDE desktop. I'd argue that pure Debian as a base is not what most Lubuntu-LXDE users would want. Starting with the fact that Debian-LXDE comes with Wicd (or is it Wikd?) in...
by abacus7
Mon May 31, 2021 1:47 am
Forum: Installation and Upgrade of LXDE
Topic: LXDE as default session
Replies: 2
Views: 7445

Re: LXDE as default session

I installed LXDE on Ubuntu Mate and find it's much better! I can't find out where to change the default login session from Mate to LXDE. Obviously I can select the session in the login window, but I would like to make LXDE the default. Thanks! IIRC, after logging out from LXDE, there should be be o...