-
Notifications
You must be signed in to change notification settings - Fork 300
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
opening .desktop Type=Link with "Open with..." context menu (right cick)->(text editor) opens the link url not the '.desktop' file #2854
Comments
Desktop files supply information to a GUI to run the a specified program. Since they are text files, right-click gives an option to use a text editor. |
@Jeremy7701 hi how about you try yourself to follow 'Steps to reproduce'
im happy you appear to know what a desktop file is
i dont see how this is relevent to this issue tbh ? what im missing wrt your reply is how
leads you to conclude
thanks for taking the time to share your thaughts i dont agree
questions how can a plain text file 'work properly' ? so perhaps we can agree what component of nemo is processing right click -> open with editor ? what component of nemo is doing the work of opening desktop files ? is it posible to change eather of the above so right click open with editor actualy works as expected? 🙃 |
I followed your instructions. |
ftr curently
same curently in this context ... allthough i have previously (now seamingly distant past) looked into this in various distros ... and (ftr) found some intresting approaches that thread hints at xdg-utils as the canonical sloution all though : https://github.com/linuxmint/nemo/search?p=1&q=%22open+with%22 Line 1151 in 8b9cdfc
& nemo/src/nemo-properties-window.c Line 4730 in 7fe8363
Line 1526 in 8b9cdfc
... Line 1583 in 8b9cdfc
Line 1585 in 8b9cdfc
(i guess) it appears this switch statement handles the case for each "action" 🤔 will have a go at geting more debug out put , and see it is posible to identfy which (if any??) case it's geting handled as any hints ??!! ---edit---
...
🤨 |
perhaps related #2498 - .desktop link opens unexpected application |
this how ever ( in 2021 🙄 ) this appears curently not posible 🤔 hi @mtwebster any clue what should be expected my view is the expected result from this action should be |
META INFORMATIONThis is still a problem in 2023/2024, but the problem is deeper. The core problem here, is that The thing is. Mint, by extension of Ubuntu, IS by its very definition, an OS for such people. (Apple users, to be precise, because Gnome. But … details …) While all that is true… it still must be said, that if you’re not that type of user, then Mint (or any SystemD/Linux or Android/Linux etc) is simply the wrong distribution for you, and you should use GNU/Linux or a Unix like BSD instead, where you’re the boss, full stop. WORKAROUND
#! /bin/bash
# REQUIRES ZENITY
xdg-open /usr/share/nemo/actions/sample.nemo_action &
name="$( zenity --entry --title="Add action" --width=800 --ok-label="Continue »" --text="Title:" )" && \
auswahl="$( zenity --entry --title="Add action" --width=800 --ok-label="Continue »" --text="Selection ([s]ingle,[m]multi,any,notnone,none,<number>):" --entry-text="notnone" )" && \
endungen="$( zenity --entry --title="Add action" --width=800 --ok-label="Continue »" --text="Type (dir,none,nodirs,any,<file extension>):" --entry-text="any;" )" && \
befehl="$( zenity --text-info --title="Add action" --width=800 --height=200 --ok-label="Create" --editable )" && \
na="/tmp/$name.nemo_action" && \
echo "[Nemo Action]" > "$na" && \
echo "Name=$name" >> "$na" && \
echo "Exec=$befehl" >> "$na" && \
echo "Selection=$auswahl" >> "$na" && \
echo "Extensions=$endungen" >> "$na" && \
echo "Quote=double" >> "$na" && \
mv "$na" "$HOME/.local/share/nemo/actions/" || rm -f "$na" Put it in |
😱 you know ms train there ai on all this text 😉 https://www.adminspotting.org/
tbh idgaf who whats what or is happy pretty shore that shit is way OT for git hub issues just trying to understand why abc is doing xyz
as they say
🤨 |
Here’s the thing: People can tell, and it will have consequences in what you can get from them. And teamwork always wins out over lizard-braining. Even psychopaths understand that. In fact, according to research, even crows, monkeys, squirrels, and possibly even pigs and molluscs understand this. The only ones with higher intelligence who don’t (want to) understand this are a certain special kind of human psychopaths and people raised in their culture. Usually from a … certain country. ;) And yes, it’s off-topic. I just wanted to be helpful. And the big picture … the meta … is often left away, even though it makes everything much easier. |
how you classify is irelevent to this issue somthing 👻 bring you to this issues PLEASE find some place else for that obvious bullshit ( perhaps politics or psycology? economics (both involove verry un-scientific catogoisaton manipulation and scapegoating) ) it seams verry odd you bring such things to this forum |
@dubiouscript: You know what’s funny? Claiming something is wrong, while doing exactly that too. Especially when the “other side” isn’t even. I chose to post it because it was useful. You needed to post yours because it rustled your jimmies. How about editing yours, so it contributes something too, instead of just uncontrolled venting for us all to hear? Also, I suggest not trying to explain what is scientific and what not, to a literal expert who does this almost for a job, for decades. :) Regarding fixing the problem (not “IsSuE”): The bug fix is to instead install GNU/Linux, BSD, or a self-written OS, for example. And if not the case, ideally become a person/individual beforehand. E.g. by questiong one’s firmest assumptions. So have a nice day. I will now unsubscribe from this bug, and for the sake of your happiness, I tecommend you do too. :) |
Issue
right clicking on test.desktop open's the URL from the test.desktop
eg
Steps to reproduce
creating a file -> test.desktop
right click open with text editor
opens a file
with the title / on askubuntu.com
and content
which i imadgin is not the expected behavior
Expected behaviour
launch $EDITOR ~/Desktop/text.desktop
xed test.desktop
Other information
xdg-open ./test.desktop
works as expected
eg opens
xed ./test.desktop
The text was updated successfully, but these errors were encountered: