Why are StartupWMClass changes not permanent? The 2019 Stack Overflow Developer Survey Results Are InSet Multiple values for StartupWMClass (to group under same launcher in Unity)What represent the StartupWMClass field of a .desktop file?Stencyl.Desktop not workingWhy are there redundant directories for .desktop files?Mouse works but clicks are not registeredHow to launch my own compiled app in Ubuntu 18.04Why are some .desktop files prefixed with “org.kde.” or “org.gnome.”?How do you get a *.desktop file to work for a non-repository app?.desktop suffix vanishesSimple Bash Script To Set All Launchers (*.desktop) To Executable Doesn't Work

Can a rogue use sneak attack with weapons that have the thrown property even if they are not thrown?

Is an up-to-date browser secure on an out-of-date OS?

Geography at the pixel level

Is it ok to offer lower paid work as a trial period before negotiating for a full-time job?

If I score a critical hit on an 18 or higher, what are my chances of getting a critical hit if I roll 3d20?

Button changing its text & action. Good or terrible?

The phrase "to the numbers born"?

What is this business jet?

For what reasons would an animal species NOT cross a *horizontal* land bridge?

Slides for 30 min~1 hr Skype tenure track application interview

writing variables above the numbers in tikz picture

Can we generate random numbers using irrational numbers like π and e?

How to display lines in a file like ls displays files in a directory?

Keeping a retro style to sci-fi spaceships?

Why does the nucleus not repel itself?

Why are there uneven bright areas in this photo of black hole?

Straighten subgroup lattice

Output the Arecibo Message

Why “相同意思的词” is called “同义词” instead of "同意词"?

Accepted by European university, rejected by all American ones I applied to? Possible reasons?

Is it correct to say the Neural Networks are an alternative way of performing Maximum Likelihood Estimation? if not, why?

How to support a colleague who finds meetings extremely tiring?

Correct punctuation for showing a character's confusion

Mathematics of imaging the black hole



Why are StartupWMClass changes not permanent?



The 2019 Stack Overflow Developer Survey Results Are InSet Multiple values for StartupWMClass (to group under same launcher in Unity)What represent the StartupWMClass field of a .desktop file?Stencyl.Desktop not workingWhy are there redundant directories for .desktop files?Mouse works but clicks are not registeredHow to launch my own compiled app in Ubuntu 18.04Why are some .desktop files prefixed with “org.kde.” or “org.gnome.”?How do you get a *.desktop file to work for a non-repository app?.desktop suffix vanishesSimple Bash Script To Set All Launchers (*.desktop) To Executable Doesn't Work



.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty margin-bottom:0;








0















I am working on Ubuntu 18.04 and trying to associate an application with its shortcut, so it does not launch on a new icon. The .desktop file is in .local/share/applications/ and not in /usr/share/applications.



When I edit this file and add the StartupWMClass attribute it works fine. But the changes do not stick. Every time I open the .desktop file the changes are gone and the application launches on a new icon again. How can I make these changes permanent?



Below is the file:



[Desktop Entry]
Name=Shift
Icon=/home/<username>/.local/share/icons/hicolor/1024x1024/apps/shift.png
Version=3.5.0
GenericName=Shift
X-GNOME-FullName=Shift
Comment=Shift
Encoding=UTF-8
Type=Application
Terminal=false
Exec=/opt/shift/resources/../Shift -mailto %u
StartupWMClass=Shift
Categories=Network;
MimeType=x-scheme-handler/mailto;


The result of xprop WM_CLASS command is: WM_CLASS(STRING) = "shift", "Shift"










share|improve this question







New contributor




Dimitris Poulopoulos is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.




















  • Is Exec=/opt/shift/resources/../Shift -mailto %u exactly what you have?

    – DK Bose
    2 days ago











  • @DKBose yes. This is exactly as it is in the .desktop file.

    – Dimitris Poulopoulos
    2 days ago

















0















I am working on Ubuntu 18.04 and trying to associate an application with its shortcut, so it does not launch on a new icon. The .desktop file is in .local/share/applications/ and not in /usr/share/applications.



When I edit this file and add the StartupWMClass attribute it works fine. But the changes do not stick. Every time I open the .desktop file the changes are gone and the application launches on a new icon again. How can I make these changes permanent?



Below is the file:



[Desktop Entry]
Name=Shift
Icon=/home/<username>/.local/share/icons/hicolor/1024x1024/apps/shift.png
Version=3.5.0
GenericName=Shift
X-GNOME-FullName=Shift
Comment=Shift
Encoding=UTF-8
Type=Application
Terminal=false
Exec=/opt/shift/resources/../Shift -mailto %u
StartupWMClass=Shift
Categories=Network;
MimeType=x-scheme-handler/mailto;


The result of xprop WM_CLASS command is: WM_CLASS(STRING) = "shift", "Shift"










share|improve this question







New contributor




Dimitris Poulopoulos is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.




















  • Is Exec=/opt/shift/resources/../Shift -mailto %u exactly what you have?

    – DK Bose
    2 days ago











  • @DKBose yes. This is exactly as it is in the .desktop file.

    – Dimitris Poulopoulos
    2 days ago













0












0








0


1






I am working on Ubuntu 18.04 and trying to associate an application with its shortcut, so it does not launch on a new icon. The .desktop file is in .local/share/applications/ and not in /usr/share/applications.



When I edit this file and add the StartupWMClass attribute it works fine. But the changes do not stick. Every time I open the .desktop file the changes are gone and the application launches on a new icon again. How can I make these changes permanent?



Below is the file:



[Desktop Entry]
Name=Shift
Icon=/home/<username>/.local/share/icons/hicolor/1024x1024/apps/shift.png
Version=3.5.0
GenericName=Shift
X-GNOME-FullName=Shift
Comment=Shift
Encoding=UTF-8
Type=Application
Terminal=false
Exec=/opt/shift/resources/../Shift -mailto %u
StartupWMClass=Shift
Categories=Network;
MimeType=x-scheme-handler/mailto;


The result of xprop WM_CLASS command is: WM_CLASS(STRING) = "shift", "Shift"










share|improve this question







New contributor




Dimitris Poulopoulos is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.












I am working on Ubuntu 18.04 and trying to associate an application with its shortcut, so it does not launch on a new icon. The .desktop file is in .local/share/applications/ and not in /usr/share/applications.



When I edit this file and add the StartupWMClass attribute it works fine. But the changes do not stick. Every time I open the .desktop file the changes are gone and the application launches on a new icon again. How can I make these changes permanent?



Below is the file:



[Desktop Entry]
Name=Shift
Icon=/home/<username>/.local/share/icons/hicolor/1024x1024/apps/shift.png
Version=3.5.0
GenericName=Shift
X-GNOME-FullName=Shift
Comment=Shift
Encoding=UTF-8
Type=Application
Terminal=false
Exec=/opt/shift/resources/../Shift -mailto %u
StartupWMClass=Shift
Categories=Network;
MimeType=x-scheme-handler/mailto;


The result of xprop WM_CLASS command is: WM_CLASS(STRING) = "shift", "Shift"







.desktop gnome-dash






share|improve this question







New contributor




Dimitris Poulopoulos is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.











share|improve this question







New contributor




Dimitris Poulopoulos is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.









share|improve this question




share|improve this question






New contributor




Dimitris Poulopoulos is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.









asked 2 days ago









Dimitris PoulopoulosDimitris Poulopoulos

11




11




New contributor




Dimitris Poulopoulos is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.





New contributor





Dimitris Poulopoulos is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.






Dimitris Poulopoulos is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.












  • Is Exec=/opt/shift/resources/../Shift -mailto %u exactly what you have?

    – DK Bose
    2 days ago











  • @DKBose yes. This is exactly as it is in the .desktop file.

    – Dimitris Poulopoulos
    2 days ago

















  • Is Exec=/opt/shift/resources/../Shift -mailto %u exactly what you have?

    – DK Bose
    2 days ago











  • @DKBose yes. This is exactly as it is in the .desktop file.

    – Dimitris Poulopoulos
    2 days ago
















Is Exec=/opt/shift/resources/../Shift -mailto %u exactly what you have?

– DK Bose
2 days ago





Is Exec=/opt/shift/resources/../Shift -mailto %u exactly what you have?

– DK Bose
2 days ago













@DKBose yes. This is exactly as it is in the .desktop file.

– Dimitris Poulopoulos
2 days ago





@DKBose yes. This is exactly as it is in the .desktop file.

– Dimitris Poulopoulos
2 days ago










0






active

oldest

votes












Your Answer








StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "89"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);

else
createEditor();

);

function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);



);






Dimitris Poulopoulos is a new contributor. Be nice, and check out our Code of Conduct.









draft saved

draft discarded


















StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1132423%2fwhy-are-startupwmclass-changes-not-permanent%23new-answer', 'question_page');

);

Post as a guest















Required, but never shown

























0






active

oldest

votes








0






active

oldest

votes









active

oldest

votes






active

oldest

votes








Dimitris Poulopoulos is a new contributor. Be nice, and check out our Code of Conduct.









draft saved

draft discarded


















Dimitris Poulopoulos is a new contributor. Be nice, and check out our Code of Conduct.












Dimitris Poulopoulos is a new contributor. Be nice, and check out our Code of Conduct.











Dimitris Poulopoulos is a new contributor. Be nice, and check out our Code of Conduct.














Thanks for contributing an answer to Ask Ubuntu!


  • Please be sure to answer the question. Provide details and share your research!

But avoid …


  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.

To learn more, see our tips on writing great answers.




draft saved


draft discarded














StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1132423%2fwhy-are-startupwmclass-changes-not-permanent%23new-answer', 'question_page');

);

Post as a guest















Required, but never shown





















































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown

































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown







Popular posts from this blog

Distance measures on a map of a game The 2019 Stack Overflow Developer Survey Results Are Inmin distance in a graphShortest distance path on contour plotHow to plot a tilted map?Finding points outside of a diskDelaunay link distanceAnnulus from GeoDisks: drawing a ring on a mapNegative Correlation DistanceFind distance along a path (GPS coordinates)Finding position at given distance in a GeoPathMathematics behind distance estimation using camera

Training a classifier when some of the features are unknownWhy does Gradient Boosting regression predict negative values when there are no negative y-values in my training set?How to improve an existing (trained) classifier?What is effect when I set up some self defined predisctor variables?Why Matlab neural network classification returns decimal values on prediction dataset?Fitting and transforming text data in training, testing, and validation setsHow to quantify the performance of the classifier (multi-class SVM) using the test data?How do I control for some patients providing multiple samples in my training data?Training and Test setTraining a convolutional neural network for image denoising in MatlabShouldn't an autoencoder with #(neurons in hidden layer) = #(neurons in input layer) be “perfect”?

apt-get update fails to fetch files, “Temporary failure resolving …” errorWhy does apt-get fail to resolve the mirror?Apt-get update not working in Ubuntu 16.04 “temporary failure resolving”Ubuntu 16.04 Server updates - Temporary failure resolving 'ro.archive.ubuntu.com'“Failed to fetch… Temporary failure resolving…” when trying to installTemporary failure resolving ca.archive.ubuntu.comUbuntu 18.04 sudo apt update doesn't work (Failed to Fetch)apt-get error: “Temporary failure resolving 'archive.ubuntu.com' ”“Temporary failure resolving us.archive.ubuntu.com” Live USB rescueTemporary failure resolving 'es.archive.ubuntu.com' on Ubuntu Server15.04 Server fails to update with failed to fetch temporary failure resolving errorsCan't install software from Software CenterApt-get failed to fetch from Ubuntu server with error code 404“Unable to connect” error with apt-get: possible proxy?v12.10 can't apt-get update111: Connection refused when trying apt updateSudo apt-get update